-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #328 from cryspen/dev_vector_restruct
Restructure Vector code in ML-KEM to split functionality
- Loading branch information
Showing
61 changed files
with
12,574 additions
and
4,034 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,5 +1,5 @@ | ||
This code was generated with the following tools: | ||
Charon: ae55966c01a1a4b185a1a34da7861ba5db74c8ad | ||
Eurydice: bbfd102bbfbc3e4c362953f093dbfd65e2fbc10c | ||
Karamel: 409fe4552f8f46351241cba1decfaa4d9fa6ffea | ||
F*: | ||
Karamel: 42a431696cd32d41155d7e484720eb71fd5dc7b1 | ||
F*: f09228ef9a64ac4ef383ee0e10656ccb612db2ee |
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
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,74 @@ | ||
/* | ||
This file was generated by KaRaMeL <https://github.com/FStarLang/karamel> | ||
KaRaMeL invocation: /Users/bhargava/Desktop/repositories/eurydice/eurydice | ||
--config ../c.yaml ../../libcrux_ml_kem.llbc ../../libcrux_sha3.llbc F* | ||
version: 0e2a116d KaRaMeL version: 018dcd1d | ||
*/ | ||
|
||
#ifndef __internal_libcrux_mlkem_neon_H | ||
#define __internal_libcrux_mlkem_neon_H | ||
|
||
#if defined(__cplusplus) | ||
extern "C" { | ||
#endif | ||
|
||
#include "../libcrux_mlkem_neon.h" | ||
#include "eurydice_glue.h" | ||
#include "internal/libcrux_core.h" | ||
#include "internal/libcrux_mlkem_portable.h" | ||
|
||
bool libcrux_ml_kem_ind_cca_validate_public_key__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_3size_t_1152size_t_1184size_t( | ||
uint8_t *public_key); | ||
|
||
libcrux_ml_kem_mlkem768_MlKem768KeyPair | ||
libcrux_ml_kem_ind_cca_generate_keypair__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_3size_t_1152size_t_2400size_t_1184size_t_1152size_t_2size_t_128size_t( | ||
uint8_t randomness[64U]); | ||
|
||
K___libcrux_ml_kem_types_MlKemCiphertext___1088size_t___uint8_t_32size_t_ | ||
libcrux_ml_kem_ind_cca_encapsulate__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_libcrux_ml_kem_ind_cca_MlKem_3size_t_1088size_t_1184size_t_1152size_t_960size_t_128size_t_10size_t_4size_t_320size_t_2size_t_128size_t_2size_t_128size_t( | ||
libcrux_ml_kem_types_MlKemPublicKey____1184size_t *public_key, | ||
uint8_t randomness[32U]); | ||
|
||
void libcrux_ml_kem_ind_cca_decapsulate__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_libcrux_ml_kem_ind_cca_MlKem_3size_t_2400size_t_1152size_t_1184size_t_1088size_t_1152size_t_960size_t_128size_t_10size_t_4size_t_320size_t_2size_t_128size_t_2size_t_128size_t_1120size_t( | ||
libcrux_ml_kem_types_MlKemPrivateKey____2400size_t *private_key, | ||
libcrux_ml_kem_mlkem768_MlKem768Ciphertext *ciphertext, uint8_t ret[32U]); | ||
|
||
bool libcrux_ml_kem_ind_cca_validate_public_key__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_4size_t_1536size_t_1568size_t( | ||
uint8_t *public_key); | ||
|
||
libcrux_ml_kem_mlkem1024_MlKem1024KeyPair | ||
libcrux_ml_kem_ind_cca_generate_keypair__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_4size_t_1536size_t_3168size_t_1568size_t_1536size_t_2size_t_128size_t( | ||
uint8_t randomness[64U]); | ||
|
||
K___libcrux_ml_kem_types_MlKemCiphertext___1568size_t___uint8_t_32size_t_ | ||
libcrux_ml_kem_ind_cca_encapsulate__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_libcrux_ml_kem_ind_cca_MlKem_4size_t_1568size_t_1568size_t_1536size_t_1408size_t_160size_t_11size_t_5size_t_352size_t_2size_t_128size_t_2size_t_128size_t( | ||
libcrux_ml_kem_types_MlKemPublicKey____1568size_t *public_key, | ||
uint8_t randomness[32U]); | ||
|
||
void libcrux_ml_kem_ind_cca_decapsulate__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_libcrux_ml_kem_ind_cca_MlKem_4size_t_3168size_t_1536size_t_1568size_t_1568size_t_1536size_t_1408size_t_160size_t_11size_t_5size_t_352size_t_2size_t_128size_t_2size_t_128size_t_1600size_t( | ||
libcrux_ml_kem_types_MlKemPrivateKey____3168size_t *private_key, | ||
libcrux_ml_kem_mlkem1024_MlKem1024Ciphertext *ciphertext, uint8_t ret[32U]); | ||
|
||
bool libcrux_ml_kem_ind_cca_validate_public_key__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_2size_t_768size_t_800size_t( | ||
uint8_t *public_key); | ||
|
||
libcrux_ml_kem_types_MlKemKeyPair____1632size_t__800size_t | ||
libcrux_ml_kem_ind_cca_generate_keypair__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_2size_t_768size_t_1632size_t_800size_t_768size_t_3size_t_192size_t( | ||
uint8_t randomness[64U]); | ||
|
||
K___libcrux_ml_kem_types_MlKemCiphertext___768size_t___uint8_t_32size_t_ | ||
libcrux_ml_kem_ind_cca_encapsulate__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_libcrux_ml_kem_ind_cca_MlKem_2size_t_768size_t_800size_t_768size_t_640size_t_128size_t_10size_t_4size_t_320size_t_3size_t_192size_t_2size_t_128size_t( | ||
libcrux_ml_kem_types_MlKemPublicKey____800size_t *public_key, | ||
uint8_t randomness[32U]); | ||
|
||
void libcrux_ml_kem_ind_cca_decapsulate__libcrux_ml_kem_vector_neon_vector_type_SIMD128Vector_libcrux_ml_kem_hash_functions_neon_Simd128Hash_libcrux_ml_kem_ind_cca_MlKem_2size_t_1632size_t_768size_t_800size_t_768size_t_768size_t_640size_t_128size_t_10size_t_4size_t_320size_t_3size_t_192size_t_2size_t_128size_t_800size_t( | ||
libcrux_ml_kem_types_MlKemPrivateKey____1632size_t *private_key, | ||
libcrux_ml_kem_types_MlKemCiphertext____768size_t *ciphertext, | ||
uint8_t ret[32U]); | ||
|
||
#if defined(__cplusplus) | ||
} | ||
#endif | ||
|
||
#define __internal_libcrux_mlkem_neon_H_DEFINED | ||
#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
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
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
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
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
Oops, something went wrong.