/freebsd/crypto/openssl/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() 24 && EVP_get_cipherbynid(SSL_CIPHER_get_cipher_nid(ciph)) == NULL) 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() [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()
|
H A D | evp_extra_test.c | 4311 EVP_CIPHER *ciph = NULL; in test_ivlen_change() local 4318 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, ivlen_change_ciphers[idx], in test_ivlen_change() 4322 if (!TEST_true(EVP_CipherInit_ex(ctx, ciph, NULL, kGCMDefaultKey, iv, 1))) in test_ivlen_change() 4345 EVP_CIPHER_free(ciph); in test_ivlen_change() 4379 EVP_CIPHER *ciph = NULL; in test_keylen_change() local 4389 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, keylen_change_ciphers[idx], in test_keylen_change() 4393 if (!TEST_true(EVP_CipherInit_ex(ctx, ciph, NULL, key, NULL, 1))) in test_keylen_change() 4416 EVP_CIPHER_free(ciph); in test_keylen_change() 4676 EVP_CIPHER *ciph = EVP_CIPHER_meth_dup(EVP_aes_128_cbc()); in test_evp_md_cipher_meth() local 4679 if (!TEST_ptr(md) || !TEST_ptr(ciph)) in test_evp_md_cipher_meth() [all …]
|
H A D | ssl_old_test.c | 769 const SSL_CIPHER *ciph; in print_details() local 774 ciph = SSL_get_current_cipher(c_ssl); in print_details() 778 SSL_CIPHER_get_version(ciph), SSL_CIPHER_get_name(ciph)); in print_details()
|
H A D | sslapitest.c | 8831 EVP_CIPHER *ciph = NULL; in test_multiblock_write() local 8837 ciph = EVP_CIPHER_fetch(libctx, fetchable_ciphers[test_index], ""); in test_multiblock_write() 8838 if (ciph == NULL) { in test_multiblock_write() 8842 EVP_CIPHER_free(ciph); in test_multiblock_write()
|
/freebsd/usr.sbin/fwcontrol/ |
H A D | fwmpegts.c | 151 struct ciphdr *ciph; in mpegtsrecv() local 210 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ in mpegtsrecv() 211 if (ciph->fmt != CIP_FMT_MPEG) in mpegtsrecv() 212 errx(1, "unknown format 0x%x", ciph->fmt); in mpegtsrecv() 213 if (ciph->fn != 3) { in mpegtsrecv() 216 ciph->fn); in mpegtsrecv() 218 ptr = (uint32_t *) (ciph + 1); /* skip cip header */ in mpegtsrecv() 231 ciph->len, ciph->len * 4); in mpegtsrecv() 234 ciph->fn, (1<<ciph->fn) ); in mpegtsrecv() 235 fprintf(stderr, "QCP (CIP header): %d\n", ciph->qpc ); in mpegtsrecv() [all …]
|
H A D | fwdv.c | 96 struct ciphdr *ciph; in dvrecv() local 171 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ in dvrecv() 172 if (ciph->fmt != CIP_FMT_DVCR) in dvrecv() 173 errx(1, "unknown format 0x%x", ciph->fmt); in dvrecv() 174 ptr = (u_int32_t *) (ciph + 1); /* skip cip header */ in dvrecv() 176 if (ciph->fdf.dv.cyc != 0xffff && k == 0) { in dvrecv() 177 fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc)); in dvrecv() 184 (char *)dv < (char *)(ptr + ciph->len); in dvrecv() 192 system = ciph->fdf.dv.fs; in dvrecv() 263 struct ciphdr *ciph; in dvsend() local [all …]
|
H A D | fwcontrol.c | 673 struct ciphdr *ciph; in detect_recv_fn() local 710 ciph = (struct ciphdr *)(ptr + 1); in detect_recv_fn() 712 switch(ciph->fmt) { in detect_recv_fn() 722 errx(1, "Unsupported format for receiving: fmt=0x%x", ciph->fmt); in detect_recv_fn()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | pmeth_lib.c | 170 && ctx->op.ciph.algctx != NULL) in evp_pkey_ctx_state() 400 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) in evp_pkey_ctx_free_old_ops() 401 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); in evp_pkey_ctx_free_old_ops() 402 EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher); in evp_pkey_ctx_free_old_ops() 403 ctx->op.ciph.algctx = NULL; in evp_pkey_ctx_free_old_ops() 404 ctx->op.ciph.cipher = NULL; in evp_pkey_ctx_free_old_ops() 547 if (pctx->op.ciph.cipher != NULL) { in EVP_PKEY_CTX_dup() 548 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup() 549 if (!EVP_ASYM_CIPHER_up_ref(rctx->op.ciph.cipher)) in EVP_PKEY_CTX_dup() 552 if (pctx->op.ciph.algctx != NULL) { in EVP_PKEY_CTX_dup() [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 | 199 void (*fn) (const EVP_CIPHER *ciph, 212 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all() argument 226 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, in EVP_CIPHER_do_all_sorted() argument 242 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,
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_enc.c | 226 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, in CMS_EncryptedData_set1_key() argument 235 if (ciph) { in CMS_EncryptedData_set1_key() 248 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen, in CMS_EncryptedData_set1_key()
|
/freebsd/crypto/openssl/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 | 946 const SSL_CIPHER *ciph = SSL_get_current_cipher(s); in DTLS_get_data_mtu() local 949 if (ciph == NULL) in DTLS_get_data_mtu() 952 if (!ssl_cipher_get_overhead(ciph, &mac_overhead, &int_overhead, in DTLS_get_data_mtu()
|
H A D | t1_enc.c | 102 const EVP_CIPHER *ciph, in tls_provider_set_tls_params() argument 113 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0 in tls_provider_set_tls_params()
|
H A D | ssl_lib.c | 5968 const EVP_CIPHER *ciph; in ssl_evp_cipher_fetch() local 5970 ciph = tls_get_cipher_from_engine(nid); in ssl_evp_cipher_fetch() 5971 if (ciph != NULL) in ssl_evp_cipher_fetch() 5972 return ciph; in ssl_evp_cipher_fetch() 5979 ciph = EVP_CIPHER_fetch(libctx, OBJ_nid2sn(nid), properties); in ssl_evp_cipher_fetch() 5981 return ciph; in ssl_evp_cipher_fetch()
|
H A D | ssl_local.h | 2829 const EVP_CIPHER *ciph,
|
/freebsd/crypto/openssl/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()
|
/freebsd/crypto/openssl/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()
|
/freebsd/crypto/openssl/include/openssl/ |
H A D | evp.h | 1176 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, 1180 (const EVP_CIPHER *ciph, const char *from, 1186 void EVP_MD_do_all(void (*fn) (const EVP_MD *ciph, 1190 (const EVP_MD *ciph, const char *from, 1874 const OSSL_PARAM *EVP_ASYM_CIPHER_gettable_ctx_params(const EVP_ASYM_CIPHER *ciph); 1875 const OSSL_PARAM *EVP_ASYM_CIPHER_settable_ctx_params(const EVP_ASYM_CIPHER *ciph);
|
H A D | cms.h.in | 161 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
|
H A D | cms.h | 259 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | evp.h | 74 } ciph; member
|