Lines Matching refs:keylen
105 unsigned int keylen) in crypto_gcm_setkey() argument
125 err = crypto_ablkcipher_setkey(ctr, key, keylen); in crypto_gcm_setkey()
859 unsigned int keylen) in crypto_rfc4106_setkey() argument
865 if (keylen < 4) in crypto_rfc4106_setkey()
868 keylen -= 4; in crypto_rfc4106_setkey()
869 memcpy(ctx->nonce, key + keylen, 4); in crypto_rfc4106_setkey()
874 err = crypto_aead_setkey(child, key, keylen); in crypto_rfc4106_setkey()
1070 unsigned int keylen) in crypto_rfc4543_setkey() argument
1076 if (keylen < 4) in crypto_rfc4543_setkey()
1079 keylen -= 4; in crypto_rfc4543_setkey()
1080 memcpy(ctx->nonce, key + keylen, 4); in crypto_rfc4543_setkey()
1085 err = crypto_aead_setkey(child, key, keylen); in crypto_rfc4543_setkey()