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:
hidnplayr
2024-03-09 20:05:21 +00:00
parent aae3ae86cc
commit cc6df1e340
8 changed files with 536 additions and 136 deletions
+9 -9
View File
@@ -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