Questions tagged [evp-cipher]

The EVP cipher routines are a high level interface to certain symmetric ciphers.

The EVP cipher routines are a high level interface to certain symmetric ciphers.

More details

69 questions
0
votes
1 answer

Decrypting data, using aes gcm with the openssl evp interface in IOS

I've got the following code for decrypting the data: -(NSString*)_decrypte:(NSString*)encrypted { NSString *decrypted; NSData *enc = [[NSData alloc]initWithBase64EncodedString:encrypted options:0]; int len = (int)[enc length]; Byte…
Terry
  • 332
  • 1
  • 15
0
votes
1 answer

Go equivalent to OpenSSL EVP symmetric EVP_aes_256_cbc

I'm writing a Go script that will decrypt some legacy data that is encrypted with EVP_aes_256_cbc and an RSA public key. In C this would be something like: key_size = EVP_OpenInit(&ctx, EVP_aes_256_cbc(), evp_key, eklen, iv,…
oliverseal
  • 660
  • 8
  • 15
0
votes
1 answer

OpenSSL EVP_DecryptFinal_ex generating the garbage at the end of the output buffer

I am decrypting some data with openssl functions and i have some problems with the final result of the decryption. EVP_DecryptInit_ex(ctx, EVP_aes_192_cbc(), NULL, myKey, myVector); int iPos = 0; EVP_DecryptUpdate(ctx, decryptedData,…
Vanya
  • 411
  • 1
  • 5
  • 21
0
votes
1 answer

EVP_DecryptFinal in OpenSSL

I am working on an OpenSSL project. While using the encryption and decryption functions under EVP. EVP_Decrypt_Final is not showing an error but after every OP_SIZE there is 8 bytes of extra data coming in the decrypted file. I used the programs…
0
votes
0 answers

OpenSSL iOS thread safety issue

I'm using the following openssl…
Vamos
  • 2,701
  • 2
  • 24
  • 37
0
votes
1 answer

RSA encryption using public key from .pem file

I am using RSA_public_encrypt function to send the encrypted data to socket. I am reading the public key from .PEM file using "pkey = PEM_read_PUBKEY(f, NULL, NULL, NULL);" function. 'pkey' retrieved from above function is of type EVP_PKEY* which…
Andrew
  • 71
  • 2
  • 5
-1
votes
1 answer

Error while printing values of EVP_PKEY_CTX structure

In the tester side, I'm trying to print the value of structure evp_pkey_ctx_st but I'm getting error dereferencing pointer to incomplete type EVP_PKEY_CTX. printf("\nOpearation:%d",ctx->operation); Can anyone please guide me. Is this a feasible…
-2
votes
1 answer

Trying to decrypt data using tpm private key with openssl API's But ossl_ctx is not compatible with EVP_KEY_decrypt_init(ctx)

OSSL_STORE_CTX *ctx = OSSL_STORE_open(tpm_key_path, nullptr, nullptr, nullptr, nullptr); OSSL_STORE_INFO *info; while (!OSSL_STORE_eof(ctx)) { if ((info = OSSL_STORE_load(ctx)) == nullptr) { printf("Failed in OSSL_STORE_load : %d",res); } if ((key…
vidyadhar
  • 1
  • 1
1 2 3 4
5