Lines Matching refs:UINT32
82 typedef u_int32_t UINT32; /* 4 byte */ typedef
120 #define MUL64(a,b) ((UINT64)((UINT64)(UINT32)(a) * (UINT64)(UINT32)(b)))
127 #define LOAD_UINT32_REVERSED(p) (swap32(*(UINT32 *)(p)))
128 #define STORE_UINT32_REVERSED(p,v) (*(UINT32 *)(p) = swap32(v))
131 static UINT32 LOAD_UINT32_REVERSED(void *ptr) in LOAD_UINT32_REVERSED()
133 UINT32 temp = *(UINT32 *)ptr; in LOAD_UINT32_REVERSED()
136 return (UINT32)temp; in LOAD_UINT32_REVERSED()
140 static void STORE_UINT32_REVERSED(void *ptr, UINT32 x) in STORE_UINT32_REVERSED()
142 UINT32 i = (UINT32)x; in STORE_UINT32_REVERSED()
143 *(UINT32 *)ptr = (i >> 24) | ((i & 0x00FF0000) >> 8 ) in STORE_UINT32_REVERSED()
154 #define LOAD_UINT32_LITTLE(ptr) (*(UINT32 *)(ptr))
158 #define STORE_UINT32_BIG(ptr,x) (*(UINT32 *)(ptr) = (UINT32)(x))
254 *(UINT32 *)tmp_nonce_lo = ((UINT32 *)nonce)[1]; in pdf_gen_xor()
257 if ( (((UINT32 *)tmp_nonce_lo)[0] != ((UINT32 *)pc->nonce)[1]) || in pdf_gen_xor()
258 (((UINT32 *)nonce)[0] != ((UINT32 *)pc->nonce)[0]) ) in pdf_gen_xor()
260 ((UINT32 *)pc->nonce)[0] = ((UINT32 *)nonce)[0]; in pdf_gen_xor()
261 ((UINT32 *)pc->nonce)[1] = ((UINT32 *)tmp_nonce_lo)[0]; in pdf_gen_xor()
266 *((UINT32 *)buf) ^= ((UINT32 *)pc->cache)[ndx]; in pdf_gen_xor()
271 ((UINT32 *)buf)[2] ^= ((UINT32 *)pc->cache)[2]; in pdf_gen_xor()
328 static void nh_aux(void *kp, void *dp, void *hp, UINT32 dlen) in nh_aux()
337 UINT32 *k = (UINT32 *)kp; in nh_aux()
338 UINT32 *d = (UINT32 *)dp; in nh_aux()
339 UINT32 d0,d1,d2,d3,d4,d5,d6,d7; in nh_aux()
340 UINT32 k0,k1,k2,k3,k4,k5,k6,k7; in nh_aux()
363 static void nh_aux(void *kp, void *dp, void *hp, UINT32 dlen) in nh_aux()
370 UINT32 *k = (UINT32 *)kp; in nh_aux()
371 UINT32 *d = (UINT32 *)dp; in nh_aux()
372 UINT32 d0,d1,d2,d3,d4,d5,d6,d7; in nh_aux()
373 UINT32 k0,k1,k2,k3,k4,k5,k6,k7, in nh_aux()
410 static void nh_aux(void *kp, void *dp, void *hp, UINT32 dlen) in nh_aux()
417 UINT32 *k = (UINT32 *)kp; in nh_aux()
418 UINT32 *d = (UINT32 *)dp; in nh_aux()
419 UINT32 d0,d1,d2,d3,d4,d5,d6,d7; in nh_aux()
420 UINT32 k0,k1,k2,k3,k4,k5,k6,k7, in nh_aux()
465 static void nh_aux(void *kp, void *dp, void *hp, UINT32 dlen) in nh_aux()
472 UINT32 *k = (UINT32 *)kp; in nh_aux()
473 UINT32 *d = (UINT32 *)dp; in nh_aux()
474 UINT32 d0,d1,d2,d3,d4,d5,d6,d7; in nh_aux()
475 UINT32 k0,k1,k2,k3,k4,k5,k6,k7, in nh_aux()
534 static void nh_transform(nh_ctx *hc, UINT8 *buf, UINT32 nbytes) in nh_transform()
550 static void endian_convert(void *buf, UWORD bpw, UINT32 num_bytes) in endian_convert()
556 UINT32 *p = (UINT32 *)buf; in endian_convert()
562 UINT32 *p = (UINT32 *)buf; in endian_convert()
563 UINT32 t; in endian_convert()
609 static void nh_update(nh_ctx *hc, UINT8 *buf, UINT32 nbytes) in nh_update()
613 UINT32 i,j; in nh_update()
704 static void nh(nh_ctx *hc, UINT8 *buf, UINT32 padded_len, in nh()
705 UINT32 unpadded_len, UINT8 *result) in nh()
711 UINT32 nbits; in nh()
777 UINT32 ip_trans[STREAMS]; /* Inner-product translation */
778 UINT32 msg_len; /* Total length of data passed */
796 UINT32 key_hi = (UINT32)(key >> 32), in poly64()
797 key_lo = (UINT32)key, in poly64()
798 cur_hi = (UINT32)(cur >> 32), in poly64()
799 cur_lo = (UINT32)cur, in poly64()
805 x_lo = (UINT32)X; in poly64()
806 x_hi = (UINT32)(X >> 32); in poly64()
829 static void poly_hash(uhash_ctx_t hc, UINT32 data_in[]) in poly_hash()
835 if ((UINT32)(data[i] >> 32) == 0xfffffffful) { in poly_hash()
867 static UINT32 ip_reduce_p36(UINT64 t) in ip_reduce_p36()
877 return (UINT32)(ret); in ip_reduce_p36()
891 STORE_UINT32_BIG((UINT32 *)res+0, ip_reduce_p36(t) ^ ahc->ip_trans[0]); in ip_short()
894 STORE_UINT32_BIG((UINT32 *)res+1, ip_reduce_p36(t) ^ ahc->ip_trans[1]); in ip_short()
898 STORE_UINT32_BIG((UINT32 *)res+2, ip_reduce_p36(t) ^ ahc->ip_trans[2]); in ip_short()
902 STORE_UINT32_BIG((UINT32 *)res+3, ip_reduce_p36(t) ^ ahc->ip_trans[3]); in ip_short()
920 STORE_UINT32_BIG((UINT32 *)res+i, in ip_long()
992 kdf(ahc->ip_trans, prf_key, 4, STREAMS * sizeof(UINT32)); in uhash_init()
993 endian_convert_if_le(ahc->ip_trans, sizeof(UINT32), in uhash_init()
994 STREAMS * sizeof(UINT32)); in uhash_init()
1070 poly_hash(ctx,(UINT32 *)nh_result); in uhash_update()
1082 poly_hash(ctx,(UINT32 *)nh_result); in uhash_update()
1107 poly_hash(ctx,(UINT32 *)nh_result); in uhash_final()
1126 UINT32 nh_len;
1147 poly_hash(ahc,(UINT32 *)nh_result);
1156 poly_hash(ahc,(UINT32 *)nh_result);