blake2b_generic.c (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) | blake2b_generic.c (2947a4567f3a79127d2d540384e7f042106c1a24) |
---|---|
1// SPDX-License-Identifier: (GPL-2.0-only OR Apache-2.0) 2/* 3 * Generic implementation of the BLAKE2b digest algorithm. Based on the BLAKE2b 4 * reference implementation, but it has been heavily modified for use in the 5 * kernel. The reference implementation was: 6 * 7 * Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under 8 * the terms of the CC0, the OpenSSL Licence, or the Apache Public License --- 88 unchanged lines hidden (view full) --- 97 ROUND(5); 98 ROUND(6); 99 ROUND(7); 100 ROUND(8); 101 ROUND(9); 102 ROUND(10); 103 ROUND(11); 104#ifdef CONFIG_CC_IS_CLANG | 1// SPDX-License-Identifier: (GPL-2.0-only OR Apache-2.0) 2/* 3 * Generic implementation of the BLAKE2b digest algorithm. Based on the BLAKE2b 4 * reference implementation, but it has been heavily modified for use in the 5 * kernel. The reference implementation was: 6 * 7 * Copyright 2012, Samuel Neves <sneves@dei.uc.pt>. You may use this under 8 * the terms of the CC0, the OpenSSL Licence, or the Apache Public License --- 88 unchanged lines hidden (view full) --- 97 ROUND(5); 98 ROUND(6); 99 ROUND(7); 100 ROUND(8); 101 ROUND(9); 102 ROUND(10); 103 ROUND(11); 104#ifdef CONFIG_CC_IS_CLANG |
105#pragma nounroll /* https://bugs.llvm.org/show_bug.cgi?id=45803 */ | 105#pragma nounroll /* https://llvm.org/pr45803 */ |
106#endif 107 for (i = 0; i < 8; ++i) 108 S->h[i] = S->h[i] ^ v[i] ^ v[i + 8]; 109} 110 111#undef G 112#undef ROUND 113 --- 74 unchanged lines hidden --- | 106#endif 107 for (i = 0; i < 8; ++i) 108 S->h[i] = S->h[i] ^ v[i] ^ v[i + 8]; 109} 110 111#undef G 112#undef ROUND 113 --- 74 unchanged lines hidden --- |