/linux-6.12.1/arch/arm64/crypto/ |
D | aes-ce.S | 38 .macro enc_prepare, rounds, rk, temp 39 load_round_keys \rk, \rounds, \temp 43 .macro enc_switch_key, rounds, rk, temp 44 load_round_keys \rk, \rounds, \temp 48 .macro dec_prepare, rounds, rk, temp 49 load_round_keys \rk, \rounds, \temp 107 .macro do_block_Nx, enc, rounds, i0, i1, i2, i3, i4 108 tbz \rounds, #2, .L\@ /* 128 bits */ 111 tbz \rounds, #1, .L\@ /* 192 bits */ 120 .macro encrypt_block, in, rounds, t0, t1, t2 [all …]
|
D | aes-neonbs-glue.c | 27 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds); 30 int rounds, int blocks); 32 int rounds, int blocks); 35 int rounds, int blocks, u8 iv[]); 38 int rounds, int blocks, u8 iv[]); 41 int rounds, int blocks, u8 iv[]); 43 int rounds, int blocks, u8 iv[]); 47 int rounds, int blocks); 49 int rounds, int blocks, u8 iv[]); 51 int rounds, int bytes, u8 ctr[]); [all …]
|
D | aes-glue.c | 78 int rounds, int blocks); 80 int rounds, int blocks); 83 int rounds, int blocks, u8 iv[]); 85 int rounds, int blocks, u8 iv[]); 88 int rounds, int bytes, u8 const iv[]); 90 int rounds, int bytes, u8 const iv[]); 93 int rounds, int bytes, u8 ctr[]); 96 int rounds, int bytes, u8 ctr[], int byte_ctr); 99 int rounds, int bytes, u32 const rk2[], u8 iv[], 102 int rounds, int bytes, u32 const rk2[], u8 iv[], [all …]
|
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); 18 int rounds = 6 + ctx->key_length / 4; in aes_arm64_encrypt() local 20 __aes_arm64_encrypt(ctx->key_enc, out, in, rounds); in aes_arm64_encrypt() 26 int rounds = 6 + ctx->key_length / 4; in aes_arm64_decrypt() local 28 __aes_arm64_decrypt(ctx->key_dec, out, in, rounds); in aes_arm64_decrypt()
|
D | aes-neon.S | 98 .macro do_block, enc, in, rounds, rk, rkp, i 101 mov \i, \rounds 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 208 mov \i, \rounds 231 .macro encrypt_block4x, in0, in1, in2, in3, rounds, rk, rkp, i 232 do_block_4x 1, \in0, \in1, \in2, \in3, \rounds, \rk, \rkp, \i [all …]
|
D | aes-cipher-core.S | 17 rounds .req x3 102 tbnz rounds, #1, 1f 107 1: subs rounds, rounds, #4
|
D | aes-ce-ccm-glue.c | 35 asmlinkage u32 ce_aes_mac_update(u8 const in[], u32 const rk[], int rounds, 40 u32 const rk[], u32 rounds, u8 mac[], 44 u32 const rk[], u32 rounds, u8 mac[], 101 u32 macp, u32 const rk[], u32 rounds) in ce_aes_ccm_auth_data() argument 109 u32 rem = ce_aes_mac_update(in, rk, rounds, blocks, mac, in ce_aes_ccm_auth_data()
|
/linux-6.12.1/arch/powerpc/crypto/ |
D | aes-spe-glue.c | 44 u32 rounds; member 51 u32 rounds; member 54 extern void ppc_encrypt_aes(u8 *out, const u8 *in, u32 *key_enc, u32 rounds); 55 extern void ppc_decrypt_aes(u8 *out, const u8 *in, u32 *key_dec, u32 rounds); 56 extern void ppc_encrypt_ecb(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 58 extern void ppc_decrypt_ecb(u8 *out, const u8 *in, u32 *key_dec, u32 rounds, 60 extern void ppc_encrypt_cbc(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 62 extern void ppc_decrypt_cbc(u8 *out, const u8 *in, u32 *key_dec, u32 rounds, 64 extern void ppc_crypt_ctr (u8 *out, const u8 *in, u32 *key_enc, u32 rounds, 66 extern void ppc_encrypt_xts(u8 *out, const u8 *in, u32 *key_enc, u32 rounds, [all …]
|
D | aesp10-ppc.pl | 120 my ($inp,$bits,$out,$ptr,$cnt,$rounds)=map("r$_",(3..8)); 261 li $rounds,10 335 li $rounds,12 343 li $rounds,14 397 stw $rounds,0($out) 417 slwi $cnt,$rounds,4 419 srwi $rounds,$rounds,1 421 mtctr $rounds 459 my ($inp,$out,$key,$rounds,$idx)=map("r$_",(3..7)); 463 lwz $rounds,240($key) [all …]
|
D | aesp8-ppc.pl | 120 my ($inp,$bits,$out,$ptr,$cnt,$rounds)=map("r$_",(3..8)); 262 li $rounds,10 336 li $rounds,12 344 li $rounds,14 398 stw $rounds,0($out) 418 slwi $cnt,$rounds,4 420 srwi $rounds,$rounds,1 422 mtctr $rounds 460 my ($inp,$out,$key,$rounds,$idx)=map("r$_",(3..7)); 464 lwz $rounds,240($key) [all …]
|
/linux-6.12.1/arch/arm/crypto/ |
D | aes-neonbs-glue.c | 28 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds); 31 int rounds, int blocks); 33 int rounds, int blocks); 36 int rounds, int blocks, u8 iv[]); 39 int rounds, int blocks, u8 ctr[]); 42 int rounds, int blocks, u8 iv[], int); 44 int rounds, int blocks, u8 iv[], int); 47 int rounds; member 78 ctx->rounds = 6 + key_len / 4; in aesbs_setkey() 81 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey() [all …]
|
D | aes-cipher-glue.c | 20 int rounds = 6 + ctx->key_length / 4; in aes_arm_encrypt() local 22 __aes_arm_encrypt(ctx->key_enc, rounds, in, out); in aes_arm_encrypt() 28 int rounds = 6 + ctx->key_length / 4; in aes_arm_decrypt() local 30 __aes_arm_decrypt(ctx->key_dec, rounds, in, out); in aes_arm_decrypt()
|
D | aes-ce-glue.c | 30 int rounds, int blocks); 32 int rounds, int blocks); 35 int rounds, int blocks, u8 iv[]); 37 int rounds, int blocks, u8 iv[]); 39 int rounds, int bytes, u8 const iv[]); 41 int rounds, int bytes, u8 const iv[]); 44 int rounds, int blocks, u8 ctr[]); 47 int rounds, int bytes, u8 iv[], 50 int rounds, int bytes, u8 iv[], 448 int err, first, rounds = num_rounds(&ctx->key1); in xts_encrypt() local [all …]
|
D | aes-cipher-core.S | 17 rounds .req r1 146 tst rounds, #2 152 1: subs rounds, rounds, #4 171 pop {rounds} // oldcpsr 172 \round r4, r5, r6, r7, r8, r9, r10, r11, \bsz, b, rounds
|
D | aes-cipher.h | 8 asmlinkage void __aes_arm_encrypt(const u32 rk[], int rounds, 10 asmlinkage void __aes_arm_decrypt(const u32 rk[], int rounds,
|
D | ghash-ce-glue.c | 48 int rounds; member 367 const char *iv, int rounds, u32 counter); 371 const char *iv, int rounds, u32 counter); 375 const char *iv, int rounds, u32 counter); 379 const char *iv, int rounds, u32 counter, 397 ctx->rounds = 6 + keylen / 4; in gcm_aes_setkey() 520 ctx->rounds, counter); in gcm_encrypt() 561 ctx->rounds, counter); in gcm_encrypt() 616 ctx->rounds, counter); in gcm_decrypt() 648 ctx->rounds, counter, otag, authsize); in gcm_decrypt()
|
/linux-6.12.1/tools/power/cpupower/bench/ |
D | benchmark.c | 37 unsigned int rounds = 0; in calculate_timespace() local 53 rounds = (unsigned int)(load * estimated / timed); in calculate_timespace() 54 dprintf("calibrating with %u rounds\n", rounds); in calculate_timespace() 56 ROUNDS(rounds); in calculate_timespace() 60 estimated = rounds; in calculate_timespace() 91 for (_round = 1; _round <= config->rounds; _round++) in start_benchmark() 95 for (_round = 0; _round < config->rounds; _round++) { in start_benchmark()
|
/linux-6.12.1/crypto/ |
D | aria_generic.c | 155 ctx->dec_key[0][i] = ctx->enc_key[ctx->rounds][i]; in aria_set_decrypt_key() 156 ctx->dec_key[ctx->rounds][i] = ctx->enc_key[0][i]; in aria_set_decrypt_key() 159 for (i = 1; i < ctx->rounds; i++) { in aria_set_decrypt_key() 160 ctx->dec_key[i][0] = aria_m(ctx->enc_key[ctx->rounds - i][0]); in aria_set_decrypt_key() 161 ctx->dec_key[i][1] = aria_m(ctx->enc_key[ctx->rounds - i][1]); in aria_set_decrypt_key() 162 ctx->dec_key[i][2] = aria_m(ctx->enc_key[ctx->rounds - i][2]); in aria_set_decrypt_key() 163 ctx->dec_key[i][3] = aria_m(ctx->enc_key[ctx->rounds - i][3]); in aria_set_decrypt_key() 183 BUILD_BUG_ON(sizeof(int) != sizeof(ctx->rounds)); in aria_set_key() 186 ctx->rounds = (key_len + 32) / 4; in aria_set_key() 201 int rounds, rkidx = 0; in __aria_crypt() local [all …]
|
/linux-6.12.1/arch/sparc/crypto/ |
D | sha1_glue.c | 28 unsigned int rounds); 42 const unsigned int rounds = (len - done) / SHA1_BLOCK_SIZE; in __sha1_sparc64_update() local 44 sha1_sparc64_transform(sctx->state, data + done, rounds); in __sha1_sparc64_update() 45 done += rounds * SHA1_BLOCK_SIZE; in __sha1_sparc64_update()
|
D | md5_glue.c | 30 unsigned int rounds); 58 const unsigned int rounds = (len - done) / MD5_HMAC_BLOCK_SIZE; in __md5_sparc64_update() local 60 md5_sparc64_transform(sctx->hash, data + done, rounds); in __md5_sparc64_update() 61 done += rounds * MD5_HMAC_BLOCK_SIZE; in __md5_sparc64_update()
|
D | sha512_glue.c | 27 unsigned int rounds); 42 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update() local 44 sha512_sparc64_transform(sctx->state, data + done, rounds); in __sha512_sparc64_update() 45 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update()
|
D | sha256_glue.c | 28 unsigned int rounds); 42 const unsigned int rounds = (len - done) / SHA256_BLOCK_SIZE; in __sha256_sparc64_update() local 44 sha256_sparc64_transform(sctx->state, data + done, rounds); in __sha256_sparc64_update() 45 done += rounds * SHA256_BLOCK_SIZE; in __sha256_sparc64_update()
|
/linux-6.12.1/fs/bcachefs/ |
D | siphash.c | 54 static void SipHash_Rounds(SIPHASH_CTX *ctx, int rounds) in SipHash_Rounds() argument 56 while (rounds--) { in SipHash_Rounds() 77 static void SipHash_CRounds(SIPHASH_CTX *ctx, const void *ptr, int rounds) in SipHash_CRounds() argument 82 SipHash_Rounds(ctx, rounds); in SipHash_CRounds()
|
/linux-6.12.1/drivers/md/ |
D | dm-verity-fec.c | 39 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave() 437 res = div64_u64(offset, v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode() 443 rsb = offset - res * (v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode() 703 f->rounds = f->blocks; in verity_fec_ctr() 704 if (sector_div(f->rounds, f->rsn)) in verity_fec_ctr() 705 f->rounds++; in verity_fec_ctr() 711 if (f->blocks < v->data_blocks + hash_blocks || !f->rounds) { in verity_fec_ctr() 742 fec_blocks = div64_u64(f->rounds * f->roots, v->fec->roots << SECTOR_SHIFT); in verity_fec_ctr()
|
/linux-6.12.1/lib/crypto/ |
D | aes.c | 261 int rounds = 6 + ctx->key_length / 4; in aes_encrypt() local 287 if (round == rounds - 2) in aes_encrypt() 312 int rounds = 6 + ctx->key_length / 4; in aes_decrypt() local 338 if (round == rounds - 2) in aes_decrypt()
|