mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-99108: Refresh HACL* (#104808)
Refresh HACL* from upstream to improve SHA2 performance and fix a 32-bit issue in SHA3.
This commit is contained in:
parent
fe77a99fc8
commit
160321e530
18 changed files with 226 additions and 150 deletions
|
@ -62,19 +62,13 @@ Hacl_Streaming_Keccak_state *Hacl_Streaming_Keccak_copy(Hacl_Streaming_Keccak_st
|
|||
|
||||
void Hacl_Streaming_Keccak_reset(Hacl_Streaming_Keccak_state *s);
|
||||
|
||||
uint32_t
|
||||
Hacl_Streaming_Types_error_code
|
||||
Hacl_Streaming_Keccak_update(Hacl_Streaming_Keccak_state *p, uint8_t *data, uint32_t len);
|
||||
|
||||
#define Hacl_Streaming_Keccak_Success 0
|
||||
#define Hacl_Streaming_Keccak_InvalidAlgorithm 1
|
||||
#define Hacl_Streaming_Keccak_InvalidLength 2
|
||||
|
||||
typedef uint8_t Hacl_Streaming_Keccak_error_code;
|
||||
|
||||
Hacl_Streaming_Keccak_error_code
|
||||
Hacl_Streaming_Types_error_code
|
||||
Hacl_Streaming_Keccak_finish(Hacl_Streaming_Keccak_state *s, uint8_t *dst);
|
||||
|
||||
Hacl_Streaming_Keccak_error_code
|
||||
Hacl_Streaming_Types_error_code
|
||||
Hacl_Streaming_Keccak_squeeze(Hacl_Streaming_Keccak_state *s, uint8_t *dst, uint32_t l);
|
||||
|
||||
uint32_t Hacl_Streaming_Keccak_block_len(Hacl_Streaming_Keccak_state *s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue