Skip to content

Commit

Permalink
check if racoon's sha2 can work on an openssl.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakane committed Jun 27, 2003
1 parent d599ae4 commit 4720b49
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 50 deletions.
8 changes: 7 additions & 1 deletion kame/kame/racoon/algorithm.c
@@ -1,4 +1,4 @@
/* $KAME: algorithm.c,v 1.25 2002/06/10 20:01:21 itojun Exp $ */
/* $KAME: algorithm.c,v 1.26 2003/06/27 11:47:06 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -57,6 +57,7 @@ static struct hash_algorithm oakley_hashdef[] = {
eay_sha1_init, eay_sha1_update,
eay_sha1_final, eay_sha1_hashlen,
eay_sha1_one, },
#if defined(WITH_SHA2)
{ "sha2_256", algtype_sha2_256, OAKLEY_ATTR_HASH_ALG_SHA2_256,
eay_sha2_256_init, eay_sha2_256_update,
eay_sha2_256_final, eay_sha2_256_hashlen,
Expand All @@ -69,6 +70,7 @@ static struct hash_algorithm oakley_hashdef[] = {
eay_sha2_512_init, eay_sha2_512_update,
eay_sha2_512_final, eay_sha2_512_hashlen,
eay_sha2_512_one, },
#endif
};

static struct hmac_algorithm oakley_hmacdef[] = {
Expand All @@ -80,6 +82,7 @@ static struct hmac_algorithm oakley_hmacdef[] = {
eay_hmacsha1_init, eay_hmacsha1_update,
eay_hmacsha1_final, NULL,
eay_hmacsha1_one, },
#if defined(WITH_SHA2)
{ "hmac_sha2_256", algtype_sha2_256, OAKLEY_ATTR_HASH_ALG_SHA2_256,
eay_hmacsha2_256_init, eay_hmacsha2_256_update,
eay_hmacsha2_256_final, NULL,
Expand All @@ -92,6 +95,7 @@ static struct hmac_algorithm oakley_hmacdef[] = {
eay_hmacsha2_512_init, eay_hmacsha2_512_update,
eay_hmacsha2_512_final, NULL,
eay_hmacsha2_512_one, },
#endif
};

static struct enc_algorithm oakley_encdef[] = {
Expand Down Expand Up @@ -185,6 +189,7 @@ static struct hmac_algorithm ipsec_hmacdef[] = {
NULL, NULL,
NULL, eay_null_hashlen,
NULL, },
#if defined(WITH_SHA2)
{ "hmac_sha2_256", algtype_hmac_sha2_256, IPSECDOI_ATTR_SHA2_256,
NULL, NULL,
NULL, eay_sha2_256_hashlen,
Expand All @@ -197,6 +202,7 @@ static struct hmac_algorithm ipsec_hmacdef[] = {
NULL, NULL,
NULL, eay_sha2_512_hashlen,
NULL, },
#endif
};

static struct misc_algorithm ipsec_compdef[] = {
Expand Down

0 comments on commit 4720b49

Please sign in to comment.