mirror of
https://github.com/openssl/openssl.git
synced 2024-12-15 06:01:37 +08:00
3f5616d734
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)
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
/*
|
|
* Copyright 2006-2017 The OpenSSL Project Authors. All Rights Reserved.
|
|
*
|
|
* Licensed under the OpenSSL license (the "License"). You may not use
|
|
* this file except in compliance with the License. You can obtain a copy
|
|
* in the file LICENSE in the source distribution or at
|
|
* https://www.openssl.org/source/license.html
|
|
*/
|
|
|
|
/*
|
|
* This table MUST be kept in ascening order of the NID each method
|
|
* represents (corresponding to the pkey_id field) as OBJ_bsearch
|
|
* is used to search it.
|
|
*/
|
|
static const EVP_PKEY_ASN1_METHOD *standard_methods[] = {
|
|
#ifndef OPENSSL_NO_RSA
|
|
&rsa_asn1_meths[0],
|
|
&rsa_asn1_meths[1],
|
|
#endif
|
|
#ifndef OPENSSL_NO_DH
|
|
&dh_asn1_meth,
|
|
#endif
|
|
#ifndef OPENSSL_NO_DSA
|
|
&dsa_asn1_meths[0],
|
|
&dsa_asn1_meths[1],
|
|
&dsa_asn1_meths[2],
|
|
&dsa_asn1_meths[3],
|
|
&dsa_asn1_meths[4],
|
|
#endif
|
|
#ifndef OPENSSL_NO_EC
|
|
&eckey_asn1_meth,
|
|
#endif
|
|
&hmac_asn1_meth,
|
|
#ifndef OPENSSL_NO_CMAC
|
|
&cmac_asn1_meth,
|
|
#endif
|
|
#ifndef OPENSSL_NO_RSA
|
|
&rsa_pss_asn1_meth,
|
|
#endif
|
|
#ifndef OPENSSL_NO_DH
|
|
&dhx_asn1_meth,
|
|
#endif
|
|
#ifndef OPENSSL_NO_EC
|
|
&ecx25519_asn1_meth,
|
|
#endif
|
|
#ifndef OPENSSL_NO_POLY1305
|
|
&poly1305_asn1_meth,
|
|
#endif
|
|
#ifndef OPENSSL_NO_SIPHASH
|
|
&siphash_asn1_meth,
|
|
#endif
|
|
};
|
|
|