Add support for parameterized SipHash
authorTodd Short <tshort@akamai.com>
Wed, 11 Jan 2017 21:38:44 +0000 (16:38 -0500)
committerRich Salz <rsalz@openssl.org>
Wed, 1 Feb 2017 19:14:36 +0000 (14:14 -0500)
commit3f5616d734a92fdf99ab827f21e5b6cab85e7194
tree9c106795f72bc6622dfdca63d723ce0127011fc7
parent122fa088524571a3b60ebf301873f69afdac8f7a
Add support for parameterized SipHash

The core SipHash supports either 8 or 16-byte output and a configurable
number of rounds.
The default behavior, as added to EVP, is to use 16-byte output and
2,4 rounds, which matches the behavior of most implementations.
There is an EVP_PKEY_CTRL that can control the output size.

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2216)
27 files changed:
CHANGES
Configure
INSTALL
crypto/asn1/standard_methods.h
crypto/evp/evp_err.c
crypto/evp/p_lib.c
crypto/evp/pmeth_lib.c
crypto/include/internal/asn1_int.h
crypto/include/internal/evp_int.h
crypto/include/internal/siphash.h [new file with mode: 0644]
crypto/objects/obj_dat.h
crypto/objects/obj_mac.num
crypto/objects/objects.txt
crypto/siphash/build.info [new file with mode: 0644]
crypto/siphash/siphash.c [new file with mode: 0644]
crypto/siphash/siphash_ameth.c [new file with mode: 0644]
crypto/siphash/siphash_local.h [new file with mode: 0644]
crypto/siphash/siphash_pmeth.c [new file with mode: 0644]
doc/man3/EVP_PKEY_CTX_ctrl.pod
include/openssl/evp.h
include/openssl/obj_mac.h
test/build.info
test/evp_test.c
test/evptests.txt
test/siphash_internal_test.c [new file with mode: 0644]
util/libcrypto.num
util/mkdef.pl