Subversion Repositories Kolibri OS

Rev

Rev 6469 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6469 Rev 9106
Line 14... Line 14...
14
;
14
;
15
;    You should have received a copy of the GNU General Public License
15
;    You should have received a copy of the GNU General Public License
16
;    along with this program.  If not, see .
16
;    along with this program.  If not, see .
Line 17... Line 17...
17
 
17
 
-
 
18
struct aes256_ctr_context aes256_context
18
struct aes256_ctr_context aes256_context
19
 
19
        counter rb AES256_BLOCKSIZE
20
        counter rb AES256_BLOCKSIZE
-
 
21
        output  rb AES256_BLOCKSIZE     ; counter after aes_crypt
20
        output  rb AES256_BLOCKSIZE     ; counter after aes_crypt
22
 
Line 21... Line 23...
21
ends
23
ends
-
 
24
 
22
 
25
 
Line 23... Line 26...
23
 
26
proc aes256_ctr_init _counter
24
proc aes256_ctr_init _counter
27
 
25
        push    ebx esi edi
28
        push    ebx esi edi
Line 32... Line 35...
32
        rep movsd
35
        rep movsd
33
        ; rep movsd is slow, but we don't care while init
36
        ; rep movsd is slow, but we don't care while init
Line 34... Line 37...
34
 
37
 
35
        pop     edi esi ebx
38
        pop     edi esi ebx
-
 
39
        ret
36
        ret
40
 
Line 37... Line 41...
37
endp
41
endp
Line 82... Line 86...
82
        bswap   eax
86
        bswap   eax
83
        bswap   ebx
87
        bswap   ebx
84
        bswap   ecx
88
        bswap   ecx
85
        bswap   edx
89
        bswap   edx
Line 86... Line 90...
86
 
90
 
87
        inc     edx
91
        adc     edx, 1
88
        adc     ecx, 0
92
        adc     ecx, 0
89
        adc     ebx, 0
93
        adc     ebx, 0
Line 90... Line 94...
90
        adc     eax, 0
94
        adc     eax, 0