Unable to encrypt private key with encryption algo AES-256-CBC using i2d_PKCS8PrivateKey_nid_bio API #24440
Unanswered
absrivas-in
asked this question in
Q&A
Replies: 1 comment 6 replies
-
Found i2d_PKCS8PrivateKey_bio api where i can pass evp aes-256-cbc cipher. const EVP_CIPHER cipher = EVP_CIPHER_fetch(libctx, "AES-256-CBC", NULL); |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version: OpenSSL 3.0.13 30
Hi,
When i am trying to decrypt the private key encrypted with Algo NID_pbe_WithSHA1And3_Key_TripleDES_CBC
using i2d_PKCS8PrivateKey_nid_bio API in fips mode i am getting error.
In non fips mode it is working fine.
Hence to allow decryption in fips mode i want to encrypt private key with AES-256-CBC mode using i2d_PKCS8PrivateKey_nid_bio API, but in documentation or openssl sample code i didn't find anything related to my requirement.
Can you please help me on this.
Beta Was this translation helpful? Give feedback.
All reactions