【发布时间】:2020-10-15 23:07:47
【问题描述】:
正如标题所说,有没有办法将 SecByteBlock 中的密钥转换为 ECDSA
根据我的阅读,我刚刚设法将 PublicKey 转换为字符串:
PubicKey pubKey;
string s;
StringSink ss(s);
pubKey.Save(ss);
【问题讨论】:
-
它是一个公钥,为什么你的密钥首先是
SecByteBlock?您可能应该从中获取字节缓冲区,然后创建 x & y 坐标以创建公共点...
标签: c++ cryptography crypto++