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 Feb 19, 2025
1 parent 05c3d8f commit 67e5db2
Show file tree
Hide file tree
Showing 412 changed files with 19,154 additions and 5,170 deletions.
2 changes: 0 additions & 2 deletions include/EverCrypt_AEAD.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ extern "C" {

#include "Hacl_Spec.h"
#include "EverCrypt_Error.h"
#include "EverCrypt_Chacha20Poly1305.h"
#include "EverCrypt_AutoConfig2.h"

typedef struct EverCrypt_AEAD_state_s_s EverCrypt_AEAD_state_s;

Expand Down
5 changes: 0 additions & 5 deletions include/EverCrypt_Chacha20Poly1305.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Hacl_AEAD_Chacha20Poly1305_Simd256.h"
#include "Hacl_AEAD_Chacha20Poly1305_Simd128.h"
#include "Hacl_AEAD_Chacha20Poly1305.h"
#include "EverCrypt_AutoConfig2.h"

void
EverCrypt_Chacha20Poly1305_aead_encrypt(
uint8_t *k,
Expand Down
4 changes: 0 additions & 4 deletions include/EverCrypt_Curve25519.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Hacl_Curve25519_64.h"
#include "Hacl_Curve25519_51.h"
#include "EverCrypt_AutoConfig2.h"

/**
Calculate a public point from a secret/private key.
Expand Down
9 changes: 7 additions & 2 deletions include/EverCrypt_DRBG.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

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

typedef Spec_Hash_Definitions_hash_alg EverCrypt_DRBG_supported_alg;

Expand All @@ -53,6 +51,13 @@ extern uint32_t EverCrypt_DRBG_max_additional_input_length;

uint32_t EverCrypt_DRBG_min_length(Spec_Hash_Definitions_hash_alg a);

#define EverCrypt_DRBG_SHA1_s 0
#define EverCrypt_DRBG_SHA2_256_s 1
#define EverCrypt_DRBG_SHA2_384_s 2
#define EverCrypt_DRBG_SHA2_512_s 3

typedef uint8_t EverCrypt_DRBG_state_s_tags;

typedef struct EverCrypt_DRBG_state_s_s EverCrypt_DRBG_state_s;

bool
Expand Down
2 changes: 0 additions & 2 deletions include/EverCrypt_Ed25519.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Hacl_Ed25519.h"

void EverCrypt_Ed25519_secret_to_public(uint8_t *public_key, uint8_t *private_key);

void EverCrypt_Ed25519_expand_keys(uint8_t *expanded_keys, uint8_t *private_key);
Expand Down
6 changes: 0 additions & 6 deletions include/EverCrypt_HMAC.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,11 @@ extern "C" {
#include "krml/internal/target.h"

#include "Hacl_Streaming_Types.h"
#include "Hacl_Krmllib.h"
#include "Hacl_Hash_SHA2.h"
#include "Hacl_Hash_Blake2s.h"
#include "Hacl_Hash_Blake2b.h"

bool EverCrypt_HMAC_is_supported_alg(Spec_Hash_Definitions_hash_alg uu___);

typedef Spec_Hash_Definitions_hash_alg EverCrypt_HMAC_supported_alg;

extern void (*EverCrypt_HMAC_hash_256)(uint8_t *x0, uint8_t *x1, uint32_t x2);

void
EverCrypt_HMAC_compute(
Spec_Hash_Definitions_hash_alg a,
Expand Down
33 changes: 18 additions & 15 deletions include/EverCrypt_Hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,30 @@ extern "C" {
#include "krml/internal/target.h"

#include "Hacl_Streaming_Types.h"
#include "Hacl_Krmllib.h"
#include "Hacl_Hash_SHA3.h"
#include "Hacl_Hash_SHA2.h"
#include "Hacl_Hash_Blake2s_Simd128.h"
#include "Hacl_Hash_Blake2s.h"
#include "Hacl_Hash_Blake2b_Simd256.h"
#include "Hacl_Hash_Blake2b.h"
#include "EverCrypt_Error.h"
#include "EverCrypt_AutoConfig2.h"

#define EverCrypt_Hash_MD5_s 0
#define EverCrypt_Hash_SHA1_s 1
#define EverCrypt_Hash_SHA2_224_s 2
#define EverCrypt_Hash_SHA2_256_s 3
#define EverCrypt_Hash_SHA2_384_s 4
#define EverCrypt_Hash_SHA2_512_s 5
#define EverCrypt_Hash_SHA3_224_s 6
#define EverCrypt_Hash_SHA3_256_s 7
#define EverCrypt_Hash_SHA3_384_s 8
#define EverCrypt_Hash_SHA3_512_s 9
#define EverCrypt_Hash_Blake2S_s 10
#define EverCrypt_Hash_Blake2S_128_s 11
#define EverCrypt_Hash_Blake2B_s 12
#define EverCrypt_Hash_Blake2B_256_s 13

typedef uint8_t EverCrypt_Hash_state_s_tags;

typedef struct EverCrypt_Hash_state_s_s EverCrypt_Hash_state_s;

uint32_t EverCrypt_Hash_Incremental_hash_len(Spec_Hash_Definitions_hash_alg a);

typedef struct EverCrypt_Hash_Incremental_state_t_s
{
EverCrypt_Hash_state_s *block_state;
uint8_t *buf;
uint64_t total_len;
}
EverCrypt_Hash_Incremental_state_t;
typedef struct EverCrypt_Hash_Incremental_state_t_s EverCrypt_Hash_Incremental_state_t;

/**
Allocate initial state for the agile hash. The argument `a` stands for the
Expand Down
5 changes: 0 additions & 5 deletions include/EverCrypt_Poly1305.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Hacl_MAC_Poly1305_Simd256.h"
#include "Hacl_MAC_Poly1305_Simd128.h"
#include "Hacl_MAC_Poly1305.h"
#include "EverCrypt_AutoConfig2.h"

void EverCrypt_Poly1305_mac(uint8_t *output, uint8_t *input, uint32_t input_len, uint8_t *key);

#if defined(__cplusplus)
Expand Down
2 changes: 0 additions & 2 deletions include/Hacl_AEAD_Chacha20Poly1305.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Hacl_Chacha20.h"

/**
Encrypt a message `input` with key `key`.
Expand Down
2 changes: 0 additions & 2 deletions include/Hacl_AEAD_Chacha20Poly1305_Simd128.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Hacl_Chacha20_Vec128.h"

/**
Encrypt a message `input` with key `key`.
Expand Down
2 changes: 0 additions & 2 deletions include/Hacl_AEAD_Chacha20Poly1305_Simd256.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ extern "C" {
#include "krml/lowstar_endianness.h"
#include "krml/internal/target.h"

#include "Hacl_Chacha20_Vec256.h"

/**
Encrypt a message `input` with key `key`.
Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Bignum.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 "Hacl_Krmllib.h"
#include "lib_intrinsics.h"

typedef struct Hacl_Bignum_MontArithmetic_bn_mont_ctx_u32_s
Expand Down
1 change: 0 additions & 1 deletion include/Hacl_Bignum256.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 "Hacl_Krmllib.h"
#include "Hacl_Bignum.h"

/*******************************************************************************
Expand Down
Loading

0 comments on commit 67e5db2

Please sign in to comment.