Adding OpenSSL HMAC signer functions to openssl plugin
This commit is contained in:
committed by
Tobias Brunner
parent
0504b0a09f
commit
54081897cf
@@ -42,6 +42,7 @@
|
||||
#include "openssl_crl.h"
|
||||
#include "openssl_rng.h"
|
||||
#include "openssl_hmac_prf.h"
|
||||
#include "openssl_hmac_signer.h"
|
||||
|
||||
typedef struct private_openssl_plugin_t private_openssl_plugin_t;
|
||||
|
||||
@@ -276,6 +277,25 @@ METHOD(plugin_t, get_features, int,
|
||||
#ifndef OPENSSL_NO_SHA512
|
||||
PLUGIN_PROVIDE(PRF, PRF_HMAC_SHA2_384),
|
||||
PLUGIN_PROVIDE(PRF, PRF_HMAC_SHA2_512),
|
||||
#endif
|
||||
PLUGIN_REGISTER(SIGNER, openssl_hmac_signer_create),
|
||||
#ifndef OPENSSL_NO_MD5
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_MD5_96),
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_MD5_128),
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SHA1
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA1_96),
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA1_128),
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA1_160),
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SHA256
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA2_256_128),
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA2_256_256),
|
||||
#endif
|
||||
#ifndef OPENSSL_NO_SHA512
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA2_384_192),
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA2_384_384),
|
||||
PLUGIN_PROVIDE(SIGNER, AUTH_HMAC_SHA2_512_256),
|
||||
#endif
|
||||
#endif /* OPENSSL_NO_HMAC */
|
||||
#ifndef OPENSSL_NO_DH
|
||||
|
||||
Reference in New Issue
Block a user