Home
last modified time | relevance | path

Searched refs:ciph (Results 1 – 25 of 30) sorted by relevance

12

/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dcipher_overhead_test.c14 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 Dtls13encryptiontest.c310 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 Dthreadstest.c313 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 Dssl_old_test.c769 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()
/netbsd-src/usr.sbin/fwctl/
H A Dfwmpegts.c143 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 Dfwdv.c97 struct ciphdr *ciph; in dvrecv() local
179 ciph = (struct ciphdr *)(ptr + 1); /* skip iso header */ in dvrecv()
180 if (ciph->fmt != CIP_FMT_DVCR) in dvrecv()
182 __func__, ciph->fmt); in dvrecv()
183 ptr = (uint32_t *) (ciph + 1); /* skip cip header */ in dvrecv()
185 if (ciph->fdf.dv.cyc != 0xffff && k == 0) in dvrecv()
186 fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc)); in dvrecv()
192 (char *)dv < (char *)(ptr + ciph->len); in dvrecv()
200 lsystem = ciph->fdf.dv.fs; in dvrecv()
280 struct ciphdr *ciph; in dvsend() local
[all …]
H A Dfwcontrol.c662 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-src/crypto/external/bsd/openssl.old/dist/test/
H A Dcipher_overhead_test.c27 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 Dtls13encryptiontest.c321 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-src/crypto/external/bsd/openssl.old/dist/crypto/cms/
H A Dcms_enc.c27 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 Dcms_env.c378 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-src/crypto/external/bsd/openssl/dist/crypto/evp/
H A Dasymcipher.c144 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 Devp_local.h337 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-src/crypto/external/bsd/openssl.old/dist/crypto/evp/
H A Dnames.c99 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-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/
H A Drand-fortuna.c114 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-src/crypto/external/bsd/openssl/dist/crypto/cms/
H A Dcms_enc.c226 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()
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dtls13_enc.c362 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 Dd1_lib.c936 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-src/crypto/external/bsd/openssl/dist/ssl/
H A Dtls13_enc.c334 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 Dd1_lib.c946 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 Dt1_enc.c138 const EVP_CIPHER *ciph, in tls_provider_set_tls_params() argument
149 if ((EVP_CIPHER_get_flags(ciph) & EVP_CIPH_FLAG_AEAD_CIPHER) == 0 in tls_provider_set_tls_params()
/netbsd-src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/
H A Dcipher_aes_ocb.c163 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-src/crypto/external/bsd/openssl/dist/engines/
H A De_dasync.c630 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-src/crypto/external/bsd/openssl/dist/include/openssl/
H A Devp.h1176 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);
/netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/
H A Devp.h971 void EVP_CIPHER_do_all(void (*fn) (const EVP_CIPHER *ciph,
975 (const EVP_CIPHER *ciph, const char *from,
978 void EVP_MD_do_all(void (*fn) (const EVP_MD *ciph,
982 (const EVP_MD *ciph, const char *from,

12