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

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

Issue 26798: add BLAKE2 to hashlib
Left Patch Set: Created 3 years, 5 months ago
Right Patch Set: Created 3 years, 1 month 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/blake2ns.h ('k') | Modules/_blake2/clinic/blake2b_impl.c.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
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
11 /* WARNING: autogenerated file! 11 /* WARNING: autogenerated file!
12 * 12 *
13 * The blake2s_impl.c is autogenerated from blake2s_impl.c. 13 * The blake2s_impl.c is autogenerated from blake2s_impl.c.
14 */ 14 */
15 15
16 #include "Python.h" 16 #include "Python.h"
17 #include "pystrhex.h" 17 #include "pystrhex.h"
18 #ifdef WITH_THREAD 18 #ifdef WITH_THREAD
19 #include "pythread.h" 19 #include "pythread.h"
20 #endif 20 #endif
21 21
22 #include "../hashlib.h" 22 #include "../hashlib.h"
23 #include "blake2ns.h" 23 #include "blake2ns.h"
24 24
25 #define HAVE_BLAKE2S 1 25 #define HAVE_BLAKE2S 1
26 #define BLAKE2_LOCAL_INLINE(type) Py_LOCAL_INLINE(type)
26 27
27 #include "impl/blake2.h" 28 #include "impl/blake2.h"
28 #include "impl/blake2-impl.h" /* for secure_zero_memory() and store48() */ 29 #include "impl/blake2-impl.h" /* for secure_zero_memory() and store48() */
29 30
30 #ifdef BLAKE2_USE_SSE 31 #ifdef BLAKE2_USE_SSE
31 #include "impl/blake2s.c" 32 #include "impl/blake2s.c"
32 #else 33 #else
33 #include "impl/blake2s-ref.c" 34 #include "impl/blake2s-ref.c"
34 #endif 35 #endif
35 36
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 py_blake2s_getsetters, /* tp_getset */ 451 py_blake2s_getsetters, /* tp_getset */
451 0, /* tp_base */ 452 0, /* tp_base */
452 0, /* tp_dict */ 453 0, /* tp_dict */
453 0, /* tp_descr_get */ 454 0, /* tp_descr_get */
454 0, /* tp_descr_set */ 455 0, /* tp_descr_set */
455 0, /* tp_dictoffset */ 456 0, /* tp_dictoffset */
456 0, /* tp_init */ 457 0, /* tp_init */
457 0, /* tp_alloc */ 458 0, /* tp_alloc */
458 py_blake2s_new, /* tp_new */ 459 py_blake2s_new, /* tp_new */
459 }; 460 };
LEFTRIGHT

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