diff options
author | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-11-09 14:38:55 +0100 |
---|---|---|
committer | Andreas Steffen <andreas.steffen@strongswan.org> | 2014-11-29 14:51:16 +0100 |
commit | f673966b9fb1f2fe8b94b9377e7159f7dcc2f8c6 (patch) | |
tree | 74eeb8210e9f8a0da344cd5f95da648c2b267a18 /src/libstrongswan/crypto/hashers/hasher.c | |
parent | 56009f2001a4678872c360d143fc3095803cb824 (diff) | |
download | strongswan-f673966b9fb1f2fe8b94b9377e7159f7dcc2f8c6.tar.bz2 strongswan-f673966b9fb1f2fe8b94b9377e7159f7dcc2f8c6.tar.xz |
Started implementing BLISS signature generation
Diffstat (limited to 'src/libstrongswan/crypto/hashers/hasher.c')
-rw-r--r-- | src/libstrongswan/crypto/hashers/hasher.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstrongswan/crypto/hashers/hasher.c b/src/libstrongswan/crypto/hashers/hasher.c index 13cbb5a59..b5e1134ba 100644 --- a/src/libstrongswan/crypto/hashers/hasher.c +++ b/src/libstrongswan/crypto/hashers/hasher.c @@ -323,6 +323,14 @@ int hasher_signature_algorithm_to_oid(hash_algorithm_t alg, key_type_t key) default: return OID_UNKNOWN; } + case KEY_BLISS: + switch (alg) + { + case HASH_SHA512: + return OID_BLISS_WITH_SHA512; + default: + return OID_UNKNOWN; + } default: return OID_UNKNOWN; } |