diff options
author | Martin Willi <martin@strongswan.org> | 2006-04-28 07:05:12 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2006-04-28 07:05:12 +0000 |
commit | 52923c9acb349adec3d1cc039e7a74c2e822da6e (patch) | |
tree | 5d723572fb2ede8b4cb96734468eb7c4f9b658d4 /Source/lib/crypto/hmac.c | |
parent | eea353466ec86ad5fd3fc4fb7ac560ebced64f3d (diff) | |
download | strongswan-52923c9acb349adec3d1cc039e7a74c2e822da6e.tar.bz2 strongswan-52923c9acb349adec3d1cc039e7a74c2e822da6e.tar.xz |
- renamed get_block_size of hasher
Diffstat (limited to 'Source/lib/crypto/hmac.c')
-rw-r--r-- | Source/lib/crypto/hmac.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/lib/crypto/hmac.c b/Source/lib/crypto/hmac.c index 84d6044fd..bb8880770 100644 --- a/Source/lib/crypto/hmac.c +++ b/Source/lib/crypto/hmac.c @@ -70,7 +70,7 @@ static void get_mac(private_hmac_t *this, chunk_t data, u_int8_t *out) * */ - u_int8_t buffer[this->h->get_block_size(this->h)]; + u_int8_t buffer[this->h->get_hash_size(this->h)]; chunk_t inner; if (out == NULL) @@ -82,7 +82,7 @@ static void get_mac(private_hmac_t *this, chunk_t data, u_int8_t *out) { /* append and do outer hash */ inner.ptr = buffer; - inner.len = this->h->get_block_size(this->h); + inner.len = this->h->get_hash_size(this->h); /* complete inner */ this->h->get_hash(this->h, data, buffer); @@ -109,7 +109,7 @@ static void allocate_mac(private_hmac_t *this, chunk_t data, chunk_t *out) } else { - out->len = this->h->get_block_size(this->h); + out->len = this->h->get_hash_size(this->h); out->ptr = malloc(out->len); this->hmac.get_mac(&(this->hmac), data, out->ptr); } @@ -120,7 +120,7 @@ static void allocate_mac(private_hmac_t *this, chunk_t data, chunk_t *out) */ static size_t get_block_size(private_hmac_t *this) { - return this->h->get_block_size(this->h); + return this->h->get_hash_size(this->h); } /** |