003 File Manager
Current Path:
/usr/src/sys/contrib/libsodium/src/libsodium/crypto_pwhash/argon2
usr
/
src
/
sys
/
contrib
/
libsodium
/
src
/
libsodium
/
crypto_pwhash
/
argon2
/
📁
..
📄
argon2-core.c
(15.29 KB)
📄
argon2-core.h
(9.98 KB)
📄
argon2-encoding.c
(10.01 KB)
📄
argon2-encoding.h
(1.04 KB)
📄
argon2-fill-block-avx2.c
(7.83 KB)
📄
argon2-fill-block-avx512f.c
(8.02 KB)
📄
argon2-fill-block-ref.c
(8.38 KB)
📄
argon2-fill-block-ssse3.c
(7.76 KB)
📄
argon2.c
(7.87 KB)
📄
argon2.h
(10.83 KB)
📄
blake2b-long.c
(3.06 KB)
📄
blake2b-long.h
(151 B)
📄
blamka-round-avx2.h
(5.71 KB)
📄
blamka-round-avx512f.h
(4.46 KB)
📄
blamka-round-ref.h
(1.52 KB)
📄
blamka-round-ssse3.h
(5.32 KB)
📄
pwhash_argon2i.c
(7.78 KB)
📄
pwhash_argon2id.c
(6.23 KB)
Editing: blamka-round-ref.h
#ifndef blamka_round_ref_H #define blamka_round_ref_H #include "private/common.h" /*designed by the Lyra PHC team */ static inline uint64_t fBlaMka(uint64_t x, uint64_t y) { const uint64_t m = UINT64_C(0xFFFFFFFF); const uint64_t xy = (x & m) * (y & m); return x + y + 2 * xy; } #define G(a, b, c, d) \ do { \ a = fBlaMka(a, b); \ d = ROTR64(d ^ a, 32); \ c = fBlaMka(c, d); \ b = ROTR64(b ^ c, 24); \ a = fBlaMka(a, b); \ d = ROTR64(d ^ a, 16); \ c = fBlaMka(c, d); \ b = ROTR64(b ^ c, 63); \ } while ((void) 0, 0) #define BLAKE2_ROUND_NOMSG(v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, \ v12, v13, v14, v15) \ do { \ G(v0, v4, v8, v12); \ G(v1, v5, v9, v13); \ G(v2, v6, v10, v14); \ G(v3, v7, v11, v15); \ G(v0, v5, v10, v15); \ G(v1, v6, v11, v12); \ G(v2, v7, v8, v13); \ G(v3, v4, v9, v14); \ } while ((void) 0, 0) #endif
Upload File
Create Folder