Lines Matching refs:in_key
137 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey() argument
142 return aes_expandkey(ctx, in_key, key_len); in skcipher_aes_setkey()
146 const u8 *in_key, unsigned int key_len) in xts_set_key() argument
151 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key()
155 ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key()
157 ret = aes_expandkey(&ctx->key2, &in_key[key_len / 2], in xts_set_key()
163 const u8 *in_key, in essiv_cbc_set_key() argument
170 ret = aes_expandkey(&ctx->key1, in_key, key_len); in essiv_cbc_set_key()
174 crypto_shash_tfm_digest(ctx->hash, in_key, key_len, digest); in essiv_cbc_set_key()
800 static int cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key, in cbcmac_setkey() argument
805 return aes_expandkey(&ctx->key, in_key, key_len); in cbcmac_setkey()
817 static int cmac_setkey(struct crypto_shash *tfm, const u8 *in_key, in cmac_setkey() argument
825 err = cbcmac_setkey(tfm, in_key, key_len); in cmac_setkey()
841 static int xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key, in xcbc_setkey() argument
855 err = cbcmac_setkey(tfm, in_key, key_len); in xcbc_setkey()