Skip to content

Commit

Permalink
sct: poly1305
Browse files Browse the repository at this point in the history
  • Loading branch information
tfaoliveira committed Jun 27, 2024
1 parent 11385db commit a736615
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/crypto_onetimeauth/poly1305/amd64/avx/onetimeauth.jazz
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export fn jade_onetimeauth_poly1305_amd64_avx(reg u64 mac input input_length key
input_length = input_length;
key = key;

_ = #init_msf();

__poly1305_avx(mac, input, input_length, key);

?{}, r = #set0();
Expand All @@ -24,6 +26,8 @@ export fn jade_onetimeauth_poly1305_amd64_avx_verify(reg u64 mac input input_len
input_length = input_length;
key = key;

_ = #init_msf();

r = __poly1305_verify_avx(mac, input, input_length, key);

return r;
Expand Down
4 changes: 4 additions & 0 deletions src/crypto_onetimeauth/poly1305/amd64/avx2/onetimeauth.jazz
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export fn jade_onetimeauth_poly1305_amd64_avx2(reg u64 mac input input_length ke
input_length = input_length;
key = key;

_ = #init_msf();

__poly1305_avx2(mac, input, input_length, key);

?{}, r = #set0();
Expand All @@ -24,6 +26,8 @@ export fn jade_onetimeauth_poly1305_amd64_avx2_verify(reg u64 mac input input_le
input_length = input_length;
key = key;

_ = #init_msf();

r = __poly1305_verify_avx2(mac, input, input_length, key);

return r;
Expand Down
4 changes: 4 additions & 0 deletions src/crypto_onetimeauth/poly1305/amd64/ref/onetimeauth.jazz
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export fn jade_onetimeauth_poly1305_amd64_ref(reg u64 mac input input_length key
input_length = input_length;
key = key;

_ = #init_msf();

__poly1305_ref(mac, input, input_length, key);

?{}, r = #set0();
Expand All @@ -24,6 +26,8 @@ export fn jade_onetimeauth_poly1305_amd64_ref_verify(reg u64 mac input input_len
input_length = input_length;
key = key;

_ = #init_msf();

r = __poly1305_verify_ref(mac, input, input_length, key);

return r;
Expand Down

0 comments on commit a736615

Please sign in to comment.