Home
last modified time | relevance | path

Searched refs:EVP_CIPHER_CTX_ctrl (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/crypto/openssh/
H A Dcipher.c301 !EVP_CIPHER_CTX_ctrl(cc->evp, EVP_CTRL_GCM_SET_IV_FIXED, in cipher_init()
372 if (!EVP_CIPHER_CTX_ctrl(cc->evp, EVP_CTRL_GCM_IV_GEN, in cipher_crypt()
377 !EVP_CIPHER_CTX_ctrl(cc->evp, EVP_CTRL_GCM_SET_TAG, in cipher_crypt()
398 !EVP_CIPHER_CTX_ctrl(cc->evp, EVP_CTRL_GCM_GET_TAG, in cipher_crypt()
468 if (!EVP_CIPHER_CTX_ctrl(cc->evp, EVP_CTRL_GCM_IV_GEN, in cipher_get_keyiv()
498 if (!EVP_CIPHER_CTX_ctrl(cc->evp, in cipher_set_keyiv()
/freebsd/crypto/openssl/doc/man3/
H A DEVP_rc5_32_12_16_cbc.pod41 L<EVP_CIPHER_CTX_ctrl(3)>).
45 =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_SET_RC5_ROUNDS, rounds, NULL)
50 =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GET_RC5_ROUNDS, 0, &rounds)
H A DEVP_EncryptInit.pod24 EVP_CIPHER_CTX_ctrl,
157 int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int cmd, int p1, void *p2);
284 =item EVP_CIPHER_CTX_ctrl()
292 EVP_CIPHER_CTX_ctrl() must be called after EVP_CipherInit_ex2(). Other restrictions
992 The Mappings from EVP_CIPHER_CTX_ctrl() identifiers to PARAMETERS are listed
995 EVP_CIPHER_CTX_ctrl() can be used to send the following standard controls:
1302 =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, ivlen, NULL)
1310 =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, tag)
1319 =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, taglen, tag)
1354 =item EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, taglen, tag)
[all …]
H A DEVP_rc2_cbc.pod49 EVP_rc2_cbc(), EVP_CIPHER_CTX_set_key_length() and EVP_CIPHER_CTX_ctrl()
/freebsd/crypto/openssl/ssl/record/
H A Dssl3_record_tls13.c100 if (sending && EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, taglen, in tls13_enc()
147 || (!sending && EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in tls13_enc()
184 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, in tls13_enc()
H A Dssl3_record.c1113 pad = EVP_CIPHER_CTX_ctrl(ds, EVP_CTRL_AEAD_TLS1_AAD, in tls1_enc()
1158 if (EVP_CIPHER_CTX_ctrl(ds, EVP_CTRL_SET_PIPELINE_OUTPUT_BUFS, in tls1_enc()
1167 if (EVP_CIPHER_CTX_ctrl(ds, EVP_CTRL_SET_PIPELINE_INPUT_BUFS, in tls1_enc()
1169 || EVP_CIPHER_CTX_ctrl(ds, EVP_CTRL_SET_PIPELINE_INPUT_LENS, in tls1_enc()
1190 if (EVP_CIPHER_CTX_ctrl(ds, EVP_CTRL_TLSTREE, decrement_seq, seq) <= 0) { in tls1_enc()
H A Drec_layer_s3.c469 packlen = EVP_CIPHER_CTX_ctrl(s->enc_write_ctx, in ssl3_write_bytes()
521 packleni = EVP_CIPHER_CTX_ctrl(s->enc_write_ctx, in ssl3_write_bytes()
535 if (EVP_CIPHER_CTX_ctrl(s->enc_write_ctx, in ssl3_write_bytes()
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_decr.c49 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_TLS1_AAD, 0, &mac_len) < 0) { in PKCS12_pbe_crypt_ex()
62 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in PKCS12_pbe_crypt_ex()
95 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, in PKCS12_pbe_crypt_ex()
/freebsd/crypto/openssl/crypto/evp/
H A De_rc2.c104 if (EVP_CIPHER_CTX_ctrl(e, EVP_CTRL_GET_RC2_KEY_BITS, 0, &i) <= 0) in rc2_meth_to_magic()
149 if (EVP_CIPHER_CTX_ctrl(c, EVP_CTRL_SET_RC2_KEY_BITS, key_bits, in rc2_get_asn1_type_and_iv()
H A Devp_enc.c357 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_INIT, 0, NULL) <= 0) { in evp_cipher_init_internal()
1063 return EVP_CIPHER_CTX_ctrl(c, EVP_CTRL_SET_KEY_LENGTH, keylen, NULL); in EVP_CIPHER_CTX_set_key_length()
1093 int EVP_CIPHER_CTX_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) in EVP_CIPHER_CTX_ctrl() function
1392 return EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_RAND_KEY, 0, key); in EVP_CIPHER_CTX_rand_key()
/freebsd/crypto/openssl/test/
H A Daesgcmtest.c58 && TEST_true(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, 16, in do_encrypt()
84 && TEST_true(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in do_decrypt()
H A Dacvp_test.c737 || !TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, iv_len, in aes_ccm_enc_dec()
739 || !TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, tag_len, in aes_ccm_enc_dec()
756 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, in aes_ccm_enc_dec()
824 || !TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, iv_len, in aes_gcm_enc_dec()
829 if (!TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, tag_len, in aes_gcm_enc_dec()
853 || !TEST_int_gt(EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, in aes_gcm_enc_dec()
H A Devp_test.c761 if (EVP_CIPHER_CTX_ctrl(ctx_base, EVP_CTRL_AEAD_SET_IVLEN, in cipher_test_enc()
785 if (EVP_CIPHER_CTX_ctrl(ctx_base, EVP_CTRL_AEAD_SET_TAG, in cipher_test_enc()
794 if (EVP_CIPHER_CTX_ctrl(ctx_base, EVP_CTRL_SET_RC5_ROUNDS, rounds, NULL) <= 0) { in cipher_test_enc()
807 if (EVP_CIPHER_CTX_ctrl(ctx_base, EVP_CTRL_SET_RC2_KEY_BITS, bits, NULL) <= 0) { in cipher_test_enc()
850 && EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_MAC_KEY, in cipher_test_enc()
928 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in cipher_test_enc()
991 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, in cipher_test_enc()
/freebsd/crypto/openssl/ssl/
H A Dt1_enc.c355 || EVP_CIPHER_CTX_ctrl(dd, EVP_CTRL_GCM_SET_IV_FIXED, (int)k, in tls1_change_cipher_state()
368 || (EVP_CIPHER_CTX_ctrl(dd, EVP_CTRL_AEAD_SET_IVLEN, 12, NULL) <= 0) in tls1_change_cipher_state()
369 || (EVP_CIPHER_CTX_ctrl(dd, EVP_CTRL_AEAD_SET_TAG, taglen, NULL) <= 0) in tls1_change_cipher_state()
370 || (EVP_CIPHER_CTX_ctrl(dd, EVP_CTRL_CCM_SET_IV_FIXED, (int)k, iv) <= 0) in tls1_change_cipher_state()
384 && EVP_CIPHER_CTX_ctrl(dd, EVP_CTRL_AEAD_SET_MAC_KEY, in tls1_change_cipher_state()
H A Dtls13_enc.c392 || EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_IVLEN, ivlen, NULL) <= 0 in derive_secret_key_and_iv()
393 || (taglen != 0 && EVP_CIPHER_CTX_ctrl(ciph_ctx, EVP_CTRL_AEAD_SET_TAG, in derive_secret_key_and_iv()
/freebsd/contrib/libfido2/src/
H A Daes256.c156 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, 16, in aes256_gcm()
171 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_GCM_GET_TAG, 16, in aes256_gcm()
/freebsd/contrib/libfido2/fuzz/
H A Dwrapped.sym38 EVP_CIPHER_CTX_ctrl
/freebsd/crypto/openssl/apps/
H A Dspeed.c783 if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, in EVP_Update_loop_aead_enc()
793 if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in EVP_Update_loop_aead_enc()
854 if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, in EVP_Update_loop_aead_dec()
865 if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in EVP_Update_loop_aead_dec()
887 if (!EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in EVP_Update_loop_aead_dec()
2387 EVP_CIPHER_CTX_ctrl(loopargs[k].ctx, in speed_main()
2393 if (!EVP_CIPHER_CTX_ctrl(loopargs[k].ctx, in speed_main()
2404 if (!EVP_CIPHER_CTX_ctrl(loopargs[k].ctx, in speed_main()
2456 if (!EVP_CIPHER_CTX_ctrl(loopargs[k].ctx, in speed_main()
2483 EVP_CIPHER_CTX_ctrl(loopargs[k].ctx, in speed_main()
[all …]
/freebsd/crypto/openssl/providers/fips/
H A Dself_test_kats.c75 && (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, t->iv_len, NULL) > 0) in cipher_init()
77 || EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, t->tag_len, in cipher_init()
120 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, t->tag_len, in self_test_cipher()
/freebsd/tools/tools/crypto/
H A Dcryptocheck.c1133 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, alg->tag_len, in openssl_gmac()
1336 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, iv_len, NULL) != in openssl_aead_encrypt()
1376 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, alg->tag_len, in openssl_aead_encrypt()
1421 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, alg->tag_len, in openssl_aead_decrypt()
1456 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, iv_len, NULL) != in openssl_ccm_encrypt()
1463 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, AES_CBC_MAC_HASH_LEN, in openssl_ccm_encrypt()
1513 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, AES_CBC_MAC_HASH_LEN, in openssl_ccm_encrypt()
/freebsd/crypto/openssl/providers/implementations/macs/
H A Dgmac_prov.c238 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_IVLEN, in gmac_set_ctx_params()
/freebsd/crypto/openssl/crypto/asn1/
H A Dp5_pbev2.c94 EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_PBE_PRF_NID, 0, &prf_nid) <= 0) {
/freebsd/crypto/openssl/crypto/cms/
H A Dcms_enc.c109 && EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_SET_TAG, in ossl_cms_EncryptedContent_init_bio()
H A Dcms_env.c1124 && EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_PROCESS_UNPROTECTED, 0, in cms_EnvelopedData_Decryption_init_bio()
1252 if (EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_PROCESS_UNPROTECTED, in ossl_cms_EnvelopedData_final()
1281 || EVP_CIPHER_CTX_ctrl(ctx, EVP_CTRL_AEAD_GET_TAG, taglen, in ossl_cms_AuthEnvelopedData_final()
/freebsd/crypto/heimdal/doc/doxyout/hcrypto/
H A Dmanpages50 hcrypto/man/man3/EVP_CIPHER_CTX_ctrl.3

12