]> granicus.if.org Git - php/commit
hash: Implement secret support for xxh3 and xxh128
authorAnatol Belski <ab@php.net>
Sat, 20 Feb 2021 22:26:59 +0000 (23:26 +0100)
committerAnatol Belski <ab@php.net>
Sat, 20 Feb 2021 22:26:59 +0000 (23:26 +0100)
commit20501c72c838e2adfbc8591e270ebbd67b22f400
treeba732ace869c18c47a9f6461872855d71f82bddc
parent3b29f5164dab76392477d67b515baf696d14d29b
hash: Implement secret support for xxh3 and xxh128

A secret can be passed through the options array. The length is
currently in the range of 136 to 256 bytes. The concerned algos are
already marked as non serializable.

Signed-off-by: Anatol Belski <ab@php.net>
ext/hash/hash_xxhash.c
ext/hash/php_hash_xxhash.h
ext/hash/tests/xxhash_secret.phpt [new file with mode: 0644]