Home
last modified time | relevance | path

Searched refs:bctx (Results 1 – 5 of 5) sorted by relevance

/openssl/providers/implementations/ciphers/
H A Dcipher_chacha20_poly1305_hw.c27 if (!bctx->enc) { in chacha_poly1305_tls_init()
69 if (bctx->enc) in chacha20_poly1305_initkey()
92 if (bctx->enc) in chacha20_poly1305_initiv()
101 bctx->iv_set = 1; in chacha20_poly1305_initiv()
146 if (bctx->enc) in chacha20_poly1305_tls_cipher()
170 if (bctx->enc) { in chacha20_poly1305_tls_cipher()
204 if (bctx->enc) { in chacha20_poly1305_tls_cipher()
247 if (bctx->enc) { in chacha20_poly1305_tls_cipher()
322 if (bctx->enc) { /* plaintext */ in chacha20_poly1305_aead_cipher()
377 if (bctx->enc) { in chacha20_poly1305_aead_cipher()
[all …]
H A Dcipher_chacha20_hw.c14 static int chacha20_initkey(PROV_CIPHER_CTX *bctx, const uint8_t *key, in chacha20_initkey() argument
17 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_initkey()
28 static int chacha20_initiv(PROV_CIPHER_CTX *bctx) in chacha20_initiv() argument
30 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_initiv()
33 if (bctx->iv_set) { in chacha20_initiv()
35 ctx->counter[i / 4] = CHACHA_U8TOU32(bctx->oiv + i); in chacha20_initiv()
41 static int chacha20_cipher(PROV_CIPHER_CTX *bctx, unsigned char *out, in chacha20_cipher() argument
44 PROV_CHACHA20_CTX *ctx = (PROV_CHACHA20_CTX *)bctx; in chacha20_cipher()
H A Dcipher_rc4_hmac_md5_hw.c35 static int cipher_hw_rc4_hmac_md5_initkey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_initkey() argument
38 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_initkey()
45 bctx->removetlsfixed = MD5_DIGEST_LENGTH; in cipher_hw_rc4_hmac_md5_initkey()
49 static int cipher_hw_rc4_hmac_md5_cipher(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_cipher() argument
53 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_cipher()
165 static int cipher_hw_rc4_hmac_md5_tls_init(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_tls_init() argument
168 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_tls_init()
176 if (!bctx->enc) { in cipher_hw_rc4_hmac_md5_tls_init()
190 static void cipher_hw_rc4_hmac_md5_init_mackey(PROV_CIPHER_CTX *bctx, in cipher_hw_rc4_hmac_md5_init_mackey() argument
194 PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)bctx; in cipher_hw_rc4_hmac_md5_init_mackey()
H A Dcipher_blowfish_hw.c21 PROV_BLOWFISH_CTX *bctx = (PROV_BLOWFISH_CTX *)ctx; in cipher_hw_blowfish_initkey() local
23 BF_set_key(&bctx->ks.ks, keylen, key); in cipher_hw_blowfish_initkey()
H A Dcipher_cast5_hw.c21 PROV_CAST_CTX *bctx = (PROV_CAST_CTX *)ctx; in cipher_hw_cast5_initkey() local
23 CAST_set_key(&(bctx->ks.ks), keylen, key); in cipher_hw_cast5_initkey()

Completed in 11 milliseconds