Lines Matching refs:key_len
78 unsigned int key_len) in aesbs_setkey() argument
84 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey()
88 ctx->rounds = 6 + key_len / 4; in aesbs_setkey()
137 unsigned int key_len) in aesbs_cbc_setkey() argument
143 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_setkey()
147 ctx->key.rounds = 6 + key_len / 4; in aesbs_cbc_setkey()
210 unsigned int key_len) in aesbs_ctr_setkey_sync() argument
215 err = aes_expandkey(&ctx->fallback, in_key, key_len); in aesbs_ctr_setkey_sync()
219 ctx->key.rounds = 6 + key_len / 4; in aesbs_ctr_setkey_sync()
270 unsigned int key_len) in aesbs_xts_setkey() argument
276 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey()
280 key_len /= 2; in aesbs_xts_setkey()
281 err = aes_expandkey(&ctx->cts, in_key, key_len); in aesbs_xts_setkey()
285 err = aes_expandkey(&rk, in_key + key_len, key_len); in aesbs_xts_setkey()
291 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()