当前位置:网站首页>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边栏推荐
- dhu编程练习
- Using face_ Recognition library reports an error reason: cudnn_ STATUS_ NOT_ SUPPORTED
- DDoS surge in mobile and data centers
- Illustration Google V8 19: asynchronous programming (II): how does V8 implement async/await?
- Blue Bridge Cup stm32g431 - three lines of code for keys (long press, short press, click, double click)
- 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?
- DDoS threat situation gets worse
- DDoS attacks and destructive ripple effects against online gamers
- If mybaits cannot query the data, it can query how to change it in the database
猜你喜欢
Learning C language from scratch day 026
005_ button
(4) Blender source code analysis flash window display process
AI落地制造业:智能机器人应具备这4种能力
Using grpcui to test asp Net core grpc service
DMX configuration
26.算法常用面试题
33Mysql
[MySQL 06] backup and restore MySQL database in Linux + docker container environment
After the blueprint node of ue5 is copied to UE4, all connections and attribute values are lost
随机推荐
Add a second network card (network interface NIC) for the virtual machine in azure portal in 2 minutes
记录生产的一次OOM异常
If mybaits cannot query the data, it can query how to change it in the database
The largest DDoS attack ever peaked at 400 Gbps
dhu编程练习
210. Schedule II - depth traversal
DDoS "fire drill" service urges companies to prepare
Restore a 35k-55k Tencent Android Senior Engineer Interview
Let‘sPlayCurling
Realization of a springboard machine
If you want to install a set of monitoring, what is the process? How much is it?
Understand AQS principle (flow chart and synchronous queue diagram)
当大学毕业感到迷茫怎么办?
Let‘sPlayCurling
207. curriculum - graph theory, depth traversal
云存储架构能解决 DevOps 的什么问题?
什么是幂等性?四种接口幂等性方案详解!
Three questions from the boss
widget使用setImageViewBitmap方法设置bug分析
Scala基础【入门及安装】