forked from KolibriOS/kolibrios
Added support for encrypt-then-mac modes (hmac-sha2-256-etm,hmac-sha2-512-etm)
git-svn-id: svn://kolibrios.org@9990 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -209,9 +209,9 @@ endl
|
||||
push esi
|
||||
|
||||
; EMSA-PKCS1-v1_5
|
||||
invoke sha1_init, [h_ctx]
|
||||
invoke sha1_update, [h_ctx], [M], [message_len]
|
||||
invoke sha1_finish, [h_ctx]
|
||||
invoke sha1.init, [h_ctx]
|
||||
invoke sha1.update, [h_ctx], [M], [message_len]
|
||||
invoke sha1.finish, [h_ctx]
|
||||
|
||||
mov edi, [EM_accent]
|
||||
mov al, 0x00
|
||||
@@ -243,9 +243,9 @@ endl
|
||||
push esi
|
||||
|
||||
; EMSA-PKCS1-v1_5
|
||||
invoke sha2_256_init, [h_ctx]
|
||||
invoke sha2_256_update, [h_ctx], [M], [message_len]
|
||||
invoke sha2_256_finish, [h_ctx]
|
||||
invoke sha2_256.init, [h_ctx]
|
||||
invoke sha2_256.update, [h_ctx], [M], [message_len]
|
||||
invoke sha2_256.finish, [h_ctx]
|
||||
|
||||
mov edi, [EM_accent]
|
||||
mov al, 0x00
|
||||
@@ -277,9 +277,9 @@ endl
|
||||
push esi
|
||||
|
||||
; EMSA-PKCS1-v1_5
|
||||
invoke sha2_512_init, [h_ctx]
|
||||
invoke sha2_512_update, [h_ctx], [M], [message_len]
|
||||
invoke sha2_512_finish, [h_ctx]
|
||||
invoke sha2_512.init, [h_ctx]
|
||||
invoke sha2_512.update, [h_ctx], [M], [message_len]
|
||||
invoke sha2_512.finish, [h_ctx]
|
||||
|
||||
mov edi, [EM_accent]
|
||||
mov al, 0x00
|
||||
|
||||
Reference in New Issue
Block a user