Lines Matching refs:aes_counter
249 uint8_t aes_counter[AES_BLOCK_LEN];
266 bzero(&s.aes_counter, AES_BLOCK_LEN);
267 memcpy(s.aes_counter, iv, AES_GCM_IV_LEN);
270 s.aes_counter[AES_BLOCK_LEN - 1] = 1;
273 aes_v8_encrypt(s.aes_counter, s.EK0.c, aes_key);
276 s.aes_counter[AES_BLOCK_LEN - 1] = 2;
295 aes_v8_encrypt(s.aes_counter, s.EKi.c, aes_key);
296 AES_INC_COUNTER(s.aes_counter);
309 aes_v8_encrypt(s.aes_counter, s.EKi.c, aes_key);
310 AES_INC_COUNTER(s.aes_counter);
348 bzero(&s.aes_counter, AES_BLOCK_LEN);
349 memcpy(s.aes_counter, iv, AES_GCM_IV_LEN);
352 s.aes_counter[AES_BLOCK_LEN - 1] = 1;
355 aes_v8_encrypt(s.aes_counter, s.EK0.c, aes_key);
392 s.aes_counter[AES_BLOCK_LEN - 1] = 2;
398 aes_v8_encrypt(s.aes_counter, s.EKi.c, aes_key);
399 AES_INC_COUNTER(s.aes_counter);
410 aes_v8_encrypt(s.aes_counter, s.EKi.c, aes_key);
411 AES_INC_COUNTER(s.aes_counter);