rk 29 arch/arm/crypto/aes-ce-glue.c asmlinkage void ce_aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 31 arch/arm/crypto/aes-ce-glue.c asmlinkage void ce_aes_ecb_decrypt(u8 out[], u8 const in[], u32 const rk[], rk 34 arch/arm/crypto/aes-ce-glue.c asmlinkage void ce_aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 36 arch/arm/crypto/aes-ce-glue.c asmlinkage void ce_aes_cbc_decrypt(u8 out[], u8 const in[], u32 const rk[], rk 38 arch/arm/crypto/aes-ce-glue.c asmlinkage void ce_aes_cbc_cts_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 40 arch/arm/crypto/aes-ce-glue.c asmlinkage void ce_aes_cbc_cts_decrypt(u8 out[], u8 const in[], u32 const rk[], rk 43 arch/arm/crypto/aes-ce-glue.c asmlinkage void ce_aes_ctr_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 13 arch/arm/crypto/aes-cipher-glue.c asmlinkage void __aes_arm_encrypt(u32 *rk, int rounds, const u8 *in, u8 *out); rk 14 arch/arm/crypto/aes-cipher-glue.c asmlinkage void __aes_arm_decrypt(u32 *rk, int rounds, const u8 *in, u8 *out); rk 27 arch/arm/crypto/aes-neonbs-glue.c asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds); rk 29 arch/arm/crypto/aes-neonbs-glue.c asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[], rk 31 arch/arm/crypto/aes-neonbs-glue.c asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[], rk 34 arch/arm/crypto/aes-neonbs-glue.c asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[], rk 37 arch/arm/crypto/aes-neonbs-glue.c asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[], rk 40 arch/arm/crypto/aes-neonbs-glue.c asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[], rk 42 arch/arm/crypto/aes-neonbs-glue.c asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[], rk 47 arch/arm/crypto/aes-neonbs-glue.c u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE); rk 70 arch/arm/crypto/aes-neonbs-glue.c struct crypto_aes_ctx rk; rk 73 arch/arm/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); rk 80 arch/arm/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); rk 87 arch/arm/crypto/aes-neonbs-glue.c void (*fn)(u8 out[], u8 const in[], u8 const rk[], rk 105 arch/arm/crypto/aes-neonbs-glue.c fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->rk, rk 129 arch/arm/crypto/aes-neonbs-glue.c struct crypto_aes_ctx rk; rk 132 arch/arm/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); rk 139 arch/arm/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); rk 175 arch/arm/crypto/aes-neonbs-glue.c ctx->key.rk, ctx->key.rounds, blocks, rk 214 arch/arm/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); rk 242 arch/arm/crypto/aes-neonbs-glue.c ctx->rk, ctx->rounds, blocks, walk.iv, final); rk 330 arch/arm/crypto/aes-neonbs-glue.c void (*fn)(u8 out[], u8 const in[], u8 const rk[], rk 371 arch/arm/crypto/aes-neonbs-glue.c fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->key.rk, rk 33 arch/arm64/crypto/aes-ce-ccm-glue.c u32 *macp, u32 const rk[], u32 rounds); rk 36 arch/arm64/crypto/aes-ce-ccm-glue.c u32 const rk[], u32 rounds, u8 mac[], rk 40 arch/arm64/crypto/aes-ce-ccm-glue.c u32 const rk[], u32 rounds, u8 mac[], rk 43 arch/arm64/crypto/aes-ce-ccm-glue.c asmlinkage void ce_aes_ccm_final(u8 mac[], u8 const ctr[], u32 const rk[], rk 27 arch/arm64/crypto/aes-ce-glue.c asmlinkage void __aes_ce_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds); rk 28 arch/arm64/crypto/aes-ce-glue.c asmlinkage void __aes_ce_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds); rk 12 arch/arm64/crypto/aes-cipher-glue.c asmlinkage void __aes_arm64_encrypt(u32 *rk, u8 *out, const u8 *in, int rounds); rk 13 arch/arm64/crypto/aes-cipher-glue.c asmlinkage void __aes_arm64_decrypt(u32 *rk, u8 *out, const u8 *in, int rounds); rk 74 arch/arm64/crypto/aes-glue.c asmlinkage void aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 76 arch/arm64/crypto/aes-glue.c asmlinkage void aes_ecb_decrypt(u8 out[], u8 const in[], u32 const rk[], rk 79 arch/arm64/crypto/aes-glue.c asmlinkage void aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 81 arch/arm64/crypto/aes-glue.c asmlinkage void aes_cbc_decrypt(u8 out[], u8 const in[], u32 const rk[], rk 84 arch/arm64/crypto/aes-glue.c asmlinkage void aes_cbc_cts_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 86 arch/arm64/crypto/aes-glue.c asmlinkage void aes_cbc_cts_decrypt(u8 out[], u8 const in[], u32 const rk[], rk 89 arch/arm64/crypto/aes-glue.c asmlinkage void aes_ctr_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 106 arch/arm64/crypto/aes-glue.c asmlinkage void aes_mac_update(u8 const in[], u32 const rk[], int rounds, rk 26 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds); rk 28 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[], rk 30 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[], rk 33 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[], rk 36 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[], rk 39 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[], rk 41 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[], rk 45 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void neon_aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 47 arch/arm64/crypto/aes-neonbs-glue.c asmlinkage void neon_aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[], rk 57 arch/arm64/crypto/aes-neonbs-glue.c u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32]; rk 81 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_aes_ctx rk; rk 84 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); rk 91 arch/arm64/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); rk 98 arch/arm64/crypto/aes-neonbs-glue.c void (*fn)(u8 out[], u8 const in[], u8 const rk[], rk 116 arch/arm64/crypto/aes-neonbs-glue.c fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->rk, rk 140 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_aes_ctx rk; rk 143 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key, key_len); rk 149 arch/arm64/crypto/aes-neonbs-glue.c memcpy(ctx->enc, rk.key_enc, sizeof(ctx->enc)); rk 152 arch/arm64/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); rk 199 arch/arm64/crypto/aes-neonbs-glue.c ctx->key.rk, ctx->key.rounds, blocks, rk 222 arch/arm64/crypto/aes-neonbs-glue.c aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); rk 250 arch/arm64/crypto/aes-neonbs-glue.c ctx->rk, ctx->rounds, blocks, walk.iv, final); rk 273 arch/arm64/crypto/aes-neonbs-glue.c struct crypto_aes_ctx rk; rk 285 arch/arm64/crypto/aes-neonbs-glue.c err = aes_expandkey(&rk, in_key + key_len, key_len); rk 289 arch/arm64/crypto/aes-neonbs-glue.c memcpy(ctx->twkey, rk.key_enc, sizeof(ctx->twkey)); rk 318 arch/arm64/crypto/aes-neonbs-glue.c void (*fn)(u8 out[], u8 const in[], u8 const rk[], rk 375 arch/arm64/crypto/aes-neonbs-glue.c fn(out, in, ctx->key.rk, ctx->key.rounds, blocks, rk 63 arch/arm64/crypto/ghash-ce-glue.c u8 ctr[], u32 const rk[], int rounds, rk 68 arch/arm64/crypto/ghash-ce-glue.c u8 ctr[], u32 const rk[], int rounds); rk 71 arch/arm64/crypto/ghash-ce-glue.c u32 const rk[], int rounds); rk 440 arch/arm64/crypto/ghash-ce-glue.c u32 const *rk = NULL; rk 453 arch/arm64/crypto/ghash-ce-glue.c if (rk) rk 458 arch/arm64/crypto/ghash-ce-glue.c iv, rk, nrounds, ks); rk 464 arch/arm64/crypto/ghash-ce-glue.c rk = ctx->aes_key.key_enc; rk 560 arch/arm64/crypto/ghash-ce-glue.c u32 const *rk = NULL; rk 570 arch/arm64/crypto/ghash-ce-glue.c if (rk) rk 575 arch/arm64/crypto/ghash-ce-glue.c iv, rk, nrounds); rk 598 arch/arm64/crypto/ghash-ce-glue.c rk = ctx->aes_key.key_enc; rk 18 arch/arm64/crypto/sm4-ce-glue.c asmlinkage void sm4_ce_do_crypt(const u32 *rk, void *out, const void *in); rk 101 crypto/sm4_generic.c static u32 sm4_round(const u32 *x, const u32 rk) rk 103 crypto/sm4_generic.c return x[0] ^ sm4_enc_sub(x[1] ^ x[2] ^ x[3] ^ rk); rk 119 crypto/sm4_generic.c u32 rk[4], t; rk 127 crypto/sm4_generic.c rk[i] = get_unaligned_be32(&key[i]) ^ fk[i]; rk 130 crypto/sm4_generic.c t = rk[0] ^ sm4_key_sub(rk[1] ^ rk[2] ^ rk[3] ^ ck[i]); rk 132 crypto/sm4_generic.c rk[0] = rk[1]; rk 133 crypto/sm4_generic.c rk[1] = rk[2]; rk 134 crypto/sm4_generic.c rk[2] = rk[3]; rk 135 crypto/sm4_generic.c rk[3] = t; rk 172 crypto/sm4_generic.c static void sm4_do_crypt(const u32 *rk, u32 *out, const u32 *in) rk 180 crypto/sm4_generic.c t = sm4_round(x, rk[i]); rk 129 drivers/input/joystick/iforce/iforce-ff.c __u16 rsat, __u16 lsat, __s16 rk, __s16 lk, u16 db, __s16 center) rk 147 drivers/input/joystick/iforce/iforce-ff.c data[2] = (100 * rk) >> 15; /* Dangerous: the sign is extended by gcc on plateforms providing an arith shift */ rk 1533 drivers/staging/rtl8188eu/core/rtw_security.c d##0 = TE0(s##0) ^ TE1(s##1) ^ TE2(s##2) ^ TE3(s##3) ^ rk[4 * i]; \ rk 1534 drivers/staging/rtl8188eu/core/rtw_security.c d##1 = TE0(s##1) ^ TE1(s##2) ^ TE2(s##3) ^ TE3(s##0) ^ rk[4 * i + 1]; \ rk 1535 drivers/staging/rtl8188eu/core/rtw_security.c d##2 = TE0(s##2) ^ TE1(s##3) ^ TE2(s##0) ^ TE3(s##1) ^ rk[4 * i + 2]; \ rk 1536 drivers/staging/rtl8188eu/core/rtw_security.c d##3 = TE0(s##3) ^ TE1(s##0) ^ TE2(s##1) ^ TE3(s##2) ^ rk[4 * i + 3]; \ rk 2192 drivers/staging/rtl8723bs/core/rtw_security.c static void rijndaelKeySetupEnc(u32 rk[/*44*/], const u8 cipherKey[]) rk 2197 drivers/staging/rtl8723bs/core/rtw_security.c rk[0] = GETU32(cipherKey); rk 2198 drivers/staging/rtl8723bs/core/rtw_security.c rk[1] = GETU32(cipherKey + 4); rk 2199 drivers/staging/rtl8723bs/core/rtw_security.c rk[2] = GETU32(cipherKey + 8); rk 2200 drivers/staging/rtl8723bs/core/rtw_security.c rk[3] = GETU32(cipherKey + 12); rk 2202 drivers/staging/rtl8723bs/core/rtw_security.c temp = rk[3]; rk 2203 drivers/staging/rtl8723bs/core/rtw_security.c rk[4] = rk[0] ^ rk 2206 drivers/staging/rtl8723bs/core/rtw_security.c rk[5] = rk[1] ^ rk[4]; rk 2207 drivers/staging/rtl8723bs/core/rtw_security.c rk[6] = rk[2] ^ rk[5]; rk 2208 drivers/staging/rtl8723bs/core/rtw_security.c rk[7] = rk[3] ^ rk[6]; rk 2209 drivers/staging/rtl8723bs/core/rtw_security.c rk += 4; rk 2213 drivers/staging/rtl8723bs/core/rtw_security.c static void rijndaelEncrypt(u32 rk[/*44*/], u8 pt[16], u8 ct[16]) rk 2223 drivers/staging/rtl8723bs/core/rtw_security.c s0 = GETU32(pt) ^ rk[0]; rk 2224 drivers/staging/rtl8723bs/core/rtw_security.c s1 = GETU32(pt + 4) ^ rk[1]; rk 2225 drivers/staging/rtl8723bs/core/rtw_security.c s2 = GETU32(pt + 8) ^ rk[2]; rk 2226 drivers/staging/rtl8723bs/core/rtw_security.c s3 = GETU32(pt + 12) ^ rk[3]; rk 2229 drivers/staging/rtl8723bs/core/rtw_security.c d##0 = TE0(s##0) ^ TE1(s##1) ^ TE2(s##2) ^ TE3(s##3) ^ rk[4 * i]; \ rk 2230 drivers/staging/rtl8723bs/core/rtw_security.c d##1 = TE0(s##1) ^ TE1(s##2) ^ TE2(s##3) ^ TE3(s##0) ^ rk[4 * i + 1]; \ rk 2231 drivers/staging/rtl8723bs/core/rtw_security.c d##2 = TE0(s##2) ^ TE1(s##3) ^ TE2(s##0) ^ TE3(s##1) ^ rk[4 * i + 2]; \ rk 2232 drivers/staging/rtl8723bs/core/rtw_security.c d##3 = TE0(s##3) ^ TE1(s##0) ^ TE2(s##1) ^ TE3(s##2) ^ rk[4 * i + 3] rk 2238 drivers/staging/rtl8723bs/core/rtw_security.c rk += 8; rk 2250 drivers/staging/rtl8723bs/core/rtw_security.c s0 = TE41(t0) ^ TE42(t1) ^ TE43(t2) ^ TE44(t3) ^ rk[0]; rk 2252 drivers/staging/rtl8723bs/core/rtw_security.c s1 = TE41(t1) ^ TE42(t2) ^ TE43(t3) ^ TE44(t0) ^ rk[1]; rk 2254 drivers/staging/rtl8723bs/core/rtw_security.c s2 = TE41(t2) ^ TE42(t3) ^ TE43(t0) ^ TE44(t1) ^ rk[2]; rk 2256 drivers/staging/rtl8723bs/core/rtw_security.c s3 = TE41(t3) ^ TE42(t0) ^ TE43(t1) ^ TE44(t2) ^ rk[3]; rk 2262 drivers/staging/rtl8723bs/core/rtw_security.c u32 *rk; rk 2265 drivers/staging/rtl8723bs/core/rtw_security.c rk = rtw_malloc(AES_PRIV_SIZE); rk 2266 drivers/staging/rtl8723bs/core/rtw_security.c if (rk == NULL) rk 2268 drivers/staging/rtl8723bs/core/rtw_security.c rijndaelKeySetupEnc(rk, key); rk 2269 drivers/staging/rtl8723bs/core/rtw_security.c return rk;