| /freebsd-14.2/contrib/bearssl/src/aead/ |
| H A D | ccm.c | 53 ctx->bctx = bctx; in br_ccm_init() 97 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, tmp, sizeof tmp); in br_ccm_reset() 126 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_reset() 157 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_aad_inject() 166 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, dbuf, len); in br_ccm_aad_inject() 188 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_ccm_flip() 246 (*ctx->bctx)->mac(ctx->bctx, in br_ccm_run() 264 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run() 267 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_ccm_run() 280 (*ctx->bctx)->ctr(ctx->bctx, ctx->ctr, in br_ccm_run() [all …]
|
| H A D | eax.c | 112 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, ctx->buf, sizeof ctx->buf); in do_pad() 143 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in do_cbcmac_chunk() 146 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, data, len); in do_cbcmac_chunk() 153 br_eax_init(br_eax_context *ctx, const br_block_ctrcbc_class **bctx) in br_eax_init() argument 158 ctx->bctx = bctx; in br_eax_init() 165 (*bctx)->ctr(bctx, iv, tmp, sizeof tmp); in br_eax_init() 187 (*ctx->bctx)->mac(ctx->bctx, st->st[i], tmp, sizeof tmp); in br_eax_capture() 396 (*ctx->bctx)->mac(ctx->bctx, ctx->cbcmac, in br_eax_run() 412 (*ctx->bctx)->encrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run() 415 (*ctx->bctx)->decrypt(ctx->bctx, ctx->ctr, ctx->cbcmac, in br_eax_run() [all …]
|
| H A D | gcm.c | 55 br_gcm_init(br_gcm_context *ctx, const br_block_ctr_class **bctx, br_ghash gh) in br_gcm_init() argument 60 ctx->bctx = bctx; in br_gcm_init() 71 (*bctx)->run(bctx, iv, 0, ctx->h, sizeof ctx->h); in br_gcm_init() 205 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, ctx->jc, buf, dlen); in br_gcm_run() 220 ctx->jc = (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, in br_gcm_run() 263 (*ctx->bctx)->run(ctx->bctx, ctx->j0_1, ctx->j0_2, tag, 16); in br_gcm_get_tag()
|
| /freebsd-14.2/crypto/openssl/providers/implementations/ciphers/ |
| H A D | cipher_chacha20_poly1305_hw.c | 27 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 D | cipher_chacha20_hw.c | 14 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 D | cipher_rc4_hmac_md5_hw.c | 35 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 D | cipher_cast5_hw.c | 21 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()
|
| H A D | cipher_blowfish_hw.c | 21 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()
|
| /freebsd-14.2/sys/crypto/blake2/ |
| H A D | blake2_cryptodev.c | 257 } bctx; in blake2_cipher_process() local 276 rc = blake2b_init_key(&bctx.sb, ses->mlen, key, klen); in blake2_cipher_process() 278 rc = blake2b_init(&bctx.sb, ses->mlen); in blake2_cipher_process() 284 crp->crp_payload_length, blake2b_applicator, &bctx.sb); in blake2_cipher_process() 287 rc = blake2b_final(&bctx.sb, res, ses->mlen); in blake2_cipher_process() 293 rc = blake2s_init_key(&bctx.ss, ses->mlen, key, klen); in blake2_cipher_process() 295 rc = blake2s_init(&bctx.ss, ses->mlen); in blake2_cipher_process() 301 crp->crp_payload_length, blake2s_applicator, &bctx.ss); in blake2_cipher_process() 304 rc = blake2s_final(&bctx.ss, res, ses->mlen); in blake2_cipher_process()
|
| /freebsd-14.2/contrib/bearssl/inc/ |
| H A D | bearssl_aead.h | 360 const br_block_ctr_class **bctx; member 388 const br_block_ctr_class **bctx, br_ghash gh); 583 const br_block_ctrcbc_class **bctx; member 623 void br_eax_init(br_eax_context *ctx, const br_block_ctrcbc_class **bctx); 898 const br_block_ctrcbc_class **bctx; member 922 void br_ccm_init(br_ccm_context *ctx, const br_block_ctrcbc_class **bctx);
|
| /freebsd-14.2/contrib/ntp/ntpd/ |
| H A D | ntp_crypto.c | 2189 bctx = BN_CTX_new(); in crypto_alice() 2191 BN_CTX_free(bctx); in crypto_alice() 2286 BN_CTX_free(bctx); in crypto_bob() 2527 bctx = BN_CTX_new(); in crypto_alice2() 2529 BN_CTX_free(bctx); in crypto_alice2() 2612 BN_mod(k, k, n, bctx); in crypto_bob2() 2618 BN_CTX_free(bctx); in crypto_bob2() 2869 bctx = BN_CTX_new(); in crypto_alice3() 2871 BN_CTX_free(bctx); in crypto_alice3() 2958 BN_mod(k, k, q, bctx); in crypto_bob3() [all …]
|
| /freebsd-14.2/usr.sbin/bhyve/ |
| H A D | pci_ahci.c | 139 struct blockif_ctxt *bctx; member 539 if (!pr->bctx) { in ahci_port_reset() 576 if (sc->port[i].bctx) in ahci_reset() 1016 if (blockif_candelete(p->bctx) && !blockif_is_ro(p->bctx)) { in ahci_handle_read_log() 1305 sectors = blockif_size(p->bctx) / blockif_sectsz(p->bctx); in atapi_read_toc() 1382 sectors = blockif_size(p->bctx) / blockif_sectsz(p->bctx); in atapi_read_toc() 2627 void *bctx; in pci_ahci_snapshot() local 2655 bctx = port->bctx; in pci_ahci_snapshot() 2661 if (((bctx == NULL) && (port->bctx != NULL)) || in pci_ahci_snapshot() 2662 ((bctx != NULL) && (port->bctx == NULL))) { in pci_ahci_snapshot() [all …]
|