Skip to content

Commit aab2b0b

Browse files
committed
align naming of one-shot HMAC with OpenSSL
1 parent 10e1189 commit aab2b0b

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

Modules/clinic/hmacmodule.c.h

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/hmacmodule.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1299,7 +1299,7 @@ _hmac_compute_sha1_impl(PyObject *module, PyObject *key, PyObject *msg)
12991299
}
13001300

13011301
/*[clinic input]
1302-
_hmac.compute_sha2_224
1302+
_hmac.compute_sha224 as _hmac_compute_sha2_224
13031303
13041304
key: object
13051305
msg: object
@@ -1309,13 +1309,13 @@ _hmac.compute_sha2_224
13091309

13101310
static PyObject *
13111311
_hmac_compute_sha2_224_impl(PyObject *module, PyObject *key, PyObject *msg)
1312-
/*[clinic end generated code: output=7f21f1613e53979e input=bcaac7a3637484ce]*/
1312+
/*[clinic end generated code: output=7f21f1613e53979e input=a1a75f25f23449af]*/
13131313
{
13141314
Py_HMAC_HACL_ONESHOT(sha2_224, key, msg);
13151315
}
13161316

13171317
/*[clinic input]
1318-
_hmac.compute_sha2_256
1318+
_hmac.compute_sha256 as _hmac_compute_sha2_256
13191319
13201320
key: object
13211321
msg: object
@@ -1325,13 +1325,13 @@ _hmac.compute_sha2_256
13251325

13261326
static PyObject *
13271327
_hmac_compute_sha2_256_impl(PyObject *module, PyObject *key, PyObject *msg)
1328-
/*[clinic end generated code: output=d4a291f7d9a82459 input=6e2d1f6fe9c56d21]*/
1328+
/*[clinic end generated code: output=d4a291f7d9a82459 input=5c9ccf2df048ace3]*/
13291329
{
13301330
Py_HMAC_HACL_ONESHOT(sha2_256, key, msg);
13311331
}
13321332

13331333
/*[clinic input]
1334-
_hmac.compute_sha2_384
1334+
_hmac.compute_sha384 as _hmac_compute_sha2_384
13351335
13361336
key: object
13371337
msg: object
@@ -1341,13 +1341,13 @@ _hmac.compute_sha2_384
13411341

13421342
static PyObject *
13431343
_hmac_compute_sha2_384_impl(PyObject *module, PyObject *key, PyObject *msg)
1344-
/*[clinic end generated code: output=f211fa26e3700c27 input=9ce8de89dda79e62]*/
1344+
/*[clinic end generated code: output=f211fa26e3700c27 input=2fee2c14766af231]*/
13451345
{
13461346
Py_HMAC_HACL_ONESHOT(sha2_384, key, msg);
13471347
}
13481348

13491349
/*[clinic input]
1350-
_hmac.compute_sha2_512
1350+
_hmac.compute_sha512 as _hmac_compute_sha2_512
13511351
13521352
key: object
13531353
msg: object
@@ -1357,7 +1357,7 @@ _hmac.compute_sha2_512
13571357

13581358
static PyObject *
13591359
_hmac_compute_sha2_512_impl(PyObject *module, PyObject *key, PyObject *msg)
1360-
/*[clinic end generated code: output=d5c20373762cecca input=b964bb8487d7debd]*/
1360+
/*[clinic end generated code: output=d5c20373762cecca input=3371eaac315c7864]*/
13611361
{
13621362
Py_HMAC_HACL_ONESHOT(sha2_512, key, msg);
13631363
}

0 commit comments

Comments
 (0)