-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
371 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6106678942f2bc2ce6bdfe93f6fc5548adfde24f | ||
faf5c3fe33e0b61c7c8a7888dd862bf5def17ad2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 3168 | ||
#define CRYPTO_PUBLICKEYBYTES 1568 | ||
#define CRYPTO_CIPHERTEXTBYTES 1568 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber1024-90s" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 3168 | ||
#define CRYPTO_PUBLICKEYBYTES 1568 | ||
#define CRYPTO_CIPHERTEXTBYTES 1568 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber1024-90s" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 3168 | ||
#define CRYPTO_PUBLICKEYBYTES 1568 | ||
#define CRYPTO_CIPHERTEXTBYTES 1568 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber1024" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 3168 | ||
#define CRYPTO_PUBLICKEYBYTES 1568 | ||
#define CRYPTO_CIPHERTEXTBYTES 1568 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber1024" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 1632 | ||
#define CRYPTO_PUBLICKEYBYTES 800 | ||
#define CRYPTO_CIPHERTEXTBYTES 768 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber512-90s" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 1632 | ||
#define CRYPTO_PUBLICKEYBYTES 800 | ||
#define CRYPTO_CIPHERTEXTBYTES 768 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber512-90s" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 1632 | ||
#define CRYPTO_PUBLICKEYBYTES 800 | ||
#define CRYPTO_CIPHERTEXTBYTES 768 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber512" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 1632 | ||
#define CRYPTO_PUBLICKEYBYTES 800 | ||
#define CRYPTO_CIPHERTEXTBYTES 768 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber512" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 2400 | ||
#define CRYPTO_PUBLICKEYBYTES 1184 | ||
#define CRYPTO_CIPHERTEXTBYTES 1088 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber768-90s" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 2400 | ||
#define CRYPTO_PUBLICKEYBYTES 1184 | ||
#define CRYPTO_CIPHERTEXTBYTES 1088 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber768-90s" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 2400 | ||
#define CRYPTO_PUBLICKEYBYTES 1184 | ||
#define CRYPTO_CIPHERTEXTBYTES 1088 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber768" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef API_H | ||
#define API_H | ||
|
||
#include <stdint.h> | ||
|
||
#define CRYPTO_SECRETKEYBYTES 2400 | ||
#define CRYPTO_PUBLICKEYBYTES 1184 | ||
#define CRYPTO_CIPHERTEXTBYTES 1088 | ||
#define CRYPTO_BYTES 32 | ||
#define CRYPTO_ALGNAME "Kyber768" | ||
|
||
int crypto_kem_keypair(uint8_t *pk, uint8_t *sk); | ||
|
||
int crypto_kem_enc(uint8_t *ct, uint8_t *ss, const uint8_t *pk); | ||
|
||
int crypto_kem_dec(uint8_t *ss, const uint8_t *ct, const uint8_t *sk); | ||
|
||
#endif |
Oops, something went wrong.