当前位置:网站首页>PEM_ read_ bio_ Privatekey() returns null only in ECB mode - PEM_ read_ bio_ PrivateKey() returns NULL in ECB mode only
PEM_ read_ bio_ Privatekey() returns null only in ECB mode - PEM_ read_ bio_ PrivateKey() returns NULL in ECB mode only
2022-06-30 02:14:00 【French red wine sweet】
problem :
PEM_read_bio_PrivateKey() returns NULL if a private key is encrypted by DES EDE in ECB mode. If the private key is in ECB In mode by DES EDE encryption , be PEM_read_bio_PrivateKey() return NULL .The issue happens in EVP_DecryptFinal_ex() : The problem happened in EVP_DecryptFinal_ex() :
4128:error:06065064:digital envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:330:
If the same private key is encrypted by DES EDE in CBC mode, this function works OK. If in CBC In mode DES EDE Encrypt the same private key , This function is normal .
I checked, this issue is reproducible on openssl 0.9.8r/y versions (without FIPS). I checked , The question is openssl 0.9.8r / y edition ( No, FIPS) Is reproducible .If openssl is built with FIPS the issue doesn't happen. If you use FIPS structure openssl, Then it will not happen .
What causes this behaviour? What causes this behavior ?
Thanks! thank you !
Solution :
Reference resources : https://stackoom.com/en/question/1BGxy边栏推荐
- Weekly recommended short video: why is the theory correct but can not get the expected results?
- 002_ container
- Want to change careers, but don't know what you want to do?
- 桶排序
- NCA: the nine year old has launched a DDoS attack
- The national industrial information security development research center issued the report on industrial information security situation in 2021
- Que se passe - t - il si un faux divorce devient un vrai divorce?
- 006_ radio
- Upload, use of Avatar
- Global communication infrastructure faces apt, robotics and DDoS; The weakest mobile network
猜你喜欢
![[MySQL 05] SUSE 12 SP5 modifies the MySQL password for the first time after installing MySQL](/img/37/d24c9e5fad606d2623900ad018b6af.png)
[MySQL 05] SUSE 12 SP5 modifies the MySQL password for the first time after installing MySQL

013_ slider

【MySQL 04】使用MySQL Workbench 8.0 CE 备份及恢复Linux中的MySQL数据库
![[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions](/img/b1/2afa73a14b2f41b7a65c4c2d261e6a.png)
[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions

How does payment splitting help B2B bulk commodity transactions?
![Scala basics [introduction and installation]](/img/c5/9e62070719e1e0db29b0e44b0f0bc1.png)
Scala basics [introduction and installation]

DTW learning (dynamic time warping) -- Thought and code implementation

Tencent released the first Office Photo 23 years ago. It's so chronological

图解 Google V8 # 19 :异步编程(二):V8 是如何实现 async/await 的?

33Mysql
随机推荐
Thinking carefully and fearfully: a software can be transmitted online to monitor whether employees want to "run away"
9 - regular check set
归并排序
005_ button
Let‘sPlayCurling
dhu编程练习
How to create a CSR (certificate signing request) file?
Electron FAQ 54 - make your own fireworks based on electron
DTW learning (dynamic time warping) -- Thought and code implementation
【MySQL 06】linux + Docker容器环境中备份和还原MySQL数据库
DMX configuration
一次 Keepalived 高可用的事故,让我重学了一遍它!
【MySQL 04】使用MySQL Workbench 8.0 CE 備份及恢複Linux中的MySQL數據庫
dhu编程练习
AI landing manufacturing: intelligent robots should have these four abilities
【MySQL 04】使用MySQL Workbench 8.0 CE 备份及恢复Linux中的MySQL数据库
Est - ce que la bourse en ligne est sécurisée? Dois - je ouvrir un compte pour la spéculation boursière?
Copy entire directory to output folder maintain folder structure- Copy entire directory to output folder maintaining the folder structure?
[machine learning Q & A] cosine similarity, cosine distance, Euclidean distance and the meaning of distance in machine learning
DTW学习(dynamic time warping)——思想、代码实现