Home
last modified time | relevance | path

Searched refs:rounds (Results 1 – 25 of 95) sorted by relevance

1234

/OK3568_Linux_fs/kernel/arch/arm64/crypto/
H A Daes-ce.S28 .macro load_round_keys, rounds, rk
29 cmp \rounds, #12
40 .macro enc_prepare, rounds, rk, temp
42 load_round_keys \rounds, \temp
46 .macro enc_switch_key, rounds, rk, temp
48 load_round_keys \rounds, \temp
52 .macro dec_prepare, rounds, rk, temp
54 load_round_keys \rounds, \temp
112 .macro do_block_Nx, enc, rounds, i0, i1, i2, i3, i4
113 cmp \rounds, #12
[all …]
H A Daes-neonbs-glue.c26 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
29 int rounds, int blocks);
31 int rounds, int blocks);
34 int rounds, int blocks, u8 iv[]);
37 int rounds, int blocks, u8 iv[], u8 final[]);
40 int rounds, int blocks, u8 iv[]);
42 int rounds, int blocks, u8 iv[]);
46 int rounds, int blocks);
48 int rounds, int blocks, u8 iv[]);
50 u32 const rk1[], int rounds, int bytes,
[all …]
H A Daes-glue.c75 int rounds, int blocks);
77 int rounds, int blocks);
80 int rounds, int blocks, u8 iv[]);
82 int rounds, int blocks, u8 iv[]);
85 int rounds, int bytes, u8 const iv[]);
87 int rounds, int bytes, u8 const iv[]);
90 int rounds, int blocks, u8 ctr[]);
93 int rounds, int bytes, u32 const rk2[], u8 iv[],
96 int rounds, int bytes, u32 const rk2[], u8 iv[],
100 int rounds, int blocks, u8 iv[],
[all …]
H A Daes-cipher-glue.c12 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()
H A Daes-neon.S98 .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 …]
H A Daes-cipher-core.S17 rounds .req x3
102 tbnz rounds, #1, 1f
107 1: subs rounds, rounds, #4
/OK3568_Linux_fs/kernel/arch/powerpc/crypto/
H A Daes-spe-glue.c44 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 …]
/OK3568_Linux_fs/kernel/arch/arm/crypto/
H A Daes-cipher-glue.c13 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);
19 int rounds = 6 + ctx->key_length / 4; in aes_arm_encrypt() local
21 __aes_arm_encrypt(ctx->key_enc, rounds, in, out); in aes_arm_encrypt()
27 int rounds = 6 + ctx->key_length / 4; in aes_arm_decrypt() local
29 __aes_arm_decrypt(ctx->key_dec, rounds, in, out); in aes_arm_decrypt()
H A Daes-neonbs-glue.c29 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
32 int rounds, int blocks);
34 int rounds, int blocks);
37 int rounds, int blocks, u8 iv[]);
40 int rounds, int blocks, u8 ctr[], u8 final[]);
43 int rounds, int blocks, u8 iv[], int);
45 int rounds, int blocks, u8 iv[], int);
48 int rounds; member
79 ctx->rounds = 6 + key_len / 4; in aesbs_setkey()
82 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey()
[all …]
H A Daes-ce-glue.c30 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 …]
H A Daes-cipher-core.S17 rounds .req r1
168 tst rounds, #2
174 1: subs rounds, rounds, #4
193 pop {rounds} // oldcpsr
194 \round r4, r5, r6, r7, r8, r9, r10, r11, \bsz, b, rounds
/OK3568_Linux_fs/buildroot/package/mkpasswd/
H A Dmkpasswd.c87 const unsigned int rounds; /* supports a variable number of rounds */ member
140 unsigned int rounds = 0; in main() local
171 rounds_support = methods[i].rounds; in main()
192 rounds = strtol(optarg, &p, 10); in main()
193 if (p == NULL || *p != '\0' || rounds < 0) { in main()
238 if (rounds <= 5) in main()
239 rounds = 5; in main()
241 snprintf(rounds_str, sizeof(rounds_str), "%02u$", rounds); in main()
242 } else if (rounds_support && rounds) in main()
243 snprintf(rounds_str, sizeof(rounds_str), "rounds=%u$", rounds); in main()
[all …]
/OK3568_Linux_fs/kernel/tools/power/cpupower/bench/
H A Dbenchmark.c37 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()
H A DREADME-BENCH47 rounds=5
66 This shows expected results of the first two test run rounds from
117 -r, --rounds<int> load/sleep rounds
/OK3568_Linux_fs/kernel/drivers/crypto/vmx/
H A Daesp8-ppc.pl120 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 …]
/OK3568_Linux_fs/external/security/librkcrypto/test/
H A Dtest_throughput.c32 uint32_t rounds; in test_otp_key_item_tp() local
52 rounds = 0; in test_otp_key_item_tp()
81 rounds ++; in test_otp_key_item_tp()
87 test_op_name(operation), (data_len * rounds / (1024 * 1024))); in test_otp_key_item_tp()
91 test_op_name(operation), (data_len * rounds / (1024 * 1024))); in test_otp_key_item_tp()
233 uint32_t rounds; in test_cipher_item_tp() local
249 rounds = 0; in test_cipher_item_tp()
289 rounds ++; in test_cipher_item_tp()
295 test_op_name(operation), (data_len * rounds / (1024 * 1024))); in test_cipher_item_tp()
299 test_op_name(operation), (data_len * rounds / (1024 * 1024))); in test_cipher_item_tp()
[all …]
/OK3568_Linux_fs/buildroot/package/linux-pam/
H A D0002-Remove-support-for-legacy-xcrypt.patch109 sp = crypt_gensalt_rn(algoid, rounds, NULL, 0, salt, sizeof(salt));
115 - sp = crypt_gensalt_r (algoid, rounds,
122 - sp += snprintf(sp, sizeof(salt) - (16 + 1 + (sp - salt)), "rounds=%u$", rounds);
128 + sp += snprintf(sp, sizeof(salt) - (16 + 1 + (sp - salt)), "rounds=%u$", rounds);
/OK3568_Linux_fs/kernel/arch/sparc/crypto/
H A Dsha1_glue.c27 unsigned int rounds);
52 const unsigned int rounds = (len - done) / SHA1_BLOCK_SIZE; in __sha1_sparc64_update() local
54 sha1_sparc64_transform(sctx->state, data + done, rounds); in __sha1_sparc64_update()
55 done += rounds * SHA1_BLOCK_SIZE; in __sha1_sparc64_update()
H A Dmd5_glue.c30 unsigned int rounds);
57 const unsigned int rounds = (len - done) / MD5_HMAC_BLOCK_SIZE; in __md5_sparc64_update() local
59 md5_sparc64_transform(sctx->hash, data + done, rounds); in __md5_sparc64_update()
60 done += rounds * MD5_HMAC_BLOCK_SIZE; in __md5_sparc64_update()
H A Dsha512_glue.c26 unsigned int rounds);
73 const unsigned int rounds = (len - done) / SHA512_BLOCK_SIZE; in __sha512_sparc64_update() local
75 sha512_sparc64_transform(sctx->state, data + done, rounds); in __sha512_sparc64_update()
76 done += rounds * SHA512_BLOCK_SIZE; in __sha512_sparc64_update()
H A Dsha256_glue.c27 unsigned int rounds);
73 const unsigned int rounds = (len - done) / SHA256_BLOCK_SIZE; in __sha256_sparc64_update() local
75 sha256_sparc64_transform(sctx->state, data + done, rounds); in __sha256_sparc64_update()
76 done += rounds * SHA256_BLOCK_SIZE; in __sha256_sparc64_update()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/ssv6xxx/crypto/
H A Dsha1_glue.c30 const unsigned char *data, unsigned int rounds);
53 const unsigned int rounds = (len - done) / SHA1_BLOCK_SIZE; in __sha1_update() local
54 sha1_block_data_order(sctx, data + done, rounds); in __sha1_update()
55 done += rounds * SHA1_BLOCK_SIZE; in __sha1_update()
/OK3568_Linux_fs/external/security/librkcrypto/test/c_mode/
H A Daes_core.c650 key->rounds = 10; in rk_aes_set_encrypt_key()
652 key->rounds = 12; in rk_aes_set_encrypt_key()
654 key->rounds = 14; in rk_aes_set_encrypt_key()
751 for (i = 0, j = 4*(key->rounds); i < j; i += 4, j -= 4) { in rk_aes_set_decrypt_key()
758 for (i = 1; i < (key->rounds); i++) { in rk_aes_set_decrypt_key()
854 if (key->rounds > 10) { in rk_aes_encrypt()
865 if (key->rounds > 12) { in rk_aes_encrypt()
878 rk += key->rounds << 2; in rk_aes_encrypt()
884 r = key->rounds >> 1; in rk_aes_encrypt()
1047 if (key->rounds > 10) { in rk_aes_decrypt()
[all …]
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-verity-fec.c38 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave()
450 res = div64_u64(offset, v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode()
456 rsb = offset - res * (v->fec->rounds << v->data_dev_block_bits); in verity_fec_decode()
721 f->rounds = f->blocks; in verity_fec_ctr()
722 if (sector_div(f->rounds, f->rsn)) in verity_fec_ctr()
723 f->rounds++; in verity_fec_ctr()
729 if (f->blocks < v->data_blocks + hash_blocks || !f->rounds) { in verity_fec_ctr()
760 fec_blocks = div64_u64(f->rounds * f->roots, v->fec->roots << SECTOR_SHIFT); in verity_fec_ctr()
/OK3568_Linux_fs/kernel/lib/crypto/
H A Daes.c269 int rounds = 6 + ctx->key_length / 4; in aes_encrypt() local
302 if (round == rounds - 2) in aes_encrypt()
327 int rounds = 6 + ctx->key_length / 4; in aes_decrypt() local
360 if (round == rounds - 2) in aes_decrypt()

1234