From 8ff8c33d1d720a227db193c2105cbdcf119e5746 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Sun, 4 Dec 2005 01:30:35 +0000 Subject: - implemented RSA, only signing and verifying esma_pkcs1 padded - removed gmp-helper: chunk_to_mpz is now done with gmp functions, prime generation in prime-pool - added prime-pool (needs priority fix) - proof of concept RSA authentication - mpz uses LEAK_DETECTIVE - configuration-manager supports rsa keys --- Source/charon/transforms/hashers/hasher.c | 8 ++++++-- Source/charon/transforms/hashers/hasher.h | 8 ++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'Source/charon/transforms/hashers') diff --git a/Source/charon/transforms/hashers/hasher.c b/Source/charon/transforms/hashers/hasher.c index 170dfe887..0b86eef37 100644 --- a/Source/charon/transforms/hashers/hasher.c +++ b/Source/charon/transforms/hashers/hasher.c @@ -30,8 +30,12 @@ * mappings for hash_algorithm_t */ mapping_t hash_algorithm_m[] = { - {HASH_SHA1, "HASH_SHA1"}, - {HASH_MD5, "HASH_MD5"}, + {HASH_MD2,"HASH_MD2"}, + {HASH_MD5,"HASH_MD5"}, + {HASH_SHA1,"HASH_SHA1"}, + {HASH_SHA256,"HASH_SHA256"}, + {HASH_SHA384,"HASH_SHA384"}, + {HASH_SHA512,"HASH_SHA512"}, {MAPPING_END, NULL} }; diff --git a/Source/charon/transforms/hashers/hasher.h b/Source/charon/transforms/hashers/hasher.h index eda6fe12f..90cf89eff 100644 --- a/Source/charon/transforms/hashers/hasher.h +++ b/Source/charon/transforms/hashers/hasher.h @@ -32,8 +32,12 @@ typedef enum hash_algorithm_t hash_algorithm_t; * @brief Algorithms to use for hashing. */ enum hash_algorithm_t { - HASH_SHA1, - HASH_MD5 + HASH_MD2, + HASH_MD5, /* supported */ + HASH_SHA1, /* supported */ + HASH_SHA256, + HASH_SHA384, + HASH_SHA512, }; /** -- cgit v1.2.3