/Linux-v6.1/crypto/ |
D | sm4.c | 104 static inline u32 sm4_round(u32 x0, u32 x1, u32 x2, u32 x3, u32 rk) in sm4_round() argument 106 return x0 ^ sm4_enc_sub(x1 ^ x2 ^ x3 ^ rk); in sm4_round() 122 u32 rk[4]; in sm4_expandkey() local 129 rk[0] = get_unaligned_be32(&key[0]) ^ fk[0]; in sm4_expandkey() 130 rk[1] = get_unaligned_be32(&key[1]) ^ fk[1]; in sm4_expandkey() 131 rk[2] = get_unaligned_be32(&key[2]) ^ fk[2]; in sm4_expandkey() 132 rk[3] = get_unaligned_be32(&key[3]) ^ fk[3]; in sm4_expandkey() 135 rk[0] ^= sm4_key_sub(rk[1] ^ rk[2] ^ rk[3] ^ ck[i + 0]); in sm4_expandkey() 136 rk[1] ^= sm4_key_sub(rk[2] ^ rk[3] ^ rk[0] ^ ck[i + 1]); in sm4_expandkey() 137 rk[2] ^= sm4_key_sub(rk[3] ^ rk[0] ^ rk[1] ^ ck[i + 2]); in sm4_expandkey() [all …]
|
/Linux-v6.1/arch/arm64/crypto/ |
D | aes-neonbs-glue.c | 26 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds); 28 asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[], 30 asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[], 33 asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[], 36 asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[], 39 asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[], 41 asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[], 45 asmlinkage void neon_aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[], 47 asmlinkage void neon_aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[], 49 asmlinkage void neon_aes_ctr_encrypt(u8 out[], u8 const in[], u32 const rk[], [all …]
|
D | aes-ce.S | 28 .macro load_round_keys, rounds, rk 32 ld1 {v17.4s-v18.4s}, [\rk], #32 33 1111: ld1 {v19.4s-v20.4s}, [\rk], #32 34 2222: ld1 {v21.4s-v24.4s}, [\rk], #64 35 ld1 {v25.4s-v28.4s}, [\rk], #64 36 ld1 {v29.4s-v31.4s}, [\rk] 40 .macro enc_prepare, rounds, rk, temp 41 mov \temp, \rk 46 .macro enc_switch_key, rounds, rk, temp 47 mov \temp, \rk [all …]
|
D | aes-neon.S | 98 .macro do_block, enc, in, rounds, rk, rkp, i 99 ld1 {v15.4s}, [\rk] 100 add \rkp, \rk, #16 114 .macro encrypt_block, in, rounds, rk, rkp, i 115 do_block 1, \in, \rounds, \rk, \rkp, \i 118 .macro decrypt_block, in, rounds, rk, rkp, i 119 do_block 0, \in, \rounds, \rk, \rkp, \i 205 .macro do_block_4x, enc, in0, in1, in2, in3, rounds, rk, rkp, i 206 ld1 {v15.4s}, [\rk] 207 add \rkp, \rk, #16 [all …]
|
D | aes-cipher-core.S | 14 rk .req x0 57 ldp \out0, \out1, [rk], #8 87 ldp w8, w9, [rk], #16 88 ldp w10, w11, [rk, #-8]
|
D | aes-cipher-glue.c | 12 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds); 13 asmlinkage void __aes_arm64_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
|
D | aes-ce-ccm-glue.c | 31 u32 macp, u32 const rk[], u32 rounds); 34 u32 const rk[], u32 rounds, u8 mac[], 38 u32 const rk[], u32 rounds, u8 mac[], 41 asmlinkage void ce_aes_ccm_final(u8 mac[], u8 const ctr[], u32 const rk[],
|
D | aes-ce-glue.c | 27 asmlinkage void __aes_ce_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds); 28 asmlinkage void __aes_ce_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
|
D | aes-glue.c | 77 asmlinkage void aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[], 79 asmlinkage void aes_ecb_decrypt(u8 out[], u8 const in[], u32 const rk[], 82 asmlinkage void aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[], 84 asmlinkage void aes_cbc_decrypt(u8 out[], u8 const in[], u32 const rk[], 87 asmlinkage void aes_cbc_cts_encrypt(u8 out[], u8 const in[], u32 const rk[], 89 asmlinkage void aes_cbc_cts_decrypt(u8 out[], u8 const in[], u32 const rk[], 92 asmlinkage void aes_ctr_encrypt(u8 out[], u8 const in[], u32 const rk[], 95 asmlinkage void aes_xctr_encrypt(u8 out[], u8 const in[], u32 const rk[], 112 asmlinkage int aes_mac_update(u8 const in[], u32 const rk[], int rounds,
|
D | sm4-ce-cipher-glue.c | 18 asmlinkage void sm4_ce_do_crypt(const u32 *rk, void *out, const void *in);
|
D | ghash-ce-core.S | 386 .macro load_round_keys, rounds, rk, tmp 387 add \tmp, \rk, #64 388 ld1 {K0.4s-K3.4s}, [\rk] 390 add \tmp, \rk, \rounds, lsl #4 407 .macro enc_block, state, rounds, rk, tmp 408 add \tmp, \rk, #96
|
/Linux-v6.1/arch/arm/crypto/ |
D | aes-neonbs-glue.c | 29 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds); 31 asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[], 33 asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[], 36 asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[], 39 asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[], 42 asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[], 44 asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[], 49 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE); 72 struct crypto_aes_ctx rk; in aesbs_setkey() local 75 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey() [all …]
|
D | sha2-ce-core.S | 18 rk .req r3 35 vld1.32 {k\ev}, [rk, :128]! 90 adr rk, .Lsha256_rcon 91 vld1.32 {k0}, [rk, :128]!
|
D | aes-cipher-glue.c | 13 asmlinkage void __aes_arm_encrypt(u32 *rk, int rounds, const u8 *in, u8 *out); 14 asmlinkage void __aes_arm_decrypt(u32 *rk, int rounds, const u8 *in, u8 *out);
|
D | aes-cipher-core.S | 16 rk .req r0 84 ldm rk!, {t1, t2} 106 ldm rk!, {r8-r11}
|
D | aes-ce-glue.c | 29 asmlinkage void ce_aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[], 31 asmlinkage void ce_aes_ecb_decrypt(u8 out[], u8 const in[], u32 const rk[], 34 asmlinkage void ce_aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[], 36 asmlinkage void ce_aes_cbc_decrypt(u8 out[], u8 const in[], u32 const rk[], 38 asmlinkage void ce_aes_cbc_cts_encrypt(u8 out[], u8 const in[], u32 const rk[], 40 asmlinkage void ce_aes_cbc_cts_decrypt(u8 out[], u8 const in[], u32 const rk[], 43 asmlinkage void ce_aes_ctr_encrypt(u8 out[], u8 const in[], u32 const rk[],
|
/Linux-v6.1/include/crypto/ |
D | aria.h | 407 static inline void aria_add_round_key(u32 *rk, u32 *t0, u32 *t1, u32 *t2, in aria_add_round_key() argument 410 *t0 ^= rk[0]; in aria_add_round_key() 411 *t1 ^= rk[1]; in aria_add_round_key() 412 *t2 ^= rk[2]; in aria_add_round_key() 413 *t3 ^= rk[3]; in aria_add_round_key() 434 static inline void aria_gsrk(u32 *rk, u32 *x, u32 *y, u32 n) in aria_gsrk() argument 439 rk[0] = (x[0]) ^ in aria_gsrk() 442 rk[1] = (x[1]) ^ in aria_gsrk() 445 rk[2] = (x[2]) ^ in aria_gsrk() 448 rk[3] = (x[3]) ^ in aria_gsrk()
|
D | sm4.h | 46 void sm4_crypt_block(const u32 *rk, u8 *out, const u8 *in);
|
/Linux-v6.1/arch/x86/crypto/ |
D | aria-aesni-avx-asm_64.S | 273 t0, rk, idx, round) \ 275 vpbroadcastb ((round * 16) + idx + 3)(rk), t0; \ 277 vpbroadcastb ((round * 16) + idx + 2)(rk), t0; \ 279 vpbroadcastb ((round * 16) + idx + 1)(rk), t0; \ 281 vpbroadcastb ((round * 16) + idx + 0)(rk), t0; \ 283 vpbroadcastb ((round * 16) + idx + 7)(rk), t0; \ 285 vpbroadcastb ((round * 16) + idx + 6)(rk), t0; \ 287 vpbroadcastb ((round * 16) + idx + 5)(rk), t0; \ 289 vpbroadcastb ((round * 16) + idx + 4)(rk), t0; \ 415 mem_tmp, rk, round) \ argument [all …]
|
D | sm4_aesni_avx2_glue.c | 22 asmlinkage void sm4_aesni_avx2_ctr_enc_blk16(const u32 *rk, u8 *dst, 24 asmlinkage void sm4_aesni_avx2_cbc_dec_blk16(const u32 *rk, u8 *dst, 26 asmlinkage void sm4_aesni_avx2_cfb_dec_blk16(const u32 *rk, u8 *dst,
|
D | sm4_aesni_avx_glue.c | 22 asmlinkage void sm4_aesni_avx_crypt4(const u32 *rk, u8 *dst, 24 asmlinkage void sm4_aesni_avx_crypt8(const u32 *rk, u8 *dst, 26 asmlinkage void sm4_aesni_avx_ctr_enc_blk8(const u32 *rk, u8 *dst, 28 asmlinkage void sm4_aesni_avx_cbc_dec_blk8(const u32 *rk, u8 *dst, 30 asmlinkage void sm4_aesni_avx_cfb_dec_blk8(const u32 *rk, u8 *dst,
|
D | sm4-avx.h | 8 typedef void (*sm4_crypt_func)(const u32 *rk, u8 *dst, const u8 *src, u8 *iv);
|
/Linux-v6.1/arch/loongarch/include/asm/ |
D | inst.h | 238 unsigned int rk : 5; member 245 unsigned int rk : 5; member 512 enum loongarch_gpr rk) \ 517 insn->reg3_format.rk = rk; \ 557 enum loongarch_gpr rk, \ 564 insn->reg3sa2_format.rk = rk; \
|
/Linux-v6.1/Documentation/userspace-api/media/v4l/ |
D | pixfmt-meta-rkisp1.rst | 3 .. _v4l2-meta-fmt-rk-isp1-params: 5 .. _v4l2-meta-fmt-rk-isp1-stat-3a:
|
/Linux-v6.1/arch/arm/boot/dts/ |
D | bcm4708-linksys-ea6500-v2.dts | 4 * Copyright (C) 2018 Rene Kjellerup <rk.katana.steel@gmail.com>
|