Lines Matching refs:key
33 u8 key[DES3_KEY_SIZE]; member
36 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() argument
44 if (!des_ekey(tmp, key) && (*flags & CRYPTO_TFM_REQ_WEAK_KEY)) { in des_setkey()
49 memcpy(ctx->key, key, key_len); in des_setkey()
57 crypt_s390_km(KM_DEA_ENCRYPT, ctx->key, out, in, DES_BLOCK_SIZE); in des_encrypt()
64 crypt_s390_km(KM_DEA_DECRYPT, ctx->key, out, in, DES_BLOCK_SIZE); in des_decrypt()
87 u8 *key, struct blkcipher_walk *walk) in ecb_desall_crypt() argument
98 ret = crypt_s390_km(func, key, out, in, n); in ecb_desall_crypt()
117 u8 key[DES3_KEY_SIZE]; in cbc_desall_crypt() member
124 memcpy(param.key, ctx->key, DES3_KEY_SIZE); in cbc_desall_crypt()
152 return ecb_desall_crypt(desc, KM_DEA_ENCRYPT, ctx->key, &walk); in ecb_des_encrypt()
163 return ecb_desall_crypt(desc, KM_DEA_DECRYPT, ctx->key, &walk); in ecb_des_decrypt()
240 static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_setkey() argument
246 if (!(crypto_memneq(key, &key[DES_KEY_SIZE], DES_KEY_SIZE) && in des3_setkey()
247 crypto_memneq(&key[DES_KEY_SIZE], &key[DES_KEY_SIZE * 2], in des3_setkey()
253 memcpy(ctx->key, key, key_len); in des3_setkey()
261 crypt_s390_km(KM_TDEA_192_ENCRYPT, ctx->key, dst, src, DES_BLOCK_SIZE); in des3_encrypt()
268 crypt_s390_km(KM_TDEA_192_DECRYPT, ctx->key, dst, src, DES_BLOCK_SIZE); in des3_decrypt()
298 return ecb_desall_crypt(desc, KM_TDEA_192_ENCRYPT, ctx->key, &walk); in ecb_des3_encrypt()
309 return ecb_desall_crypt(desc, KM_TDEA_192_DECRYPT, ctx->key, &walk); in ecb_des3_decrypt()
410 ret = crypt_s390_kmctr(func, ctx->key, out, in, in ctr_desall_crypt()
441 ret = crypt_s390_kmctr(func, ctx->key, buf, in, in ctr_desall_crypt()