Home
last modified time | relevance | path

Searched refs:evp_cipher (Results 1 – 25 of 104) sorted by relevance

12345

/dports/security/tinc-devel/tinc-1.1pre18/src/openssl/
H A Dcipher.c35 static cipher_t *cipher_open(const EVP_CIPHER *evp_cipher) { in cipher_open() argument
37 cipher->cipher = evp_cipher; in cipher_open()
48 const EVP_CIPHER *evp_cipher = EVP_get_cipherbyname(name); in cipher_open_by_name() local
50 if(!evp_cipher) { in cipher_open_by_name()
55 return cipher_open(evp_cipher); in cipher_open_by_name()
59 const EVP_CIPHER *evp_cipher = EVP_get_cipherbynid(nid); in cipher_open_by_nid() local
61 if(!evp_cipher) { in cipher_open_by_nid()
66 return cipher_open(evp_cipher); in cipher_open_by_nid()
/dports/net/libsignal-protocol-c/libsignal-protocol-c-2.3.3/tests/
H A Dtest_common_openssl.c208 const EVP_CIPHER *evp_cipher = aes_cipher(cipher, key_len); in test_encrypt() local
209 if(!evp_cipher) { in test_encrypt()
219 if(plaintext_len > INT_MAX - EVP_CIPHER_block_size(evp_cipher)) { in test_encrypt()
239 result = EVP_EncryptInit_ex(ctx, evp_cipher, 0, key, iv); in test_encrypt()
255 out_buf = malloc(sizeof(uint8_t) * (plaintext_len + EVP_CIPHER_block_size(evp_cipher))); in test_encrypt()
307 const EVP_CIPHER *evp_cipher = aes_cipher(cipher, key_len); in test_decrypt() local
308 if(!evp_cipher) { in test_decrypt()
318 if(ciphertext_len > INT_MAX - EVP_CIPHER_block_size(evp_cipher)) { in test_decrypt()
338 result = EVP_DecryptInit_ex(ctx, evp_cipher, 0, key, iv); in test_decrypt()
354 out_buf = malloc(sizeof(uint8_t) * (ciphertext_len + EVP_CIPHER_block_size(evp_cipher))); in test_decrypt()
/dports/net-im/dino/dino-0.2.2/plugins/signal-protocol/libsignal-protocol-c/tests/
H A Dtest_common_openssl.c208 const EVP_CIPHER *evp_cipher = aes_cipher(cipher, key_len); in test_encrypt() local
209 if(!evp_cipher) { in test_encrypt()
219 if(plaintext_len > INT_MAX - EVP_CIPHER_block_size(evp_cipher)) { in test_encrypt()
239 result = EVP_EncryptInit_ex(ctx, evp_cipher, 0, key, iv); in test_encrypt()
255 out_buf = malloc(sizeof(uint8_t) * (plaintext_len + EVP_CIPHER_block_size(evp_cipher))); in test_encrypt()
307 const EVP_CIPHER *evp_cipher = aes_cipher(cipher, key_len); in test_decrypt() local
308 if(!evp_cipher) { in test_decrypt()
318 if(ciphertext_len > INT_MAX - EVP_CIPHER_block_size(evp_cipher)) { in test_decrypt()
338 result = EVP_DecryptInit_ex(ctx, evp_cipher, 0, key, iv); in test_decrypt()
354 out_buf = malloc(sizeof(uint8_t) * (ciphertext_len + EVP_CIPHER_block_size(evp_cipher))); in test_decrypt()
/dports/databases/sqlcipher/sqlcipher-3.4.2/src/
H A Dcrypto_openssl.c43 EVP_CIPHER *evp_cipher; member
228 EVP_CipherInit_ex(ectx, ((openssl_ctx *)ctx)->evp_cipher, NULL, NULL, NULL, mode); in sqlcipher_openssl_cipher()
245 o_ctx->evp_cipher = cipher; in sqlcipher_openssl_set_cipher()
251 return EVP_CIPHER_name(((openssl_ctx *)ctx)->evp_cipher); in sqlcipher_openssl_get_cipher()
255 return EVP_CIPHER_key_length(((openssl_ctx *)ctx)->evp_cipher); in sqlcipher_openssl_get_key_sz()
259 return EVP_CIPHER_iv_length(((openssl_ctx *)ctx)->evp_cipher); in sqlcipher_openssl_get_iv_sz()
263 return EVP_CIPHER_block_size(((openssl_ctx *)ctx)->evp_cipher); in sqlcipher_openssl_get_block_sz()
276 return ((openssl_ctx *)c1)->evp_cipher == ((openssl_ctx *)c2)->evp_cipher; in sqlcipher_openssl_ctx_cmp()
/dports/security/gnutls/gnutls-3.6.16/tests/slow/
H A Dcipher-openssl-compat.c35 const EVP_CIPHER *evp_cipher; in cipher_test() local
42 evp_cipher = EVP_get_cipherbyname(ocipher); in cipher_test()
43 if (!evp_cipher) { in cipher_test()
109 assert(EVP_CipherInit_ex(ctx, evp_cipher, 0, 0, 0, 0) > in cipher_test()
146 assert(EVP_CipherInit_ex(ctx, evp_cipher, NULL, key, nonce, 0) > in cipher_test()
/dports/security/libressl-static/libressl-3.3.5/crypto/pkcs7/
H A Dpk7_doit.c254 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
296 if (evp_cipher == NULL) { in PKCS7_dataInit()
305 if (evp_cipher == NULL) { in PKCS7_dataInit()
328 if (evp_cipher != NULL) { in PKCS7_dataInit()
339 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
340 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
427 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
460 if (evp_cipher == NULL) { in PKCS7_dataDecode()
470 if (evp_cipher == NULL) { in PKCS7_dataDecode()
505 if (evp_cipher != NULL) { in PKCS7_dataDecode()
[all …]
/dports/security/libressl/libressl-3.4.3/crypto/pkcs7/
H A Dpk7_doit.c254 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
296 if (evp_cipher == NULL) { in PKCS7_dataInit()
305 if (evp_cipher == NULL) { in PKCS7_dataInit()
328 if (evp_cipher != NULL) { in PKCS7_dataInit()
339 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
340 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
427 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
460 if (evp_cipher == NULL) { in PKCS7_dataDecode()
470 if (evp_cipher == NULL) { in PKCS7_dataDecode()
505 if (evp_cipher != NULL) { in PKCS7_dataDecode()
[all …]
/dports/emulators/citra/citra-ac98458e0/externals/libressl/crypto/pkcs7/
H A Dpk7_doit.c254 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
296 if (evp_cipher == NULL) { in PKCS7_dataInit()
305 if (evp_cipher == NULL) { in PKCS7_dataInit()
328 if (evp_cipher != NULL) { in PKCS7_dataInit()
339 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
340 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
427 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
460 if (evp_cipher == NULL) { in PKCS7_dataDecode()
470 if (evp_cipher == NULL) { in PKCS7_dataDecode()
505 if (evp_cipher != NULL) { in PKCS7_dataDecode()
[all …]
/dports/emulators/citra-qt5/citra-ac98458e0/externals/libressl/crypto/pkcs7/
H A Dpk7_doit.c254 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
296 if (evp_cipher == NULL) { in PKCS7_dataInit()
305 if (evp_cipher == NULL) { in PKCS7_dataInit()
328 if (evp_cipher != NULL) { in PKCS7_dataInit()
339 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
340 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
427 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
460 if (evp_cipher == NULL) { in PKCS7_dataDecode()
470 if (evp_cipher == NULL) { in PKCS7_dataDecode()
505 if (evp_cipher != NULL) { in PKCS7_dataDecode()
[all …]
/dports/www/obhttpd/libressl-3.4.1/crypto/pkcs7/
H A Dpk7_doit.c254 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
296 if (evp_cipher == NULL) { in PKCS7_dataInit()
305 if (evp_cipher == NULL) { in PKCS7_dataInit()
328 if (evp_cipher != NULL) { in PKCS7_dataInit()
339 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
340 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
427 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
460 if (evp_cipher == NULL) { in PKCS7_dataDecode()
470 if (evp_cipher == NULL) { in PKCS7_dataDecode()
505 if (evp_cipher != NULL) { in PKCS7_dataDecode()
[all …]
/dports/security/vaultwarden/vaultwarden-1.23.1/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/crypto/pkcs7/
H A Dpk7_doit.c256 if (evp_cipher == NULL) { in PKCS7_dataInit()
265 if (evp_cipher == NULL) { in PKCS7_dataInit()
288 if (evp_cipher != NULL) { in PKCS7_dataInit()
314 cipher = evp_cipher; in PKCS7_dataInit()
399 EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
456 if (evp_cipher != NULL) in PKCS7_dataDecode()
457 cipher = evp_cipher; in PKCS7_dataDecode()
477 if (evp_cipher != NULL) in PKCS7_dataDecode()
478 cipher = evp_cipher; in PKCS7_dataDecode()
655 EVP_CIPHER_free(evp_cipher); in PKCS7_dataDecode()
[all …]
/dports/security/arti/arti-9d0ede26801cdb182daa85c3eb5f0058dc178eb6/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/crypto/pkcs7/
H A Dpk7_doit.c256 if (evp_cipher == NULL) { in PKCS7_dataInit()
265 if (evp_cipher == NULL) { in PKCS7_dataInit()
288 if (evp_cipher != NULL) { in PKCS7_dataInit()
314 cipher = evp_cipher; in PKCS7_dataInit()
399 EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
456 if (evp_cipher != NULL) in PKCS7_dataDecode()
457 cipher = evp_cipher; in PKCS7_dataDecode()
477 if (evp_cipher != NULL) in PKCS7_dataDecode()
478 cipher = evp_cipher; in PKCS7_dataDecode()
655 EVP_CIPHER_free(evp_cipher); in PKCS7_dataDecode()
[all …]
/dports/security/acmed/acmed-0.18.0/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/crypto/pkcs7/
H A Dpk7_doit.c256 if (evp_cipher == NULL) { in PKCS7_dataInit()
265 if (evp_cipher == NULL) { in PKCS7_dataInit()
288 if (evp_cipher != NULL) { in PKCS7_dataInit()
314 cipher = evp_cipher; in PKCS7_dataInit()
399 EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
456 if (evp_cipher != NULL) in PKCS7_dataDecode()
457 cipher = evp_cipher; in PKCS7_dataDecode()
477 if (evp_cipher != NULL) in PKCS7_dataDecode()
478 cipher = evp_cipher; in PKCS7_dataDecode()
655 EVP_CIPHER_free(evp_cipher); in PKCS7_dataDecode()
[all …]
/dports/textproc/mdbook-linkcheck/mdbook-linkcheck-0.7.6/cargo-crates/openssl-src-300.0.2+3.0.0/openssl/crypto/pkcs7/
H A Dpk7_doit.c256 if (evp_cipher == NULL) { in PKCS7_dataInit()
265 if (evp_cipher == NULL) { in PKCS7_dataInit()
288 if (evp_cipher != NULL) { in PKCS7_dataInit()
314 cipher = evp_cipher; in PKCS7_dataInit()
399 EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
456 if (evp_cipher != NULL) in PKCS7_dataDecode()
457 cipher = evp_cipher; in PKCS7_dataDecode()
477 if (evp_cipher != NULL) in PKCS7_dataDecode()
478 cipher = evp_cipher; in PKCS7_dataDecode()
655 EVP_CIPHER_free(evp_cipher); in PKCS7_dataDecode()
[all …]
/dports/security/openssl-quictls/openssl-7f2ab56a2b842b8e6fefc7b9d20eb5ff9c6ef151/crypto/pkcs7/
H A Dpk7_doit.c256 if (evp_cipher == NULL) { in PKCS7_dataInit()
265 if (evp_cipher == NULL) { in PKCS7_dataInit()
288 if (evp_cipher != NULL) { in PKCS7_dataInit()
314 cipher = evp_cipher; in PKCS7_dataInit()
399 EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
456 if (evp_cipher != NULL) in PKCS7_dataDecode()
457 cipher = evp_cipher; in PKCS7_dataDecode()
477 if (evp_cipher != NULL) in PKCS7_dataDecode()
478 cipher = evp_cipher; in PKCS7_dataDecode()
655 EVP_CIPHER_free(evp_cipher); in PKCS7_dataDecode()
[all …]
/dports/security/openssl-devel/openssl-3.0.2/crypto/pkcs7/
H A Dpk7_doit.c256 if (evp_cipher == NULL) { in PKCS7_dataInit()
265 if (evp_cipher == NULL) { in PKCS7_dataInit()
288 if (evp_cipher != NULL) { in PKCS7_dataInit()
314 cipher = evp_cipher; in PKCS7_dataInit()
399 EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
456 if (evp_cipher != NULL) in PKCS7_dataDecode()
457 cipher = evp_cipher; in PKCS7_dataDecode()
477 if (evp_cipher != NULL) in PKCS7_dataDecode()
478 cipher = evp_cipher; in PKCS7_dataDecode()
655 EVP_CIPHER_free(evp_cipher); in PKCS7_dataDecode()
[all …]
/dports/net/p5-Socket-Class/Socket-Class-2.258/xs/sc_ssl/openssl/source/crypto/pkcs7/
H A Dpk7_doit.c146 const EVP_CIPHER *evp_cipher=NULL; in PKCS7_dataInit() local
168 if (evp_cipher == NULL) in PKCS7_dataInit()
178 evp_cipher=p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
179 if (evp_cipher == NULL) in PKCS7_dataInit()
202 if (evp_cipher != NULL) in PKCS7_dataInit()
217 keylen=EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
218 ivlen=EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
340 const EVP_CIPHER *evp_cipher=NULL; in PKCS7_dataDecode() local
363 if (evp_cipher == NULL) in PKCS7_dataDecode()
375 if (evp_cipher == NULL) in PKCS7_dataDecode()
[all …]
/dports/sysutils/shim/shim-0.9/Cryptlib/OpenSSL/crypto/pkcs7/
H A Dpk7_doit.c142 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
182 if (evp_cipher == NULL) { in PKCS7_dataInit()
190 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
191 if (evp_cipher == NULL) { in PKCS7_dataInit()
212 if (evp_cipher != NULL) { in PKCS7_dataInit()
225 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
226 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
340 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
371 if (evp_cipher == NULL) { in PKCS7_dataDecode()
382 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]
/dports/emulators/qemu60/qemu-6.0.0/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs7/
H A Dpk7_doit.c201 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
240 if (evp_cipher == NULL) { in PKCS7_dataInit()
248 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
249 if (evp_cipher == NULL) { in PKCS7_dataInit()
272 if (evp_cipher != NULL) { in PKCS7_dataInit()
283 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
366 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
411 if (evp_cipher == NULL) { in PKCS7_dataDecode()
423 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]
/dports/devel/cargo-c/cargo-c-0.9.6+cargo-0.58/cargo-crates/openssl-src-111.16.0+1.1.1l/openssl/crypto/pkcs7/
H A Dpk7_doit.c201 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
240 if (evp_cipher == NULL) { in PKCS7_dataInit()
248 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
249 if (evp_cipher == NULL) { in PKCS7_dataInit()
272 if (evp_cipher != NULL) { in PKCS7_dataInit()
283 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
366 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
411 if (evp_cipher == NULL) { in PKCS7_dataDecode()
423 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]
/dports/emulators/qemu/qemu-6.2.0/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs7/
H A Dpk7_doit.c201 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
240 if (evp_cipher == NULL) { in PKCS7_dataInit()
248 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
249 if (evp_cipher == NULL) { in PKCS7_dataInit()
272 if (evp_cipher != NULL) { in PKCS7_dataInit()
283 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
366 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
411 if (evp_cipher == NULL) { in PKCS7_dataDecode()
423 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]
/dports/sysutils/vector/vector-0.10.0/cargo-crates/openssl-src-111.9.0+1.1.1g/openssl/crypto/pkcs7/
H A Dpk7_doit.c201 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
240 if (evp_cipher == NULL) { in PKCS7_dataInit()
248 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
249 if (evp_cipher == NULL) { in PKCS7_dataInit()
272 if (evp_cipher != NULL) { in PKCS7_dataInit()
283 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
366 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
411 if (evp_cipher == NULL) { in PKCS7_dataDecode()
423 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]
/dports/emulators/qemu5/qemu-5.2.0/roms/edk2/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs7/
H A Dpk7_doit.c201 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
240 if (evp_cipher == NULL) { in PKCS7_dataInit()
248 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
249 if (evp_cipher == NULL) { in PKCS7_dataInit()
272 if (evp_cipher != NULL) { in PKCS7_dataInit()
283 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
366 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
411 if (evp_cipher == NULL) { in PKCS7_dataDecode()
423 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]
/dports/sysutils/uefi-edk2-qemu/edk2-edk2-stable201911/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs7/
H A Dpk7_doit.c201 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
240 if (evp_cipher == NULL) { in PKCS7_dataInit()
248 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
249 if (evp_cipher == NULL) { in PKCS7_dataInit()
272 if (evp_cipher != NULL) { in PKCS7_dataInit()
283 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
366 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
411 if (evp_cipher == NULL) { in PKCS7_dataDecode()
423 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]
/dports/sysutils/uefi-edk2-bhyve/edk2-edk2-stable202102/CryptoPkg/Library/OpensslLib/openssl/crypto/pkcs7/
H A Dpk7_doit.c201 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataInit() local
240 if (evp_cipher == NULL) { in PKCS7_dataInit()
248 evp_cipher = p7->d.enveloped->enc_data->cipher; in PKCS7_dataInit()
249 if (evp_cipher == NULL) { in PKCS7_dataInit()
272 if (evp_cipher != NULL) { in PKCS7_dataInit()
283 keylen = EVP_CIPHER_key_length(evp_cipher); in PKCS7_dataInit()
284 ivlen = EVP_CIPHER_iv_length(evp_cipher); in PKCS7_dataInit()
366 const EVP_CIPHER *evp_cipher = NULL; in PKCS7_dataDecode() local
411 if (evp_cipher == NULL) { in PKCS7_dataDecode()
423 if (evp_cipher == NULL) { in PKCS7_dataDecode()
[all …]

12345