Home
last modified time | relevance | path

Searched refs:counter (Results 1 – 2 of 2) sorted by relevance

/crypto/
Dlrw.c116 static int next_index(u32 *counter) in next_index() argument
121 if (counter[i] + 1 != 0) in next_index()
122 return res + ffz(counter[i]++); in next_index()
124 counter[i] = 0; in next_index()
151 u32 counter[4]; in xor_tweak() local
165 counter[0] = be32_to_cpu(iv[3]); in xor_tweak()
166 counter[1] = be32_to_cpu(iv[2]); in xor_tweak()
167 counter[2] = be32_to_cpu(iv[1]); in xor_tweak()
168 counter[3] = be32_to_cpu(iv[0]); in xor_tweak()
183 be128_xor(&t, &t, &ctx->mulinc[next_index(counter)]); in xor_tweak()
[all …]
Dgcm.c161 __be32 counter = cpu_to_be32(1); in crypto_gcm_init_common() local
166 memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4); in crypto_gcm_init_common()