Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto_onetimeauth implementations: Checking for S-CT #125

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading