Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(265587)

Delta Between Two Patch Sets: Modules/_blake2/blake2module.c

Issue 26798: add BLAKE2 to hashlib
Left Patch Set: Created 3 years, 3 months ago
Right Patch Set: Created 2 years, 11 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Modules/_blake2/blake2b_impl.c ('k') | Modules/_blake2/blake2ns.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(Both sides are equal)
1 /* 1 /*
2 * Written in 2013 by Dmitry Chestnykh <dmitry@codingrobots.com> 2 * Written in 2013 by Dmitry Chestnykh <dmitry@codingrobots.com>
3 * Modified for CPython by Christian Heimes <christian@python.org> 3 * Modified for CPython by Christian Heimes <christian@python.org>
4 * 4 *
5 * To the extent possible under law, the author have dedicated all 5 * To the extent possible under law, the author have dedicated all
6 * copyright and related and neighboring rights to this software to 6 * copyright and related and neighboring rights to this software to
7 * the public domain worldwide. This software is distributed without 7 * the public domain worldwide. This software is distributed without
8 * any warranty. http://creativecommons.org/publicdomain/zero/1.0/ 8 * any warranty. http://creativecommons.org/publicdomain/zero/1.0/
9 */ 9 */
10 10
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 ADD_INT(d, "MAX_KEY_SIZE", BLAKE2S_KEYBYTES); 96 ADD_INT(d, "MAX_KEY_SIZE", BLAKE2S_KEYBYTES);
97 ADD_INT(d, "MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES); 97 ADD_INT(d, "MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES);
98 98
99 PyModule_AddIntConstant(m, "BLAKE2S_SALT_SIZE", BLAKE2S_SALTBYTES); 99 PyModule_AddIntConstant(m, "BLAKE2S_SALT_SIZE", BLAKE2S_SALTBYTES);
100 PyModule_AddIntConstant(m, "BLAKE2S_PERSON_SIZE", BLAKE2S_PERSONALBYTES); 100 PyModule_AddIntConstant(m, "BLAKE2S_PERSON_SIZE", BLAKE2S_PERSONALBYTES);
101 PyModule_AddIntConstant(m, "BLAKE2S_MAX_KEY_SIZE", BLAKE2S_KEYBYTES); 101 PyModule_AddIntConstant(m, "BLAKE2S_MAX_KEY_SIZE", BLAKE2S_KEYBYTES);
102 PyModule_AddIntConstant(m, "BLAKE2S_MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES); 102 PyModule_AddIntConstant(m, "BLAKE2S_MAX_DIGEST_SIZE", BLAKE2S_OUTBYTES);
103 103
104 return m; 104 return m;
105 } 105 }
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+