Lines Matching refs:cipher
232 static int cvm_xts_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_xts_setkey() argument
235 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in cvm_xts_setkey()
289 static int cvm_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_setkey() argument
292 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in cvm_setkey()
304 static int cvm_cbc_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_aes_setkey() argument
307 return cvm_setkey(cipher, key, keylen, AES_CBC); in cvm_cbc_aes_setkey()
310 static int cvm_ecb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_aes_setkey() argument
313 return cvm_setkey(cipher, key, keylen, AES_ECB); in cvm_ecb_aes_setkey()
316 static int cvm_cfb_aes_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cfb_aes_setkey() argument
319 return cvm_setkey(cipher, key, keylen, AES_CFB); in cvm_cfb_aes_setkey()
322 static int cvm_cbc_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_cbc_des3_setkey() argument
325 return verify_skcipher_des3_key(cipher, key) ?: in cvm_cbc_des3_setkey()
326 cvm_setkey(cipher, key, keylen, DES3_CBC); in cvm_cbc_des3_setkey()
329 static int cvm_ecb_des3_setkey(struct crypto_skcipher *cipher, const u8 *key, in cvm_ecb_des3_setkey() argument
332 return verify_skcipher_des3_key(cipher, key) ?: in cvm_ecb_des3_setkey()
333 cvm_setkey(cipher, key, keylen, DES3_ECB); in cvm_ecb_des3_setkey()