Reference Edwards-curve signature RFCs
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2012-2015 Tobias Brunner
|
||||
* Copyright (C) 2015-2016 Andreas Steffen
|
||||
* Copyright (C) 2015-2017 Andreas Steffen
|
||||
* Copyright (C) 2005-2006 Martin Willi
|
||||
* Copyright (C) 2005 Jan Hutter
|
||||
* HSR Hochschule fuer Technik Rapperswil
|
||||
@@ -20,13 +20,13 @@
|
||||
|
||||
#include <asn1/oid.h>
|
||||
|
||||
ENUM_BEGIN(hash_algorithm_names, HASH_IDENTITY, HASH_SHA512,
|
||||
"HASH_IDENTITY",
|
||||
ENUM_BEGIN(hash_algorithm_names, HASH_SHA1, HASH_IDENTITY,
|
||||
"HASH_SHA1",
|
||||
"HASH_SHA256",
|
||||
"HASH_SHA384",
|
||||
"HASH_SHA512");
|
||||
ENUM_NEXT(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA3_512, HASH_SHA512,
|
||||
"HASH_SHA512",
|
||||
"HASH_IDENTITY");
|
||||
ENUM_NEXT(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA3_512, HASH_IDENTITY,
|
||||
"HASH_UNKNOWN",
|
||||
"HASH_MD2",
|
||||
"HASH_MD4",
|
||||
@@ -38,13 +38,13 @@ ENUM_NEXT(hash_algorithm_names, HASH_UNKNOWN, HASH_SHA3_512, HASH_SHA512,
|
||||
"HASH_SHA3_512");
|
||||
ENUM_END(hash_algorithm_names, HASH_SHA3_512);
|
||||
|
||||
ENUM_BEGIN(hash_algorithm_short_names, HASH_IDENTITY, HASH_SHA512,
|
||||
"identity",
|
||||
ENUM_BEGIN(hash_algorithm_short_names, HASH_SHA1, HASH_IDENTITY,
|
||||
"sha1",
|
||||
"sha256",
|
||||
"sha384",
|
||||
"sha512");
|
||||
ENUM_NEXT(hash_algorithm_short_names, HASH_UNKNOWN, HASH_SHA3_512, HASH_SHA512,
|
||||
"sha512",
|
||||
"identity");
|
||||
ENUM_NEXT(hash_algorithm_short_names, HASH_UNKNOWN, HASH_SHA3_512, HASH_IDENTITY,
|
||||
"unknown",
|
||||
"md2",
|
||||
"md4",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2016 Andreas Steffen
|
||||
* Copyright (C) 2016-2017 Andreas Steffen
|
||||
* Copyright (C) 2012-2015 Tobias Brunner
|
||||
* Copyright (C) 2005-2006 Martin Willi
|
||||
* Copyright (C) 2005 Jan Hutter
|
||||
@@ -33,14 +33,16 @@ typedef struct hasher_t hasher_t;
|
||||
#include <credentials/keys/public_key.h>
|
||||
|
||||
/**
|
||||
* Hash algorithms as defined for IKEv2 by RFC 7427
|
||||
* Hash algorithms as defined for IKEv2
|
||||
*/
|
||||
enum hash_algorithm_t {
|
||||
HASH_IDENTITY = 0,
|
||||
/* RFC 7427 */
|
||||
HASH_SHA1 = 1,
|
||||
HASH_SHA256 = 2,
|
||||
HASH_SHA384 = 3,
|
||||
HASH_SHA512 = 4,
|
||||
/* draft-ietf-ipsecme-eddsa (RFC TBA) */
|
||||
HASH_IDENTITY = 5,
|
||||
/* use private use range for algorithms not defined/permitted by RFC 7427 */
|
||||
HASH_UNKNOWN = 1024,
|
||||
HASH_MD2 = 1025,
|
||||
|
||||
Reference in New Issue
Block a user