Searched refs:counter (Results 1 – 2 of 2) sorted by relevance
114 static int lrw_next_index(u32 *counter) in lrw_next_index() argument119 if (counter[i] + 1 != 0) in lrw_next_index()120 return res + ffz(counter[i]++); in lrw_next_index()122 counter[i] = 0; in lrw_next_index()149 u32 counter[4]; in lrw_xor_tweak() local163 counter[0] = be32_to_cpu(iv[3]); in lrw_xor_tweak()164 counter[1] = be32_to_cpu(iv[2]); in lrw_xor_tweak()165 counter[2] = be32_to_cpu(iv[1]); in lrw_xor_tweak()166 counter[3] = be32_to_cpu(iv[0]); in lrw_xor_tweak()182 &ctx->mulinc[lrw_next_index(counter)]); in lrw_xor_tweak()[all …]
155 __be32 counter = cpu_to_be32(1); in crypto_gcm_init_common() local160 memcpy(pctx->iv + GCM_AES_IV_SIZE, &counter, 4); in crypto_gcm_init_common()