diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-16 12:11:01 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-06-17 20:49:05 +0200 |
commit | fac33709478cfbd1657aa502ea6ea1acb12ecc2d (patch) | |
tree | 429a26482407e34e4ac3e1873e63557cc048e21e /ncr-key.c | |
parent | a1e2f414b46deb9d746ba03fb337ef0c95d46f7a (diff) | |
download | cryptodev-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |