Skip to content

Commit

Permalink
making it work
Browse files Browse the repository at this point in the history
  • Loading branch information
franziskuskiefer committed Dec 13, 2023
1 parent 59c972d commit 5b5dd81
Show file tree
Hide file tree
Showing 6 changed files with 2,516 additions and 3,308 deletions.
8 changes: 4 additions & 4 deletions benchmarks/kyber.cc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ kyber768_key_generation(benchmark::State& state)
uint8_t secret_key[KYBER768_SECRETKEYBYTES];

for (auto _ : state) {
Libcrux_Kyber768_GenerateKeyPair(public_key, secret_key, randomness);
Libcrux_Kyber768_GenerateKeyPair(public_key, secret_key, randomness);
}
}

Expand All @@ -38,8 +38,8 @@ kyber768_encapsulation(benchmark::State& state)
Libcrux_Kyber768_GenerateKeyPair(public_key, secret_key, randomness);

for (auto _ : state) {
Libcrux_Kyber768_Encapsulate(
ciphertext, sharedSecret, &public_key, randomness);
Libcrux_Kyber768_Encapsulate(
ciphertext, sharedSecret, &public_key, randomness);
}
}

Expand All @@ -62,7 +62,7 @@ kyber768_decapsulation(benchmark::State& state)
ciphertext, sharedSecret, &public_key, randomness);

for (auto _ : state) {
Libcrux_Kyber768_Decapsulate(sharedSecret, &ciphertext, &secret_key);
Libcrux_Kyber768_Decapsulate(sharedSecret, &ciphertext, &secret_key);
}
}

Expand Down
2 changes: 1 addition & 1 deletion libcrux/include/Eurydice.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
This file was generated by KaRaMeL <https://github.com/FStarLang/karamel>
KaRaMeL invocation: /Users/franziskus/repos/eurydice//eurydice ../libcrux_kyber.llbc
F* version: d0aa54cf
KaRaMeL version: b329675d
KaRaMeL version: 8e0595bd
*/

#ifndef __Eurydice_H
Expand Down
Loading

0 comments on commit 5b5dd81

Please sign in to comment.