Home
last modified time | relevance | path

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

12345

/third_party/openssl/test/
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 …]
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()
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()
/third_party/node/test/parallel/
Dtest-crypto-cipheriv-decipheriv.js16 let ciph = cipher.update(plaintext, 'utf8', 'hex');
17 ciph += cipher.final('hex');
20 let txt = decipher.update(ciph, 'hex', 'utf8');
32 ciph = cStream.read();
35 dStream.end(ciph);
50 let ciph = cipher.update(plaintext, 'utf8', 'buffer');
51 ciph = Buffer.concat([ciph, cipher.final('buffer')]);
54 let txt = decipher.update(ciph, 'buffer', 'utf8');
68 let ciph = cipher.update(plaintext, 'utf8', 'buffer');
69 ciph = Buffer.concat([ciph, cipher.final('buffer')]);
[all …]
Dtest-crypto-cipher-decipher.js29 let ciph = cipher.update(plaintext, 'utf8', 'hex');
31 ciph += cipher.final('hex');
34 let txt = decipher.update(ciph, 'hex', 'utf8');
45 ciph = cStream.read();
48 dStream.end(ciph);
66 let ciph = cipher.update(plaintext, 'utf8', 'base64');
67 ciph += cipher.final('base64');
70 let txt = decipher.update(ciph, 'base64', 'utf8');
199 let ciph = c.update(plaintext, 'utf16le', 'base64'); variable
200 ciph += c.final('base64');
[all …]
Dtest-crypto-binary-default.js469 let ciph = cipher.update(plaintext, 'utf8', 'hex');
471 ciph += cipher.final('hex');
474 let txt = decipher.update(ciph, 'hex', 'utf8');
492 let ciph = cipher.update(plaintext, 'utf8', 'base64');
493 ciph += cipher.final('base64');
496 let txt = decipher.update(ciph, 'base64', 'utf8');
510 let ciph = cipher.update(plaintext, 'utf8', 'hex');
511 ciph += cipher.final('hex');
514 let txt = decipher.update(ciph, 'hex', 'utf8');
528 let ciph = cipher.update(plaintext, 'utf8', 'buffer');
[all …]
/third_party/openssl/crypto/evp/
Dpmeth_lib.c170 && ctx->op.ciph.algctx != NULL) in evp_pkey_ctx_state()
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()
401 EVP_ASYM_CIPHER_free(ctx->op.ciph.cipher); 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()
546 if (pctx->op.ciph.cipher != NULL) { in EVP_PKEY_CTX_dup()
547 rctx->op.ciph.cipher = pctx->op.ciph.cipher; in EVP_PKEY_CTX_dup()
548 if (!EVP_ASYM_CIPHER_up_ref(rctx->op.ciph.cipher)) in EVP_PKEY_CTX_dup()
551 if (pctx->op.ciph.algctx != NULL) { in EVP_PKEY_CTX_dup()
[all …]
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()
Dnames.c173 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,
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,
/third_party/node/deps/openssl/openssl/crypto/evp/
Dpmeth_lib.c170 && 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 …]
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()
Dnames.c173 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,
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,
/third_party/openssl/crypto/cms/
Dcms_enc.c225 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()
/third_party/node/deps/openssl/openssl/crypto/cms/
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()
/third_party/mbedtls/programs/cipher/
Dcipher_aead_demo.c173 const char *ciph = mbedtls_cipher_info_get_name(info); in aead_info() local
182 ciph, key_bits, mode_str, (unsigned) tag_len); in aead_info()
/third_party/openssl/ssl/
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()
Dd1_lib.c929 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()
/third_party/node/deps/openssl/openssl/ssl/
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()
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()
/third_party/openssl/providers/implementations/ciphers/
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()
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/
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()
/third_party/mbedtls/tests/suites/
Dtest_suite_pk.function1106 unsigned char msg[50], ciph[64], test[50];
1118 memset(ciph, 0, sizeof(ciph));
1158 ciph, &ciph_len, sizeof(ciph),
1160 TEST_ASSERT(mbedtls_pk_decrypt(&alt, ciph, ciph_len,
1168 ciph, &ciph_len, sizeof(ciph),
/third_party/node/deps/openssl/openssl/engines/
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()

12345