Skip to content

Commit 49a1294

Browse files
committed
fix LN_* macro values
1 parent b3aa599 commit 49a1294

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Modules/hmacmodule.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#include "pycore_hashtable.h"
77
#include "pycore_strhex.h" // _Py_strhex()
88

9-
#include <openssl/obj_mac.h> // LN_* macros
9+
#include <openssl/objects.h>
1010

1111
#include "_hacl/Hacl_HMAC.h"
1212
#include "hashlib.h"
@@ -76,7 +76,7 @@
7676
#if defined(LN_sha3_224)
7777
# define Py_OpenSSL_LN_sha3_224 LN_sha3_224
7878
#else
79-
# define Py_OpenSSL_LN_sha3_224 "sha3_224"
79+
# define Py_OpenSSL_LN_sha3_224 "sha3-224"
8080
#endif
8181

8282
// HACL_HID = sha3_256
@@ -88,7 +88,7 @@
8888
#if defined(LN_sha3_256)
8989
# define Py_OpenSSL_LN_sha3_256 LN_sha3_256
9090
#else
91-
# define Py_OpenSSL_LN_sha3_256 "sha3_256"
91+
# define Py_OpenSSL_LN_sha3_256 "sha3-256"
9292
#endif
9393

9494
// HACL_HID = sha3_384
@@ -100,7 +100,7 @@
100100
#if defined(LN_sha3_384)
101101
# define Py_OpenSSL_LN_sha3_384 LN_sha3_384
102102
#else
103-
# define Py_OpenSSL_LN_sha3_384 "sha3_384"
103+
# define Py_OpenSSL_LN_sha3_384 "sha3-384"
104104
#endif
105105

106106
// HACL_HID = sha3_512
@@ -112,7 +112,7 @@
112112
#if defined(LN_sha3_512)
113113
# define Py_OpenSSL_LN_sha3_512 LN_sha3_512
114114
#else
115-
# define Py_OpenSSL_LN_sha3_512 "sha3_512"
115+
# define Py_OpenSSL_LN_sha3_512 "sha3-512"
116116
#endif
117117

118118
/* Blake family */

0 commit comments

Comments
 (0)