Lines Matching refs:key_len
69 unsigned int key_len) in aesbs_setkey() argument
75 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey()
79 ctx->rounds = 6 + key_len / 4; in aesbs_setkey()
128 unsigned int key_len) in aesbs_cbc_setkey() argument
134 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_setkey()
138 ctx->key.rounds = 6 + key_len / 4; in aesbs_cbc_setkey()
145 return crypto_skcipher_setkey(ctx->enc_tfm, in_key, key_len); in aesbs_cbc_setkey()
217 unsigned int key_len) in aesbs_ctr_setkey_sync() argument
222 err = aes_expandkey(&ctx->fallback, in_key, key_len); in aesbs_ctr_setkey_sync()
226 ctx->key.rounds = 6 + key_len / 4; in aesbs_ctr_setkey_sync()
301 unsigned int key_len) in aesbs_xts_setkey() argument
306 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
310 key_len /= 2; in aesbs_xts_setkey()
311 err = crypto_cipher_setkey(ctx->cts_tfm, in_key, key_len); in aesbs_xts_setkey()
314 err = crypto_cipher_setkey(ctx->tweak_tfm, in_key + key_len, key_len); in aesbs_xts_setkey()
318 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()