当我尝试解密加密邮件时,我的程序失败了。我的代码:
#menu-main-menu .sub-menu li a {
color: #ddd;
}
有什么问题?
答案 0 :(得分:0)
我发现了问题。
添加错误检查后,我发现错误" 3132:错误:0906D06C:lib(9):func(109):reason(108):。\ crypto \ pem \ pem_lib.c: 703:EXPE cting:任何私钥"。
在谷歌搜索和阅读手册后,我明白我的私钥初始化错误。我需要在私钥中的每一行之后添加\ n(在每个第64个符号之后)。所以char *中的键必须是这样的:
char *pri_key = "-----BEGIN RSA PRIVATE KEY-----\n\
MIIEogIBAAKCAQEAnwOBG9cKqGZhEv3ikSQjrpdEY/qDOB3ZOjoiIT/XJIoPAmXh\n\
i8aAPJ1XgT1enXltvvCmwQDMmcjyAwgKv/215jWN9bcBmRSgTbyJyYCJS4BOs46G\n\
8UKuclXt9JSQGi7ajySdv24qaB+LcchddGIEBtBIWhDx6Je1UxfV9IWk3Ai5zZ5M\n\
e5Ux3mHQz5xUwPncZTN5jBQ3iJTw0Q+NCbHrNZbWKgWEaWJrTGguH1IYVVUcf7qi\n\
PSIPe8jIZeVNVrBkIpX2QYLW2PZxdPPDmFg7dqsTeQRjLwr6grv3arNySMYiU5kQ\n\
VLRyri9FSR5IaqH6tGxjfcNU+7cW3u7gDyD/LwIBAwKCAQBqAlYSj1xwREC3U+xg\n\
wsJ0ZNhCpwIlaTt8JsFrf+TDBrSsQ+uyhFV9vjpWKOm+UPPUoG8rVd2720wCBVx/\n\
/nlEI7P5JKu7YxWJKFvbqwYyVYnNCa9Lgcmhjp6jDbVmyecKGGkqSXGav7JL2uj4\n\
QVgEitrmtfabD843ZTlNrm3oBMQF0rLU888eT/InM424ny0EFjxTARPpEFq0F7jj\n\
95y4FVlHKdAMIhyyUuBe9OEWyl9ALPiIlQNb+5ty1VxF7ZVEJzfwESUzwT9bI+Hj\n\
pYiZAe9vsK/mBYCBJ3X2+qtX56cmCIpk2jnkHFYMnZBrwma108tt3l6Z9kQXBQt2\n\
PNWbAoGBANDyJYvExXkHcxSaElr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