Lines Matching defs:UINT8
91 typedef u_int8_t UINT8; /* 1 byte */
171 typedef UINT8 aes_int_key[AES_ROUNDS+1][4][4]; /* AES internal */
185 static void kdf(void *buffer_ptr, aes_int_key key, UINT8 ndx, int nbytes)
187 UINT8 in_buf[AES_BLOCK_LEN] = {0};
188 UINT8 out_buf[AES_BLOCK_LEN];
189 UINT8 *dst_buf = (UINT8 *)buffer_ptr;
218 UINT8 cache[AES_BLOCK_LEN]; /* Previous AES output is saved */
219 UINT8 nonce[AES_BLOCK_LEN]; /* The AES input making above cache */
225 UINT8 buf[UMAC_KEY_LEN];
256 static void pdf_gen_xor(pdf_ctx *pc, const UINT8 nonce[8],
257 UINT8 buf[UMAC_OUTPUT_LEN])
272 UINT8 tmp_nonce_lo[4];
342 UINT8 nh_key [L1_KEY_LEN + L1_KEY_SHIFT * (STREAMS - 1)]; /* NH Key */
343 UINT8 data [HASH_BUF_BYTES]; /* Incoming data buffer */
558 static void nh_transform(nh_ctx *hc, const UINT8 *buf, UINT32 nbytes)
565 UINT8 *key;
633 static void nh_update(nh_ctx *hc, const UINT8 *buf, UINT32 nbytes)
664 static void zero_pad(UINT8 *p, int nbytes)
688 static void nh_final(nh_ctx *hc, UINT8 *result)
728 static void nh(nh_ctx *hc, const UINT8 *buf, UINT32 padded_len,
729 UINT32 unpadded_len, UINT8 *result)
909 static void ip_short(uhash_ctx_t ahc, UINT8 *nh_res, u_char *res)
982 UINT8 buf[(8*STREAMS+4)*sizeof(UINT64)];
1074 UINT8 *nh_result = (UINT8 *)&result_buf;
1077 nh_update(&ctx->hash, (const UINT8 *)input, len);
1092 nh_update(&ctx->hash, (const UINT8 *)input, bytes_remaining);
1102 nh(&ctx->hash, (const UINT8 *)input, L1_KEY_LEN,
1113 nh_update(&ctx->hash, (const UINT8 *)input, len);
1127 UINT8 *nh_result = (UINT8 *)&result_buf;
1150 UINT8 nh_result[STREAMS*sizeof(UINT64)];
1163 zero_pad((UINT8 *)msg + len, extra_zeroes_needed);
1164 nh(&ahc->hash, (UINT8 *)msg, nh_len, len, nh_result);
1171 nh(&ahc->hash, (UINT8 *)msg, L1_KEY_LEN, L1_KEY_LEN, nh_result);
1179 zero_pad((UINT8 *)msg + len, extra_zeroes_needed);
1180 nh(&ahc->hash, (UINT8 *)msg, nh_len, len, nh_result);
1268 pdf_gen_xor(&ctx->pdf, (const UINT8 *)nonce, (UINT8 *)tag);
1293 pdf_gen_xor(&ctx->pdf, (UINT8 *)nonce, (UINT8 *)tag);