unit-tests: Added crypter tests

This commit is contained in:
Andreas Steffen
2013-12-06 10:09:36 +01:00
parent fdc6c682b2
commit 933f3c6e8f
4 changed files with 112 additions and 3 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ typedef struct {
key_type_t key;
}hasher_oid_t;
hasher_oid_t oids[] = {
static hasher_oid_t oids[] = {
{ OID_MD2, HASH_MD2, KEY_ANY },
{ OID_MD5, HASH_MD5, KEY_ANY },
{ OID_SHA1, HASH_SHA1, KEY_ANY },
@@ -75,7 +75,7 @@ typedef struct {
hash_algorithm_t alg;
}hasher_prf_t;
hasher_prf_t prfs[] = {
static hasher_prf_t prfs[] = {
{ PRF_HMAC_MD5, HASH_MD5 },
{ PRF_HMAC_SHA1, HASH_SHA1 },
{ PRF_FIPS_SHA1_160, HASH_SHA1 },
@@ -104,7 +104,7 @@ typedef struct {
size_t length;
}hasher_auth_t;
hasher_auth_t auths[] = {
static hasher_auth_t auths[] = {
{ AUTH_UNDEFINED, HASH_MD2, 0 },
{ AUTH_UNDEFINED, HASH_MD4, 0 },
{ AUTH_UNDEFINED, HASH_SHA224, 0 },