/freebsd-current/crypto/openssl/test/ |
H A D | cipher_overhead_test.c | 14 static int cipher_enabled(const SSL_CIPHER *ciph) argument 20 if ((ciph->algorithm_mac & SSL_AEAD) != 0) 23 if (ciph->algorithm_enc != SSL_eNULL 24 && EVP_get_cipherbynid(SSL_CIPHER_get_cipher_nid(ciph)) == NULL) 27 if (EVP_get_digestbynid(SSL_CIPHER_get_digest_nid(ciph)) == NULL) 36 const SSL_CIPHER *ciph; local 40 ciph = ssl3_get_cipher(i); 41 if (!ciph->min_dtls) 43 if (!cipher_enabled(ciph)) { 44 TEST_skip("Skipping disabled cipher %s", ciph [all...] |
H A D | tls13encryptiontest.c | 310 const EVP_CIPHER *ciph = EVP_aes_128_gcm(); local 350 ivlen = EVP_CIPHER_get_iv_length(ciph); 363 if (EVP_CipherInit_ex(s->enc_write_ctx, ciph, NULL, key, NULL, 1) <= 0 364 || EVP_CipherInit_ex(s->enc_read_ctx, ciph, NULL, key, NULL, 0)
|
H A D | threadstest.c | 313 EVP_CIPHER *ciph = EVP_CIPHER_fetch(multi_libctx, "AES-128-CBC", NULL); local 337 || !TEST_ptr(ciph)) 348 if (!TEST_true(EVP_EncryptInit_ex(cipherctx, ciph, NULL, key, iv)) 370 EVP_CIPHER_free(ciph);
|
H A D | ssl_old_test.c | 769 const SSL_CIPHER *ciph; local 774 ciph = SSL_get_current_cipher(c_ssl); 778 SSL_CIPHER_get_version(ciph), SSL_CIPHER_get_name(ciph));
|
H A D | evp_extra_test.c | 4266 EVP_CIPHER *ciph = NULL; local 4273 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, ivlen_change_ciphers[idx], 4277 if (!TEST_true(EVP_CipherInit_ex(ctx, ciph, NULL, kGCMDefaultKey, iv, 1))) 4300 EVP_CIPHER_free(ciph); 4334 EVP_CIPHER *ciph = NULL; local 4344 if (!TEST_ptr(ciph = EVP_CIPHER_fetch(testctx, keylen_change_ciphers[idx], 4348 if (!TEST_true(EVP_CipherInit_ex(ctx, ciph, NULL, key, NULL, 1))) 4371 EVP_CIPHER_free(ciph); 4631 EVP_CIPHER *ciph = EVP_CIPHER_meth_dup(EVP_aes_128_cbc()); local 4634 if (!TEST_ptr(md) || !TEST_ptr(ciph)) [all...] |
H A D | sslapitest.c | 8773 EVP_CIPHER *ciph = NULL; local 8779 ciph = EVP_CIPHER_fetch(libctx, fetchable_ciphers[test_index], ""); 8780 if (ciph == NULL) { 8784 EVP_CIPHER_free(ciph);
|
/freebsd-current/usr.sbin/fwcontrol/ |
H A D | fwmpegts.c | 151 struct ciphdr *ciph; local 210 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ 211 if (ciph->fmt != CIP_FMT_MPEG) 212 errx(1, "unknown format 0x%x", ciph->fmt); 213 if (ciph->fn != 3) { 216 ciph->fn); 218 ptr = (uint32_t *) (ciph + 1); /* skip cip header */ 231 ciph->len, ciph->len * 4); 234 ciph [all...] |
H A D | fwdv.c | 96 struct ciphdr *ciph; local 171 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ 172 if (ciph->fmt != CIP_FMT_DVCR) 173 errx(1, "unknown format 0x%x", ciph->fmt); 174 ptr = (u_int32_t *) (ciph + 1); /* skip cip header */ 176 if (ciph->fdf.dv.cyc != 0xffff && k == 0) { 177 fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc)); 184 (char *)dv < (char *)(ptr + ciph->len); 192 system = ciph->fdf.dv.fs; 263 struct ciphdr *ciph; local [all...] |
H A D | fwcontrol.c | 673 struct ciphdr *ciph; local 710 ciph = (struct ciphdr *)(ptr + 1); 712 switch(ciph->fmt) { 722 errx(1, "Unsupported format for receiving: fmt=0x%x", ciph->fmt);
|
/freebsd-current/crypto/openssl/crypto/evp/ |
H A D | asymcipher.c | 144 ctx->op.ciph.cipher = cipher; 145 ctx->op.ciph.algctx = cipher->newctx(ossl_provider_ctx(cipher->prov)); 146 if (ctx->op.ciph.algctx == NULL) { 159 ret = cipher->encrypt_init(ctx->op.ciph.algctx, provkey, params); 167 ret = cipher->decrypt_init(ctx->op.ciph.algctx, provkey, params); 243 if (ctx->op.ciph.algctx == NULL) 246 ret = ctx->op.ciph.cipher->encrypt(ctx->op.ciph.algctx, out, outlen, 285 if (ctx->op.ciph.algctx == NULL) 288 ret = ctx->op.ciph [all...] |
H A D | pmeth_lib.c | 170 && ctx->op.ciph.algctx != NULL) 400 if (ctx->op.ciph.algctx != NULL && ctx->op.ciph.cipher != NULL) 401 ctx->op.ciph.cipher->freectx(ctx->op.ciph.algctx); 402 EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher); 403 ctx->op.ciph.algctx = NULL; 404 ctx->op.ciph.cipher = NULL; 547 if (pctx->op.ciph.cipher != NULL) { 548 rctx->op.ciph [all...] |
H A D | names.c | 173 void (*fn) (const EVP_CIPHER *ciph, 186 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph, argument 200 void EVP_CIPHER_do_all_sorted(void (*fn) (const EVP_CIPHER *ciph, 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,
|
H A D | ctrl_params_translate.c | 424 && ctx->pctx->op.ciph.algctx == NULL)
|
/freebsd-current/crypto/openssl/crypto/cms/ |
H A D | cms_enc.c | 226 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph, argument 235 if (ciph) { 248 return ossl_cms_EncryptedContent_init(ec, ciph, key, keylen,
|
/freebsd-current/crypto/openssl/ssl/ |
H A D | tls13_enc.c | 334 const EVP_CIPHER *ciph, 359 keylen = EVP_CIPHER_get_key_length(ciph); 360 if (EVP_CIPHER_get_mode(ciph) == EVP_CIPH_CCM_MODE) { 381 ivlen = EVP_CIPHER_get_iv_length(ciph); 391 if (EVP_CipherInit_ex(ciph_ctx, ciph, NULL, NULL, NULL, sending) <= 0 333 derive_secret_key_and_iv(SSL *s, int sending, const EVP_MD *md, const EVP_CIPHER *ciph, const unsigned char *insecret, const unsigned char *hash, const unsigned char *label, size_t labellen, unsigned char *secret, unsigned char *key, unsigned char *iv, EVP_CIPHER_CTX *ciph_ctx) argument
|
H A D | d1_lib.c | 946 const SSL_CIPHER *ciph = SSL_get_current_cipher(s); local 949 if (ciph == NULL) 952 if (!ssl_cipher_get_overhead(ciph, &mac_overhead, &int_overhead,
|
H A D | t1_enc.c | 102 const EVP_CIPHER *ciph, 113 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0 101 tls_provider_set_tls_params(SSL *s, EVP_CIPHER_CTX *ctx, const EVP_CIPHER *ciph, const EVP_MD *md) argument
|
H A D | ssl_lib.c | 5947 const EVP_CIPHER *ciph; local 5949 ciph = tls_get_cipher_from_engine(nid); 5950 if (ciph != NULL) 5951 return ciph; 5958 ciph = EVP_CIPHER_fetch(libctx, OBJ_nid2sn(nid), properties); 5960 return ciph;
|
H A D | ssl_local.h | 2829 const EVP_CIPHER *ciph,
|
/freebsd-current/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_ocb.c | 163 size_t inl, OSSL_ocb_cipher_fn ciph) 178 if (!ciph(ctx, buf, out, AES_BLOCK_SIZE)) { 193 if (!ciph(ctx, in, out, nextblocks)) { 159 aes_ocb_block_update_internal(PROV_AES_OCB_CTX *ctx, unsigned char *buf, size_t *bufsz, unsigned char *out, size_t *outl, size_t outsize, const unsigned char *in, size_t inl, OSSL_ocb_cipher_fn ciph) argument
|
/freebsd-current/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 | 259 int CMS_EncryptedData_set1_key(CMS_ContentInfo *cms, const EVP_CIPHER *ciph,
|
/freebsd-current/crypto/openssl/engines/ |
H A D | e_dasync.c | 630 const EVP_CIPHER *ciph) 642 size_t sz = EVP_CIPHER_impl_ctx_size(ciph); 628 dasync_cipher_ctrl_helper(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr, int aeadcapable, const EVP_CIPHER *ciph) argument
|
/freebsd-current/crypto/openssl/include/crypto/ |
H A D | evp.h | 74 } ciph; member in union:evp_pkey_ctx_st::__anon4036
|