summaryrefslogtreecommitdiffstats
path: root/ncr-key.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-16 12:11:01 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-06-17 20:49:05 +0200
commitfac33709478cfbd1657aa502ea6ea1acb12ecc2d (patch)
tree429a26482407e34e4ac3e1873e63557cc048e21e /ncr-key.c
parenta1e2f414b46deb9d746ba03fb337ef0c95d46f7a (diff)
downloadcryptodev-linux-fac33709478cfbd1657aa502ea6ea1acb12ecc2d.tar.gz
cryptodev-linux-fac33709478cfbd1657aa502ea6ea1acb12ecc2d.tar.xz
cryptodev-linux-fac33709478cfbd1657aa502ea6ea1acb12ecc2d.zip
Initial attempts to allow wrapping keys with out of band data such as flags, key ids etc.
Diffstat (limited to 'ncr-key.c')
-rw-r--r--ncr-key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ncr-key.c b/ncr-key.c
index b60cb8e..fd5b489 100644
--- a/ncr-key.c
+++ b/ncr-key.c
@@ -260,7 +260,7 @@ int ret;
memcpy(item->key_id, data.key_id, data.key_id_size);
- if (ditem->data_size > MAX_KEY_SIZE) {
+ if (ditem->data_size > NCR_CIPHER_MAX_KEY_LEN) {
err();
ret = -EINVAL;
goto fail;
@@ -320,7 +320,7 @@ size_t size;
size = gen.params.params.secret.bits/8;
if ((gen.params.params.secret.bits % 8 != 0) ||
- (size > MAX_KEY_SIZE)) {
+ (size > NCR_CIPHER_MAX_KEY_LEN)) {
err();
ret = -EINVAL;
goto fail;