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