/netbsd/crypto/external/bsd/openssl/dist/test/ |
H A D | cipher_overhead_test.c | 14 static int cipher_enabled(const SSL_CIPHER *ciph) in cipher_enabled() argument 20 if ((ciph->algorithm_mac & SSL_AEAD) != 0) in cipher_enabled() 23 if (ciph->algorithm_enc != SSL_eNULL in cipher_enabled() 27 if (EVP_get_digestbynid(SSL_CIPHER_get_digest_nid(ciph)) == NULL) in cipher_enabled() 36 const SSL_CIPHER *ciph; in cipher_overhead() local 40 ciph = ssl3_get_cipher(i); in cipher_overhead() 41 if (!ciph->min_dtls) in cipher_overhead() 43 if (!cipher_enabled(ciph)) { in cipher_overhead() 44 TEST_skip("Skipping disabled cipher %s", ciph->name); in cipher_overhead() 48 TEST_info("Failed getting %s", ciph->name); in cipher_overhead() [all …]
|
H A D | tls13encryptiontest.c | 310 const EVP_CIPHER *ciph = EVP_aes_128_gcm(); in test_tls13_encryption() local 350 ivlen = EVP_CIPHER_get_iv_length(ciph); in test_tls13_encryption() 363 if (EVP_CipherInit_ex(s->enc_write_ctx, ciph, NULL, key, NULL, 1) <= 0 in test_tls13_encryption() 364 || EVP_CipherInit_ex(s->enc_read_ctx, ciph, NULL, key, NULL, 0) in test_tls13_encryption()
|
H A D | threadstest.c | 313 EVP_CIPHER *ciph = EVP_CIPHER_fetch(multi_libctx, "AES-128-CBC", NULL); in thread_general_worker() local 337 || !TEST_ptr(ciph)) in thread_general_worker() 348 if (!TEST_true(EVP_EncryptInit_ex(cipherctx, ciph, NULL, key, iv)) in thread_general_worker() 370 EVP_CIPHER_free(ciph); in thread_general_worker()
|
/netbsd/usr.sbin/fwctl/ |
H A D | fwmpegts.c | 143 struct ciphdr *ciph; in mpegtsrecv() local 202 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ in mpegtsrecv() 203 if (ciph->fmt != CIP_FMT_MPEG) in mpegtsrecv() 206 ciph->fmt); in mpegtsrecv() 207 if (ciph->fn != 3) { in mpegtsrecv() 211 __func__, ciph->fn); in mpegtsrecv() 213 ptr = (uint32_t *) (ciph + 1); /* skip cip header */ in mpegtsrecv() 226 ciph->len, ciph->len * 4); in mpegtsrecv() 229 ciph->fn, (1<<ciph->fn) ); in mpegtsrecv() 230 fprintf(stderr, "QCP (CIP header): %d\n", ciph->qpc ); in mpegtsrecv() [all …]
|
H A D | fwdv.c | 97 struct ciphdr *ciph; in dvrecv() local 182 __func__, ciph->fmt); in dvrecv() 200 lsystem = ciph->fdf.dv.fs; in dvrecv() 272 struct ciphdr *ciph; in dvsend() local 313 ciph->src = 0; /* XXX */ in dvsend() 314 ciph->len = 120; in dvsend() 315 ciph->dbc = 0; in dvsend() 316 ciph->eoh1 = 1; in dvsend() 317 ciph->fdf.dv.cyc = 0xffff; in dvsend() 384 ciph->fdf.dv.cyc = 0xffff; in dvsend() [all …]
|
H A D | fwcontrol.c | 662 struct ciphdr *ciph; in detect_recv_fn() local 699 ciph = (struct ciphdr *)(ptr + 1); in detect_recv_fn() 701 switch (ciph->fmt) { in detect_recv_fn() 713 ciph->fmt); in detect_recv_fn()
|
/netbsd/crypto/external/bsd/openssl.old/dist/test/ |
H A D | cipher_overhead_test.c | 27 const SSL_CIPHER *ciph; in cipher_overhead() local 31 ciph = ssl3_get_cipher(i); in cipher_overhead() 32 if (!ciph->min_dtls) in cipher_overhead() 34 if (!TEST_true(ssl_cipher_get_overhead(ciph, &mac, &in, &blk, &ex))) { in cipher_overhead() 35 TEST_info("Failed getting %s", ciph->name); in cipher_overhead() 39 ciph->name, mac, in, blk, ex); in cipher_overhead()
|
H A D | tls13encryptiontest.c | 321 const EVP_CIPHER *ciph = EVP_aes_128_gcm(); in test_tls13_encryption() local 361 ivlen = EVP_CIPHER_iv_length(ciph); in test_tls13_encryption() 374 if (EVP_CipherInit_ex(s->enc_write_ctx, ciph, NULL, key, NULL, 1) <= 0 in test_tls13_encryption() 375 || EVP_CipherInit_ex(s->enc_read_ctx, ciph, NULL, key, NULL, 0) in test_tls13_encryption()
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/cms/ |
H A D | cms_enc.c | 27 const EVP_CIPHER *ciph; in cms_EncryptedContent_init_bio() local 48 ciph = ec->cipher; in cms_EncryptedContent_init_bio() 55 ciph = EVP_get_cipherbyobj(calg->algorithm); in cms_EncryptedContent_init_bio() 57 if (!ciph) { in cms_EncryptedContent_init_bio() 63 if (EVP_CipherInit_ex(ctx, ciph, NULL, NULL, NULL, enc) <= 0) { in cms_EncryptedContent_init_bio() 188 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument 196 if (ciph) { in CMS_EncryptedData_set1_key() 209 return cms_EncryptedContent_init(ec, ciph, key, keylen); in CMS_EncryptedData_set1_key()
|
H A D | cms_env.c | 378 const EVP_CIPHER *ciph = EVP_get_cipherbyobj(calg->algorithm); in cms_RecipientInfo_ktri_decrypt() local 380 if (ciph == NULL) { in cms_RecipientInfo_ktri_decrypt() 385 fixlen = EVP_CIPHER_key_length(ciph); in cms_RecipientInfo_ktri_decrypt()
|
/netbsd/external/ibm-public/postfix/dist/src/tls/ |
H A D | tls_server.c | 308 static const EVP_CIPHER *ciph; in ticket_cb() local 313 if ((!ciph && (ciph = EVP_get_cipherbyname(var_tls_tkt_cipher)) == 0) in ticket_cb() 328 EVP_EncryptInit_ex(ctx, ciph, NOENGINE, key->bits, iv); in ticket_cb() 334 EVP_DecryptInit_ex(ctx, ciph, NOENGINE, key->bits, iv); in ticket_cb() 351 static const EVP_CIPHER *ciph; in ticket_cb() local 357 || (!ciph && (ciph = EVP_get_cipherbyname(var_tls_tkt_cipher)) == 0) in ticket_cb() 365 EVP_EncryptInit_ex(ctx, ciph, NOENGINE, key->bits, iv); in ticket_cb() 531 const EVP_CIPHER *ciph; in tls_server_init() local 534 || EVP_CIPHER_mode(ciph) != EVP_CIPH_CBC_MODE in tls_server_init() 535 || EVP_CIPHER_iv_length(ciph) != TLS_TICKET_IVLEN in tls_server_init() [all …]
|
/netbsd/crypto/external/bsd/openssl/dist/crypto/evp/ |
H A D | pmeth_lib.c | 399 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops() 400 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops() 402 ctx->op.ciph.algctx = NULL; in evp_pkey_ctx_free_old_ops() 403 ctx->op.ciph.cipher = NULL; in evp_pkey_ctx_free_old_ops() 547 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup() 556 rctx->op.ciph.algctx in EVP_PKEY_CTX_dup() 557 = pctx->op.ciph.cipher->dupctx(pctx->op.ciph.algctx); in EVP_PKEY_CTX_dup() 708 ctx->op.ciph.cipher->set_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_set_params() 752 ctx->op.ciph.cipher->get_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_get_params() 795 return ctx->op.ciph.cipher->gettable_ctx_params(ctx->op.ciph.algctx, in EVP_PKEY_CTX_gettable_params() [all …]
|
H A D | asymcipher.c | 144 ctx->op.ciph.cipher = cipher; in evp_pkey_asym_cipher_init() 145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); in evp_pkey_asym_cipher_init() 146 if (ctx->op.ciph.algctx == NULL) { in evp_pkey_asym_cipher_init() 159 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init() 167 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params); in evp_pkey_asym_cipher_init() 243 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_encrypt() 246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_encrypt() 285 if (ctx->op.ciph.algctx == NULL) in EVP_PKEY_decrypt() 288 ret = ctx->op.ciph.cipher->decrypt(ctx->op.ciph.algctx, out, outlen, in EVP_PKEY_decrypt()
|
H A D | names.c | 173 void (*fn) (const EVP_CIPHER *ciph, 186 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all() argument 200 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all_sorted() argument 216 void (*fn) (const EVP_MD *ciph,
|
H A D | evp_local.h | 337 int evp_do_ciph_getparams(const EVP_CIPHER *ciph, OSSL_PARAM params[]); 338 int evp_do_ciph_ctx_getparams(const EVP_CIPHER *ciph, void *provctx, 340 int evp_do_ciph_ctx_setparams(const EVP_CIPHER *ciph, void *provctx,
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
H A D | names.c | 99 void (*fn) (const EVP_CIPHER *ciph, 112 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all() argument 126 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all_sorted() argument 142 void (*fn) (const EVP_MD *ciph,
|
/netbsd/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
H A D | rand-fortuna.c | 114 CIPH_CTX ciph; member 205 ciph_encrypt(&st->ciph, st->counter, dst); in encrypt_counter() 287 ciph_init(&st->ciph, st->key, BLOCK); in reseed() 352 ciph_init(&st->ciph, st->key, BLOCK); in rekey()
|
/netbsd/crypto/external/bsd/openssl/dist/crypto/cms/ |
H A D | cms_enc.c | 225 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument 234 if (ciph) { in CMS_EncryptedData_set1_key() 247 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen, in CMS_EncryptedData_set1_key()
|
/netbsd/crypto/external/bsd/openssl.old/dist/ssl/ |
H A D | tls13_enc.c | 362 const EVP_CIPHER *ciph, in derive_secret_key_and_iv() argument 389 keylen = EVP_CIPHER_key_length(ciph); in derive_secret_key_and_iv() 390 if (EVP_CIPHER_mode(ciph) == EVP_CIPH_CCM_MODE) { in derive_secret_key_and_iv() 412 ivlen = EVP_CIPHER_iv_length(ciph); in derive_secret_key_and_iv() 422 if (EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, sending) <= 0 in derive_secret_key_and_iv()
|
H A D | d1_lib.c | 936 const SSL_CIPHER *ciph = SSL_get_current_cipher(s); in DTLS_get_data_mtu() local 939 if (ciph == NULL) in DTLS_get_data_mtu() 942 if (!ssl_cipher_get_overhead(ciph, &mac_overhead, &int_overhead, in DTLS_get_data_mtu()
|
/netbsd/crypto/external/bsd/openssl/dist/ssl/ |
H A D | tls13_enc.c | 334 const EVP_CIPHER *ciph, in derive_secret_key_and_iv() argument 359 keylen = EVP_CIPHER_get_key_length(ciph); in derive_secret_key_and_iv() 360 if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_CCM_MODE) { in derive_secret_key_and_iv() 381 ivlen = EVP_CIPHER_get_iv_length(ciph); in derive_secret_key_and_iv() 391 if (EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, sending) <= 0 in derive_secret_key_and_iv()
|
H A D | d1_lib.c | 929 const SSL_CIPHER *ciph = SSL_get_current_cipher(s); in DTLS_get_data_mtu() local 932 if (ciph == NULL) in DTLS_get_data_mtu() 935 if (!ssl_cipher_get_overhead(ciph, &mac_overhead, &int_overhead, in DTLS_get_data_mtu()
|
/netbsd/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ |
H A D | cipher_aes_ocb.c | 163 size_t inl, OSSL_ocb_cipher_fn ciph) in aes_ocb_block_update_internal() argument 178 if (!ciph(ctx, buf, out, AES_BLOCK_SIZE)) { in aes_ocb_block_update_internal() 193 if (!ciph(ctx, in, out, nextblocks)) { in aes_ocb_block_update_internal()
|
/netbsd/crypto/external/bsd/openssl/dist/engines/ |
H A D | e_dasync.c | 630 const EVP_CIPHER *ciph) in dasync_cipher_ctrl_helper() argument 642 size_t sz = EVP_CIPHER_impl_ctx_size(ciph); in dasync_cipher_ctrl_helper()
|
/netbsd/crypto/external/bsd/openssl/dist/include/openssl/ |
H A D | evp.h | 1174 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, 1178 (const EVP_CIPHER *ciph, const char *from, 1184 void EVP_MD_do_all(void (*fn) (const EVP_MD *ciph, 1188 (const EVP_MD *ciph, const char *from, 1872 const OSSL_PARAM *EVP_ASYM_CIPHER_gettable_ctx_params(const EVP_ASYM_CIPHER *ciph); 1873 const OSSL_PARAM *EVP_ASYM_CIPHER_settable_ctx_params(const EVP_ASYM_CIPHER *ciph);
|