crypto-inventory 0.3.0: Rust detector (use-resolved names, static calls, generics, ring constants, Noise patterns), Cargo.toml manifests, BLAKE3; 44/44, negative control 21/21
This commit is contained in:
1 parent
86779c8334
commit
f2f6217b4c
16 files changed
+942
-21
No files matched your search
@@ -79,6 +79,7 @@ const HASH = {
|
||||
SHAKE256: { n: 'SHAKE256', c: CLS.S, xof: true },
|
||||
BLAKE2B: { n: 'BLAKE2b', c: CLS.S }, BLAKE2S: { n: 'BLAKE2s', c: CLS.S },
|
||||
BLAKE2B512: { n: 'BLAKE2b-512', c: CLS.S }, BLAKE2S256: { n: 'BLAKE2s-256', c: CLS.S },
|
||||
BLAKE3: { n: 'BLAKE3', c: CLS.S, q: 2, cl: 128 },
|
||||
SM3: { n: 'SM3', c: CLS.S },
|
||||
KECCAK256: { n: 'Keccak-256', c: CLS.S },
|
||||
};
|
||||
@@ -97,6 +98,7 @@ export function hashCanonic(s) {
|
||||
if (/^BLAKE2B-?512$/.test(t)) return 'BLAKE2B512';
|
||||
if (/^BLAKE2S-?256$/.test(t)) return 'BLAKE2S256';
|
||||
if (/^BLAKE2[BS]$/.test(t)) return t;
|
||||
if (/^BLAKE3$/.test(t)) return 'BLAKE3';
|
||||
if (/^SM3$/.test(t)) return 'SM3';
|
||||
if (/^KECCAK-?256$/.test(t)) return 'KECCAK256';
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user