/kernel/linux/linux-5.10/arch/powerpc/crypto/ |
H A D | aes-spe-glue.c | 92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument 100 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_aes_setkey() 104 ppc_expand_key_192(ctx->key_enc, in_key); in ppc_aes_setkey() 108 ppc_expand_key_256(ctx->key_enc, in_key); in ppc_aes_setkey() 120 const u8 *in_key, unsigned int key_len) in ppc_aes_setkey_skcipher() 122 return ppc_aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len); in ppc_aes_setkey_skcipher() 125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ppc_xts_setkey() argument 131 err = xts_verify_key(tfm, in_key, key_len); in ppc_xts_setkey() 140 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_xts_setkey() 141 ppc_expand_key_128(ctx->key_twk, in_key in ppc_xts_setkey() 119 ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ppc_aes_setkey_skcipher() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/crypto/ |
H A D | aes-spe-glue.c | 92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey() argument 100 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_aes_setkey() 104 ppc_expand_key_192(ctx->key_enc, in_key); in ppc_aes_setkey() 108 ppc_expand_key_256(ctx->key_enc, in_key); in ppc_aes_setkey() 120 const u8 *in_key, unsigned int key_len) in ppc_aes_setkey_skcipher() 122 return ppc_aes_setkey(crypto_skcipher_tfm(tfm), in_key, key_len); in ppc_aes_setkey_skcipher() 125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ppc_xts_setkey() argument 131 err = xts_verify_key(tfm, in_key, key_len); in ppc_xts_setkey() 140 ppc_expand_key_128(ctx->key_enc, in_key); in ppc_xts_setkey() 141 ppc_expand_key_128(ctx->key_twk, in_key in ppc_xts_setkey() 119 ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ppc_aes_setkey_skcipher() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/nx/ |
H A D | nx-aes-ctr.c | 23 const u8 *in_key, in ctr_aes_nx_set_key() 49 memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); in ctr_aes_nx_set_key() 55 const u8 *in_key, in ctr3686_aes_nx_set_key() 64 in_key + key_len - CTR_RFC3686_NONCE_SIZE, in ctr3686_aes_nx_set_key() 69 return ctr_aes_nx_set_key(tfm, in_key, key_len); in ctr3686_aes_nx_set_key() 22 ctr_aes_nx_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ctr_aes_nx_set_key() argument 54 ctr3686_aes_nx_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ctr3686_aes_nx_set_key() argument
|
/kernel/linux/linux-6.6/drivers/crypto/nx/ |
H A D | nx-aes-ctr.c | 23 const u8 *in_key, in ctr_aes_nx_set_key() 49 memcpy(csbcpb->cpb.aes_ctr.key, in_key, key_len); in ctr_aes_nx_set_key() 55 const u8 *in_key, in ctr3686_aes_nx_set_key() 64 in_key + key_len - CTR_RFC3686_NONCE_SIZE, in ctr3686_aes_nx_set_key() 69 return ctr_aes_nx_set_key(tfm, in_key, key_len); in ctr3686_aes_nx_set_key() 22 ctr_aes_nx_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ctr_aes_nx_set_key() argument 54 ctr3686_aes_nx_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ctr3686_aes_nx_set_key() argument
|
/kernel/linux/linux-5.10/arch/arm/crypto/ |
H A D | aes-neonbs-glue.c | 65 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 72 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey() 124 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 131 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_setkey() 142 return crypto_skcipher_setkey(ctx->enc_tfm, in_key, key_len); in aesbs_cbc_setkey() 213 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync() argument 219 err = aes_expandkey(&ctx->fallback, in_key, key_len); in aesbs_ctr_setkey_sync() 297 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument 303 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey() 308 err = crypto_cipher_setkey(ctx->cts_tfm, in_key, key_le in aesbs_xts_setkey() [all...] |
/kernel/linux/linux-6.6/arch/arm/crypto/ |
H A D | aes-neonbs-glue.c | 68 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 75 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey() 127 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 134 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_setkey() 145 return crypto_skcipher_setkey(ctx->enc_tfm, in_key, key_len); in aesbs_cbc_setkey() 216 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync() argument 222 err = aes_expandkey(&ctx->fallback, in_key, key_len); in aesbs_ctr_setkey_sync() 293 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument 299 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey() 304 err = crypto_cipher_setkey(ctx->cts_tfm, in_key, key_le in aesbs_xts_setkey() [all...] |
/kernel/linux/linux-5.10/arch/arm64/crypto/ |
H A D | aes-neonbs-glue.c | 77 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 84 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey() 136 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey() argument 143 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_setkey() 210 static int aesbs_ctr_setkey_sync(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_ctr_setkey_sync() argument 216 err = aes_expandkey(&ctx->fallback, in_key, key_len); in aesbs_ctr_setkey_sync() 270 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument 277 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey() 282 err = aes_expandkey(&ctx->cts, in_key, key_len); in aesbs_xts_setkey() 286 err = aes_expandkey(&rk, in_key in aesbs_xts_setkey() [all...] |
H A D | aes-ce-glue.c | 74 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey() argument 95 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in ce_aes_expandkey() 142 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey() argument 147 return ce_aes_expandkey(ctx, in_key, key_len); in ce_aes_setkey()
|
H A D | aes-glue.c | 131 static int skcipher_aes_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in skcipher_aes_setkey() argument 136 return aes_expandkey(ctx, in_key, key_len); in skcipher_aes_setkey() 140 const u8 *in_key, unsigned int key_len) in xts_set_key() 145 ret = xts_verify_key(tfm, in_key, key_len); in xts_set_key() 149 ret = aes_expandkey(&ctx->key1, in_key, key_len / 2); in xts_set_key() 151 ret = aes_expandkey(&ctx->key2, &in_key[key_len / 2], in xts_set_key() 157 const u8 *in_key, in essiv_cbc_set_key() 164 ret = aes_expandkey(&ctx->key1, in_key, key_len); in essiv_cbc_set_key() 168 crypto_shash_tfm_digest(ctx->hash, in_key, key_len, digest); in essiv_cbc_set_key() 772 static int cbcmac_setkey(struct crypto_shash *tfm, const u8 *in_key, in cbcmac_setkey() argument 139 xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) xts_set_key() argument 156 essiv_cbc_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) essiv_cbc_set_key() argument 789 cmac_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) cmac_setkey() argument 813 xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) xcbc_setkey() argument [all...] |
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | aes-ce-glue.c | 74 int ce_aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key, in ce_aes_expandkey() argument 95 ctx->key_enc[i] = get_unaligned_le32(in_key + i * sizeof(u32)); in ce_aes_expandkey() 142 int ce_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ce_aes_setkey() argument 147 return ce_aes_expandkey(ctx, in_key, key_len); in ce_aes_setkey()
|
H A D | aes-neonbs-glue.c | 74 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey() argument 81 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey() 133 static int aesbs_cbc_ctr_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_ctr_setkey() argument 140 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_ctr_setkey() 251 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey() argument 258 err = xts_verify_key(tfm, in_key, key_len); in aesbs_xts_setkey() 263 err = aes_expandkey(&ctx->cts, in_key, key_len); in aesbs_xts_setkey() 267 err = aes_expandkey(&rk, in_key + key_len, key_len); in aesbs_xts_setkey() 273 return aesbs_setkey(tfm, in_key, key_len); in aesbs_xts_setkey()
|
H A D | aes-glue.c | 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() 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() 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 145 xts_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) xts_set_key() argument 162 essiv_cbc_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) essiv_cbc_set_key() argument 817 cmac_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) cmac_setkey() argument 841 xcbc_setkey(struct crypto_shash *tfm, const u8 *in_key, unsigned int key_len) xcbc_setkey() argument [all...] |
/kernel/linux/linux-5.10/arch/s390/crypto/ |
H A D | aes_s390.c | 71 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() argument 80 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip() 83 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 97 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key() 100 memcpy(sctx->key, in_key, key_len); in aes_set_key() 200 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_aes_set_key() argument 214 return setkey_fallback_skcipher(tfm, in_key, key_len); in ecb_aes_set_key() 217 memcpy(sctx->key, in_key, key_len); in ecb_aes_set_key() 296 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in cbc_aes_set_key() argument 310 return setkey_fallback_skcipher(tfm, in_key, key_le in cbc_aes_set_key() 389 xts_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) xts_aes_set_key() argument 532 ctr_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ctr_aes_set_key() argument [all...] |
/kernel/linux/linux-6.6/arch/s390/crypto/ |
H A D | aes_s390.c | 72 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key, in setkey_fallback_cip() argument 81 return crypto_cipher_setkey(sctx->fallback.cip, in_key, key_len); in setkey_fallback_cip() 84 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument 98 return setkey_fallback_cip(tfm, in_key, key_len); in aes_set_key() 101 memcpy(sctx->key, in_key, key_len); in aes_set_key() 201 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in ecb_aes_set_key() argument 215 return setkey_fallback_skcipher(tfm, in_key, key_len); in ecb_aes_set_key() 218 memcpy(sctx->key, in_key, key_len); in ecb_aes_set_key() 297 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, in cbc_aes_set_key() argument 311 return setkey_fallback_skcipher(tfm, in_key, key_le in cbc_aes_set_key() 390 xts_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) xts_aes_set_key() argument 529 ctr_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) ctr_aes_set_key() argument [all...] |
/kernel/linux/linux-5.10/include/crypto/ |
H A D | sm4.h | 23 int crypto_sm4_set_key(struct crypto_tfm *tfm, const u8 *in_key, 25 int crypto_sm4_expand_key(struct crypto_sm4_ctx *ctx, const u8 *in_key,
|
H A D | aes.h | 51 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, 57 * @in_key: The supplied key. 68 int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
|
/kernel/linux/linux-6.6/include/crypto/ |
H A D | aes.h | 51 int crypto_aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, 57 * @in_key: The supplied key. 68 int aes_expandkey(struct crypto_aes_ctx *ctx, const u8 *in_key,
|
/kernel/linux/linux-5.10/arch/sparc/crypto/ |
H A D | camellia_glue.c | 34 extern void camellia_sparc64_key_expand(const u32 *in_key, u64 *encrypt_key, 41 const u32 *in_key = (const u32 *) _in_key; in camellia_set_key() local 48 camellia_sparc64_key_expand(in_key, &ctx->encrypt_key[0], in camellia_set_key() 54 const u8 *in_key, unsigned int key_len) in camellia_set_key_skcipher() 56 return camellia_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); in camellia_set_key_skcipher() 53 camellia_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) camellia_set_key_skcipher() argument
|
/kernel/linux/linux-6.6/arch/sparc/crypto/ |
H A D | camellia_glue.c | 34 extern void camellia_sparc64_key_expand(const u32 *in_key, u64 *encrypt_key, 41 const u32 *in_key = (const u32 *) _in_key; in camellia_set_key() local 48 camellia_sparc64_key_expand(in_key, &ctx->encrypt_key[0], in camellia_set_key() 54 const u8 *in_key, unsigned int key_len) in camellia_set_key_skcipher() 56 return camellia_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); in camellia_set_key_skcipher() 53 camellia_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, unsigned int key_len) camellia_set_key_skcipher() argument
|
/kernel/linux/linux-5.10/crypto/ |
H A D | aes_ti.c | 12 static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesti_set_key() argument 17 return aes_expandkey(ctx, in_key, key_len); in aesti_set_key()
|
H A D | arc4.c | 18 static int crypto_arc4_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in crypto_arc4_setkey() argument 23 return arc4_setkey(ctx, in_key, key_len); in crypto_arc4_setkey()
|
/kernel/linux/linux-6.6/crypto/ |
H A D | aes_ti.c | 12 static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesti_set_key() argument 17 return aes_expandkey(ctx, in_key, key_len); in aesti_set_key()
|
H A D | sm4_generic.c | 22 * @in_key: The input key. 31 static int sm4_setkey(struct crypto_tfm *tfm, const u8 *in_key, in sm4_setkey() argument 36 return sm4_expandkey(ctx, in_key, key_len); in sm4_setkey()
|
/kernel/linux/linux-5.10/lib/crypto/ |
H A D | arc4.c | 13 int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) in arc4_setkey() argument 26 j = (j + in_key[k] + a) & 0xff; in arc4_setkey()
|
/kernel/linux/linux-6.6/fs/smb/common/ |
H A D | cifs_arc4.c | 15 int cifs_arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len) in cifs_arc4_setkey() argument 28 j = (j + in_key[k] + a) & 0xff; in cifs_arc4_setkey()
|