作者jlovet.bbs@ptt.cc (Want 2 see u no more) 看板: linux
標題Re: [問題] pgp為什麼只能用公錀加密,不能用私錀加密
時間批踢踢實業 (2008/06/23 Mon 17:17:52)
http://www.openssl.org/docs/crypto/rsa.html#
OpenSSL似乎就可以用public/private加密
int RSA_public_encrypt(int flen, unsigned char *from,
unsigned char *to, RSA *rsa, int padding);
int RSA_private_decrypt(int flen, unsigned char *from,
unsigned char *to, RSA *rsa, int padding);
int RSA_private_encrypt(int flen, unsigned char *from,
unsigned char *to, RSA *rsa,int padding);
int RSA_public_decrypt(int flen, unsigned char *from,
unsigned char *to, RSA *rsa,int padding);
已經是快一年前看這些東西了
CryptoPP也是沒有支援這樣
個人是想,最好是有個方法可以移除private key裡面的某些資訊
這樣拿到private key也不能生出public key...
這樣...兩個的地位就平等了...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.123.102.254