diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-25 16:20:32 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-08-25 16:20:32 +0200 |
commit | 61950862971ef6630930e9889921959405f3f76e (patch) | |
tree | f2f4d91bb127f6be0dccb04ef31a0ed44b59fc55 | |
parent | af2c2e1da1a898c8968281824ba8a4d9616670dc (diff) | |
download | cryptodev-linux-61950862971ef6630930e9889921959405f3f76e.tar.gz cryptodev-linux-61950862971ef6630930e9889921959405f3f76e.tar.xz cryptodev-linux-61950862971ef6630930e9889921959405f3f76e.zip |
use the rfc3394 suffix.
-rw-r--r-- | ncr-key-wrap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr-key-wrap.c b/ncr-key-wrap.c index 93103b5..7acb573 100644 --- a/ncr-key-wrap.c +++ b/ncr-key-wrap.c @@ -321,7 +321,7 @@ fail: /* Wraps using the RFC3394 way. */ -static int wrap_aes(struct key_item_st* tobewrapped, struct key_item_st *kek, +static int wrap_aes_rfc3394(struct key_item_st* tobewrapped, struct key_item_st *kek, void* output, size_t *output_size, const void* iv, size_t iv_size) { size_t key_size, n; @@ -557,7 +557,7 @@ int ret; switch(wrap.algorithm) { case NCR_WALG_AES_RFC3394: - ret = wrap_aes(wkey, key, data, &data_size, + ret = wrap_aes_rfc3394(wkey, key, data, &data_size, wrap.params.params.cipher.iv, wrap.params.params.cipher.iv_size); break; case NCR_WALG_AES_RFC5649: |