We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 577c992 commit dd07333Copy full SHA for dd07333
main.c
@@ -332,6 +332,8 @@ initwhirlpool(void)
332
m = Py_InitModule3("whirlpool", whirlpool_functions, module_doc);
333
if (m == NULL)
334
return;
335
+ PyModule_AddIntConstant(m, "digest_size", DIGESTBYTES);
336
+ PyModule_AddIntConstant(m, "block_size", WBLOCKBYTES);
337
d = PyModule_GetDict(m);
338
PyDict_SetItemString(d, "WhirlpoolType", (PyObject *)&Whirlpooltype);
339
}
0 commit comments