Home | History | Annotate | Download | only in crypto

Lines Matching defs:J0

192 static void aes_gcm_prepare_j0(const u8 *iv, size_t iv_len, const u8 *H, u8 *J0)
198 os_memcpy(J0, iv, iv_len);
199 os_memset(J0 + iv_len, 0, AES_BLOCK_SIZE - iv_len);
200 J0[AES_BLOCK_SIZE - 1] = 0x01;
206 ghash_start(J0);
207 ghash(H, iv, iv_len, J0);
210 ghash(H, len_buf, sizeof(len_buf), J0);
215 static void aes_gcm_gctr(void *aes, const u8 *J0, const u8 *in, size_t len,
223 os_memcpy(J0inc, J0, AES_BLOCK_SIZE);
259 u8 J0[AES_BLOCK_SIZE];
267 aes_gcm_prepare_j0(iv, iv_len, H, J0);
270 aes_gcm_gctr(aes, J0, plain, plain_len, crypt);
275 aes_gctr(aes, J0, S, sizeof(S), tag);
293 u8 J0[AES_BLOCK_SIZE];
301 aes_gcm_prepare_j0(iv, iv_len, H, J0);
304 aes_gcm_gctr(aes, J0, crypt, crypt_len, plain);
309 aes_gctr(aes, J0, S, sizeof(S), T);