]> granicus.if.org Git - python/commitdiff
bpo-37055: fix warnings in _blake2 module (GH-14646)
authorInada Naoki <songofacandy@gmail.com>
Mon, 26 Aug 2019 17:52:36 +0000 (02:52 +0900)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 26 Aug 2019 17:52:36 +0000 (10:52 -0700)
https://bugs.python.org/issue37055

Automerge-Triggered-By: @tiran
Modules/_blake2/impl/blake2.h
Modules/_blake2/impl/blake2b.c
Modules/_blake2/impl/blake2s.c

index 5ca17f610742c9e226aa2e508b7bfbd11acbdaaa..a08d82efefe09ff8833932de3d13d79d55f9b558 100644 (file)
@@ -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 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)
 }
 #endif
index ca15046223543382c025ca8e482fb0e304c265e5..3d3e46506f2e7d4c268b6395a150cf8e8ccf2aae 100644 (file)
@@ -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)
 extern "C" {
 #endif
index 0c3636ef6fc5e8a6c26563a220220f0f79ccc62b..3a04328ab8a4f1449b8a9551fd3b8d51d7646517 100644 (file)
@@ -175,13 +175,6 @@ static inline int blake2s_init0( blake2s_state *S )
   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)
 extern "C" {
 #endif