Home
last modified time | relevance | path

Searched refs:rk (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/crypto/
Dsm4_generic.c101 static u32 sm4_round(const u32 *x, const u32 rk) in sm4_round() argument
103 return x[0] ^ sm4_enc_sub(x[1] ^ x[2] ^ x[3] ^ rk); in sm4_round()
119 u32 rk[4], t; in crypto_sm4_expand_key() local
127 rk[i] = get_unaligned_be32(&key[i]) ^ fk[i]; in crypto_sm4_expand_key()
130 t = rk[0] ^ sm4_key_sub(rk[1] ^ rk[2] ^ rk[3] ^ ck[i]); in crypto_sm4_expand_key()
132 rk[0] = rk[1]; in crypto_sm4_expand_key()
133 rk[1] = rk[2]; in crypto_sm4_expand_key()
134 rk[2] = rk[3]; in crypto_sm4_expand_key()
135 rk[3] = t; in crypto_sm4_expand_key()
172 static void sm4_do_crypt(const u32 *rk, u32 *out, const u32 *in) in sm4_do_crypt() argument
[all …]
/Linux-v4.19/arch/arm64/crypto/
Daes-neonbs-glue.c29 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[],
48 asmlinkage void neon_aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[],
50 asmlinkage void neon_aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[],
54 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32]; member
[all …]
Daes-ce.S21 .macro load_round_keys, rounds, rk
25 ld1 {v17.4s-v18.4s}, [\rk], #32
26 1111: ld1 {v19.4s-v20.4s}, [\rk], #32
27 2222: ld1 {v21.4s-v24.4s}, [\rk], #64
28 ld1 {v25.4s-v28.4s}, [\rk], #64
29 ld1 {v29.4s-v31.4s}, [\rk]
33 .macro enc_prepare, rounds, rk, temp
34 mov \temp, \rk
39 .macro enc_switch_key, rounds, rk, temp
40 mov \temp, \rk
[all …]
Daes-neon.S88 .macro do_block, enc, in, rounds, rk, rkp, i
89 ld1 {v15.4s}, [\rk]
90 add \rkp, \rk, #16
104 .macro encrypt_block, in, rounds, rk, rkp, i
105 do_block 1, \in, \rounds, \rk, \rkp, \i
108 .macro decrypt_block, in, rounds, rk, rkp, i
109 do_block 0, \in, \rounds, \rk, \rkp, \i
212 .macro do_block_2x, enc, in0, in1, rounds, rk, rkp, i
213 ld1 {v15.4s}, [\rk]
214 add \rkp, \rk, #16
[all …]
Daes-ce-glue.c25 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
26 asmlinkage void __aes_arm64_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
32 asmlinkage void __aes_ce_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
33 asmlinkage void __aes_ce_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
Dghash-ce-glue.c69 u8 ctr[], u32 const rk[], int rounds,
74 u8 ctr[], u32 const rk[], int rounds);
77 u32 const rk[], int rounds);
79 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
390 u32 const *rk = NULL; in gcm_encrypt() local
403 if (rk) in gcm_encrypt()
408 iv, rk, nrounds, ks); in gcm_encrypt()
414 rk = ctx->aes_key.key_enc; in gcm_encrypt()
511 u32 const *rk = NULL; in gcm_decrypt() local
521 if (rk) in gcm_decrypt()
[all …]
Daes-glue.c66 asmlinkage void aes_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[],
68 asmlinkage void aes_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[],
71 asmlinkage void aes_cbc_encrypt(u8 out[], u8 const in[], u8 const rk[],
73 asmlinkage void aes_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[],
76 asmlinkage void aes_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[],
86 asmlinkage void aes_mac_update(u8 const in[], u32 const rk[], int rounds,
415 u8 *rk = (u8 *)ctx->key.key_enc; in cmac_setkey() local
425 aes_ecb_encrypt(ctx->consts, (u8[AES_BLOCK_SIZE]){}, rk, rounds, 1); in cmac_setkey()
444 u8 *rk = (u8 *)ctx->key.key_enc; in xcbc_setkey() local
454 aes_ecb_encrypt(key, ks[0], rk, rounds, 1); in xcbc_setkey()
[all …]
Daes-cipher-glue.c15 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
18 asmlinkage void __aes_arm64_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
Daes-cipher-core.S17 rk .req x0
60 ldp \out0, \out1, [rk], #8
90 ldp w8, w9, [rk], #16
91 ldp w10, w11, [rk, #-8]
Daes-ce-ccm-glue.c35 u32 *macp, u32 const rk[], u32 rounds);
38 u32 const rk[], u32 rounds, u8 mac[],
42 u32 const rk[], u32 rounds, u8 mac[],
45 asmlinkage void ce_aes_ccm_final(u8 mac[], u8 const ctr[], u32 const rk[],
48 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
Daes-ctr-fallback.h15 asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds);
Dsm4-ce-glue.c17 asmlinkage void sm4_ce_do_crypt(const u32 *rk, void *out, const void *in);
Dcrct10dif-ce-core.S212 .macro fold16, reg, rk
215 .ifnb \rk
216 ldr_l q10, \rk, x8
Dghash-ce-core.S369 .macro load_round_keys, rounds, rk
373 ld1 {v17.4s-v18.4s}, [\rk], #32
374 1111: ld1 {v19.4s-v20.4s}, [\rk], #32
375 2222: ld1 {v21.4s-v24.4s}, [\rk], #64
376 ld1 {v25.4s-v28.4s}, [\rk], #64
377 ld1 {v29.4s-v31.4s}, [\rk]
/Linux-v4.19/arch/arm/crypto/
Daes-neonbs-glue.c27 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
29 asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[],
31 asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[],
34 asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[],
37 asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[],
40 asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[],
42 asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[],
47 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE);
64 struct crypto_aes_ctx rk; in aesbs_setkey() local
67 err = crypto_aes_expand_key(&rk, in_key, key_len); in aesbs_setkey()
[all …]
Dsha2-ce-core.S20 rk .req r3
37 vld1.32 {k\ev}, [rk, :128]!
92 adr rk, .Lsha256_rcon
93 vld1.32 {k0}, [rk, :128]!
Daes-cipher-glue.c16 asmlinkage void __aes_arm_encrypt(u32 *rk, int rounds, const u8 *in, u8 *out);
19 asmlinkage void __aes_arm_decrypt(u32 *rk, int rounds, const u8 *in, u8 *out);
Daes-ce-glue.c29 asmlinkage void ce_aes_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[],
31 asmlinkage void ce_aes_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[],
34 asmlinkage void ce_aes_cbc_encrypt(u8 out[], u8 const in[], u8 const rk[],
36 asmlinkage void ce_aes_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[],
39 asmlinkage void ce_aes_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[],
Daes-cipher-core.S18 rk .req r0
78 ldm rk!, {t1, t2}
126 ldm rk!, {r8-r11}
Dcrct10dif-ce-core.S208 .macro fold16, reg, rk
211 .ifnb \rk
/Linux-v4.19/drivers/staging/rtl8723bs/core/
Drtw_security.c2193 static void rijndaelKeySetupEnc(u32 rk[/*44*/], const u8 cipherKey[]) in rijndaelKeySetupEnc() argument
2198 rk[0] = GETU32(cipherKey); in rijndaelKeySetupEnc()
2199 rk[1] = GETU32(cipherKey + 4); in rijndaelKeySetupEnc()
2200 rk[2] = GETU32(cipherKey + 8); in rijndaelKeySetupEnc()
2201 rk[3] = GETU32(cipherKey + 12); in rijndaelKeySetupEnc()
2203 temp = rk[3]; in rijndaelKeySetupEnc()
2204 rk[4] = rk[0] ^ in rijndaelKeySetupEnc()
2207 rk[5] = rk[1] ^ rk[4]; in rijndaelKeySetupEnc()
2208 rk[6] = rk[2] ^ rk[5]; in rijndaelKeySetupEnc()
2209 rk[7] = rk[3] ^ rk[6]; in rijndaelKeySetupEnc()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/timer/
Drockchip,rk-timer.txt1 Rockchip rk timer
/Linux-v4.19/drivers/net/ethernet/stmicro/stmmac/
DMakefile18 obj-$(CONFIG_DWMAC_ROCKCHIP) += dwmac-rk.o
/Linux-v4.19/Documentation/devicetree/bindings/misc/
Datmel-ssc.txt21 - atmel,clk-from-rk-pin: bool property.
/Linux-v4.19/arch/arm/boot/dts/
Dat91-dvk_su60_somc.dtsi55 atmel,clk-from-rk-pin;

12