@@ -31,31 +31,32 @@ extern "C" {
31
31
#endif
32
32
33
33
#include <string.h>
34
+ #include "python_hacl_namespaces.h"
34
35
#include "krml/types.h"
35
36
#include "krml/lowstar_endianness.h"
36
37
#include "krml/internal/target.h"
37
38
38
39
#include "Hacl_Streaming_Types.h"
39
40
40
- typedef Hacl_Streaming_MD_state_32 Hacl_Streaming_MD5_state ;
41
+ typedef Hacl_Streaming_MD_state_32 Hacl_Hash_MD5_state_t ;
41
42
42
- Hacl_Streaming_MD_state_32 * Hacl_Streaming_MD5_legacy_create_in (void );
43
+ Hacl_Streaming_MD_state_32 * Hacl_Hash_MD5_malloc (void );
43
44
44
- void Hacl_Streaming_MD5_legacy_init (Hacl_Streaming_MD_state_32 * s );
45
+ void Hacl_Hash_MD5_reset (Hacl_Streaming_MD_state_32 * state );
45
46
46
47
/**
47
48
0 = success, 1 = max length exceeded
48
49
*/
49
50
Hacl_Streaming_Types_error_code
50
- Hacl_Streaming_MD5_legacy_update (Hacl_Streaming_MD_state_32 * p , uint8_t * data , uint32_t len );
51
+ Hacl_Hash_MD5_update (Hacl_Streaming_MD_state_32 * state , uint8_t * chunk , uint32_t chunk_len );
51
52
52
- void Hacl_Streaming_MD5_legacy_finish (Hacl_Streaming_MD_state_32 * p , uint8_t * dst );
53
+ void Hacl_Hash_MD5_digest (Hacl_Streaming_MD_state_32 * state , uint8_t * output );
53
54
54
- void Hacl_Streaming_MD5_legacy_free (Hacl_Streaming_MD_state_32 * s );
55
+ void Hacl_Hash_MD5_free (Hacl_Streaming_MD_state_32 * state );
55
56
56
- Hacl_Streaming_MD_state_32 * Hacl_Streaming_MD5_legacy_copy (Hacl_Streaming_MD_state_32 * s0 );
57
+ Hacl_Streaming_MD_state_32 * Hacl_Hash_MD5_copy (Hacl_Streaming_MD_state_32 * state );
57
58
58
- void Hacl_Streaming_MD5_legacy_hash (uint8_t * input , uint32_t input_len , uint8_t * dst );
59
+ void Hacl_Hash_MD5_hash (uint8_t * output , uint8_t * input , uint32_t input_len );
59
60
60
61
#if defined(__cplusplus )
61
62
}
0 commit comments