Home
last modified time | relevance | path

Searched refs:U8TOU32 (Results 1 – 3 of 3) sorted by relevance

/src/crypto/openssl/crypto/poly1305/
H A Dpoly1305_ieee754.c73 #define U8TOU32(p) (*(const u32 *)(p)) macro
76 #define U8TOU32(p) ({u32 ret; asm ("lwbrx %0,0,%1":"=r"(ret):"b"(p)); ret; }) macro
79 #define U8TOU32(p) ({u32 ret; asm ("lrv %0,%1":"=d"(ret):"m"(*(u32 *)(p))); ret; }) macro
83 #ifndef U8TOU32
84 #define U8TOU32(p) ((u32)(p)[0] | (u32)(p)[1] << 8 | (u32)(p)[2] << 16 | (u32)(p)[3] << 24) macro
162 r0.u = EXP(52 + 0) | (U8TOU32(&key[0]) & 0x0fffffff); in poly1305_init()
163 r1.u = EXP(52 + 32) | (U8TOU32(&key[4]) & 0x0ffffffc); in poly1305_init()
164 r2.u = EXP(52 + 64) | (U8TOU32(&key[8]) & 0x0ffffffc); in poly1305_init()
165 r3.u = EXP(52 + 96) | (U8TOU32(&key[12]) & 0x0ffffffc); in poly1305_init()
290 in0.u = EXP(52 + 0) | U8TOU32(&inp[0]); in poly1305_blocks()
[all …]
H A Dpoly1305.c22 static unsigned int U8TOU32(const unsigned char *p) in U8TOU32() function
269 st->r[0] = U8TOU32(&key[0]) & 0x0fffffff; in poly1305_init()
270 st->r[1] = U8TOU32(&key[4]) & 0x0ffffffc; in poly1305_init()
271 st->r[2] = U8TOU32(&key[8]) & 0x0ffffffc; in poly1305_init()
272 st->r[3] = U8TOU32(&key[12]) & 0x0ffffffc; in poly1305_init()
301 h0 = (u32)(d0 = (u64)h0 + U8TOU32(inp + 0)); in poly1305_blocks()
302 h1 = (u32)(d1 = (u64)h1 + (d0 >> 32) + U8TOU32(inp + 4)); in poly1305_blocks()
303 h2 = (u32)(d2 = (u64)h2 + (d1 >> 32) + U8TOU32(inp + 8)); in poly1305_blocks()
304 h3 = (u32)(d3 = (u64)h3 + (d2 >> 32) + U8TOU32(inp + 12)); in poly1305_blocks()
406 ctx->nonce[0] = U8TOU32(&key[16]); in Poly1305_Init()
[all …]
/src/sys/crypto/openssl/
H A Dossl_poly1305.c24 static unsigned int U8TOU32(const unsigned char *p) in U8TOU32() function
51 ctx->nonce[0] = U8TOU32(&key[16]); in Poly1305_Init()
52 ctx->nonce[1] = U8TOU32(&key[20]); in Poly1305_Init()
53 ctx->nonce[2] = U8TOU32(&key[24]); in Poly1305_Init()
54 ctx->nonce[3] = U8TOU32(&key[28]); in Poly1305_Init()