Home
last modified time | relevance | path

Searched refs:CHACHA_U8TOU32 (Results 1 – 6 of 6) sorted by relevance

/freebsd/crypto/openssl/crypto/evp/
H A De_chacha20_poly1305.c45 key->key.d[i/4] = CHACHA_U8TOU32(user_key+i); in chacha_init_key()
50 key->counter[i/4] = CHACHA_U8TOU32(iv+i); in chacha_init_key()
547 = CHACHA_U8TOU32((unsigned char *)ptr); in chacha20_poly1305_ctrl()
549 = CHACHA_U8TOU32((unsigned char *)ptr+4); in chacha20_poly1305_ctrl()
551 = CHACHA_U8TOU32((unsigned char *)ptr+8); in chacha20_poly1305_ctrl()
593 actx->key.counter[2] = actx->nonce[1] ^ CHACHA_U8TOU32(aad); in chacha20_poly1305_ctrl()
594 actx->key.counter[3] = actx->nonce[2] ^ CHACHA_U8TOU32(aad+4); in chacha20_poly1305_ctrl()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_hw.c22 ctx->key.d[i / 4] = CHACHA_U8TOU32(key + i); in chacha20_initkey()
35 ctx->counter[i / 4] = CHACHA_U8TOU32(bctx->oiv + i); in chacha20_initiv()
H A Dcipher_chacha20_poly1305_hw.c38 ctx->chacha.counter[2] = ctx->nonce[1] ^ CHACHA_U8TOU32(aad); in chacha_poly1305_tls_init()
39 ctx->chacha.counter[3] = ctx->nonce[2] ^ CHACHA_U8TOU32(aad+4); in chacha_poly1305_tls_init()
52 ctx->nonce[0] = ctx->chacha.counter[1] = CHACHA_U8TOU32(fixed); in chacha_poly1305_tls_iv_set_fixed()
53 ctx->nonce[1] = ctx->chacha.counter[2] = CHACHA_U8TOU32(fixed + 4); in chacha_poly1305_tls_iv_set_fixed()
54 ctx->nonce[2] = ctx->chacha.counter[3] = CHACHA_U8TOU32(fixed + 8); in chacha_poly1305_tls_iv_set_fixed()
/freebsd/sys/crypto/openssl/
H A Dossl_chacha.h34 #define CHACHA_U8TOU32(p) ( \ macro
H A Dossl_chacha20.c74 key[i] = CHACHA_U8TOU32(cipher_key + i * 4); in ossl_chacha20()
176 key[i] = CHACHA_U8TOU32(cipher_key + i * 4); in ossl_chacha20_poly1305_encrypt()
323 key[i] = CHACHA_U8TOU32(cipher_key + i * 4); in ossl_chacha20_poly1305_decrypt()
/freebsd/crypto/openssl/include/crypto/
H A Dchacha.h35 #define CHACHA_U8TOU32(p) ( \ macro