bpo-37055: fix warnings in _blake2 module (GH-14646)
https://bugs.python.org/issue37055 Automerge-Triggered-By: @tiran
This commit is contained in:
parent
77df9a1573
commit
b27cbec801
|
@ -169,11 +169,6 @@ extern "C" {
|
||||||
BLAKE2_API int blake2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
|
BLAKE2_API int blake2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
|
||||||
BLAKE2_API int blake2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
|
BLAKE2_API int blake2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
|
||||||
|
|
||||||
static inline int blake2( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen )
|
|
||||||
{
|
|
||||||
return blake2b( out, in, key, outlen, inlen, keylen );
|
|
||||||
}
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -189,13 +189,6 @@ static inline int blake2b_init0( blake2b_state *S )
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#define blake2b_init BLAKE2_IMPL_NAME(blake2b_init)
|
|
||||||
#define blake2b_init_param BLAKE2_IMPL_NAME(blake2b_init_param)
|
|
||||||
#define blake2b_init_key BLAKE2_IMPL_NAME(blake2b_init_key)
|
|
||||||
#define blake2b_update BLAKE2_IMPL_NAME(blake2b_update)
|
|
||||||
#define blake2b_final BLAKE2_IMPL_NAME(blake2b_final)
|
|
||||||
#define blake2b BLAKE2_IMPL_NAME(blake2b)
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -175,13 +175,6 @@ static inline int blake2s_init0( blake2s_state *S )
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define blake2s_init BLAKE2_IMPL_NAME(blake2s_init)
|
|
||||||
#define blake2s_init_param BLAKE2_IMPL_NAME(blake2s_init_param)
|
|
||||||
#define blake2s_init_key BLAKE2_IMPL_NAME(blake2s_init_key)
|
|
||||||
#define blake2s_update BLAKE2_IMPL_NAME(blake2s_update)
|
|
||||||
#define blake2s_final BLAKE2_IMPL_NAME(blake2s_final)
|
|
||||||
#define blake2s BLAKE2_IMPL_NAME(blake2s)
|
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue