version 5.5.1

add SipHash and HalfSipHash for PIDigest
This commit is contained in:
2025-10-08 21:15:28 +03:00
parent 1d76cacae2
commit 978e350722
16 changed files with 3965 additions and 59 deletions

View File

@@ -39,15 +39,18 @@ class PIP_EXPORT PIDigest {
public:
enum class Type {
SHA1,
SHA2_224,
SHA2_256,
SHA2_384,
SHA2_512,
SHA2_512_224,
SHA2_512_256,
MD2,
MD4,
MD5,
BLAKE2s_128,
BLAKE2s_160,
BLAKE2s_224,
@@ -58,6 +61,12 @@ public:
BLAKE2b_256,
BLAKE2b_384,
BLAKE2b_512,
SipHash_2_4_64,
SipHash_2_4_128,
HalfSipHash_2_4_32,
HalfSipHash_2_4_64,
Count,
};
@@ -66,6 +75,7 @@ public:
static PIConstChars typeName(Type type);
static PIByteArray calculate(const PIByteArray & msg, Type type);
static PIByteArray calculateWithKey(const PIByteArray & msg, const PIByteArray & key, Type type);
static PIByteArray HMAC(const PIByteArray & msg, const PIByteArray & key, PIDigest::Type type);
};