Skip to content

Commit

Permalink
[CI] update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Hacl Bot committed Sep 7, 2023
1 parent c6d3969 commit d9b4f92
Show file tree
Hide file tree
Showing 26 changed files with 216 additions and 254 deletions.
4 changes: 4 additions & 0 deletions include/EverCrypt_AEAD.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ extern "C" {

typedef struct EverCrypt_AEAD_state_s_s EverCrypt_AEAD_state_s;

/**
Both encryption and decryption require a state that holds the key.
The state may be reused as many times as desired.
*/
bool EverCrypt_AEAD_uu___is_Ek(Spec_Agile_AEAD_alg a, EverCrypt_AEAD_state_s projectee);

/**
Expand Down
1 change: 0 additions & 1 deletion include/EverCrypt_DRBG.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ extern "C" {
#include "krml/internal/target.h"

#include "Lib_RandomBuffer_System.h"
#include "Lib_Memzero0.h"
#include "Hacl_Streaming_Types.h"
#include "Hacl_HMAC_DRBG.h"

Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Frodo1344.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Lib_Memzero0.h"
#include "Hacl_Hash_SHA3.h"

extern uint32_t Hacl_Frodo1344_crypto_bytes;
Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Frodo64.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Lib_Memzero0.h"
#include "Hacl_Hash_SHA3.h"

/*
Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Frodo640.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Lib_Memzero0.h"
#include "Hacl_Hash_SHA3.h"

extern uint32_t Hacl_Frodo640_crypto_bytes;
Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Frodo976.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Lib_Memzero0.h"
#include "Hacl_Hash_SHA3.h"

extern uint32_t Hacl_Frodo976_crypto_bytes;
Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Hash_Blake2.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Lib_Memzero0.h"
#include "Hacl_Krmllib.h"

void Hacl_Blake2b_32_blake2b_init(uint64_t *hash, uint32_t kk, uint32_t nn);
Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Hash_Blake2b_256.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Lib_Memzero0.h"
#include "Hacl_Krmllib.h"
#include "libintvector.h"

Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Hash_Blake2s_128.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Lib_Memzero0.h"
#include "libintvector.h"

void
Expand Down
45 changes: 0 additions & 45 deletions include/Lib_Memzero0.h

This file was deleted.

3 changes: 2 additions & 1 deletion include/TestLib.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ extern void TestLib_checku32(uint32_t uu___, uint32_t uu___1);

extern void TestLib_checku64(uint64_t uu___, uint64_t uu___1);

extern void TestLib_compare_and_print(C_String_t uu___, uint8_t *b1, uint8_t *b2, uint32_t l);
extern void
TestLib_compare_and_print(Prims_string uu___, uint8_t *b1, uint8_t *b2, uint32_t l);

extern uint8_t *TestLib_unsafe_malloc(uint32_t l);

Expand Down
5 changes: 5 additions & 0 deletions include/libmemzero0.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <inttypes.h>

void Lib_Memzero0_memzero0(void *dst, uint64_t len);

#define Lib_Memzero0_memzero(dst, len, t) Lib_Memzero0_memzero0(dst, len * sizeof(t))
5 changes: 5 additions & 0 deletions include/msvc/libmemzero0.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <inttypes.h>

void Lib_Memzero0_memzero0(void *dst, uint64_t len);

#define Lib_Memzero0_memzero(dst, len, t) Lib_Memzero0_memzero0(dst, len * sizeof(t))
4 changes: 4 additions & 0 deletions src/EverCrypt_AEAD.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ typedef struct EverCrypt_AEAD_state_s_s
}
EverCrypt_AEAD_state_s;

/**
Both encryption and decryption require a state that holds the key.
The state may be reused as many times as desired.
*/
bool EverCrypt_AEAD_uu___is_Ek(Spec_Agile_AEAD_alg a, EverCrypt_AEAD_state_s projectee)
{
return true;
Expand Down
Loading

0 comments on commit d9b4f92

Please sign in to comment.