Skip to content

Commit dbe1a32

Browse files
committed
move comment
1 parent aa41a74 commit dbe1a32

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Modules/hmacmodule.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,10 @@ _hmac_compute_digest_impl(PyObject *module, PyObject *key, PyObject *msg,
11021102
* Obtain a view from 'key' and 'msg', storing it in 'keyview' and 'msgview'.
11031103
*
11041104
* Return 0 on success; otherwise set an exception and return -1.
1105+
*
1106+
* The length of the key and message buffers must not exceed UINT32_MAX,
1107+
* lest an OverflowError is raised. The Python implementation takes care
1108+
* of dispatching to the OpenSSL implementation in this case.
11051109
*/
11061110
static int
11071111
hmac_get_buffer_views(PyObject *key, Py_buffer *keyview,
@@ -1130,10 +1134,6 @@ hmac_get_buffer_views(PyObject *key, Py_buffer *keyview,
11301134

11311135
/*
11321136
* One-shot HMAC-HASH using the given HACL_HID.
1133-
*
1134-
* The length of the key and message buffers must not exceed UINT32_MAX,
1135-
* lest an OverflowError is raised. The Python implementation takes care
1136-
* of dispatching to the OpenSSL implementation in this case.
11371137
*/
11381138
#define Py_HMAC_HACL_ONESHOT(HACL_HID, KEY, MSG) \
11391139
do { \

0 commit comments

Comments
 (0)