Lines Matching refs:UINT8

88 typedef u_int8_t	UINT8;  /* 1 byte   */
195 static void kdf(void *bufp, aes_int_key key, UINT8 ndx, int nbytes)
197 UINT8 in_buf[AES_BLOCK_LEN] = {0};
198 UINT8 out_buf[AES_BLOCK_LEN];
199 UINT8 *dst_buf = (UINT8 *)bufp;
226 UINT8 cache[AES_BLOCK_LEN]; /* Previous AES output is saved */
227 UINT8 nonce[AES_BLOCK_LEN]; /* The AES input making above cache */
233 UINT8 buf[UMAC_KEY_LEN];
243 static void pdf_gen_xor(pdf_ctx *pc, const UINT8 nonce[8], UINT8 buf[8])
258 UINT8 tmp_nonce_lo[4];
328 UINT8 nh_key [L1_KEY_LEN + L1_KEY_SHIFT * (STREAMS - 1)]; /* NH Key */
329 UINT8 data [HASH_BUF_BYTES]; /* Incoming data buffer */
544 static void nh_transform(nh_ctx *hc, const UINT8 *buf, UINT32 nbytes)
551 UINT8 *key;
619 static void nh_update(nh_ctx *hc, const UINT8 *buf, UINT32 nbytes)
650 static void zero_pad(UINT8 *p, int nbytes)
674 static void nh_final(nh_ctx *hc, UINT8 *result)
714 static void nh(nh_ctx *hc, const UINT8 *buf, UINT32 padded_len,
715 UINT32 unpadded_len, UINT8 *result)
895 static void ip_short(uhash_ctx_t ahc, UINT8 *nh_res, u_char *res)
968 UINT8 buf[(8*STREAMS+4)*sizeof(UINT64)];
1059 UINT8 *nh_result = (UINT8 *)&result_buf;
1062 nh_update(&ctx->hash, (const UINT8 *)input, len);
1077 nh_update(&ctx->hash, (const UINT8 *)input, bytes_remaining);
1087 nh(&ctx->hash, (const UINT8 *)input, L1_KEY_LEN,
1098 nh_update(&ctx->hash, (const UINT8 *)input, len);
1112 UINT8 *nh_result = (UINT8 *)&result_buf;
1135 UINT8 nh_result[STREAMS*sizeof(UINT64)];
1148 zero_pad((UINT8 *)msg + len, extra_zeroes_needed);
1149 nh(&ahc->hash, (UINT8 *)msg, nh_len, len, nh_result);
1156 nh(&ahc->hash, (UINT8 *)msg, L1_KEY_LEN, L1_KEY_LEN, nh_result);
1164 zero_pad((UINT8 *)msg + len, extra_zeroes_needed);
1165 nh(&ahc->hash, (UINT8 *)msg, nh_len, len, nh_result);
1252 pdf_gen_xor(&ctx->pdf, (const UINT8 *)nonce, (UINT8 *)tag);
1277 pdf_gen_xor(&ctx->pdf, (UINT8 *)nonce, (UINT8 *)tag);