mirror of
https://codeberg.org/scip/pcp.git
synced 2025-12-17 12:00:56 +01:00
catched up api changes, fixed dysfunctional c++ signature api, enhanced c++ Buf class.
This commit is contained in:
@@ -133,11 +133,9 @@ void test3() {
|
||||
Signature SigA(A);
|
||||
Signature SigB(PA);
|
||||
|
||||
unsigned char *sig = SigA.sign((unsigned char*)message.c_str(), message.length());
|
||||
|
||||
// FIXME: bad api here
|
||||
if(SigB.verify(sig, message.length() + crypto_sign_BYTES) )
|
||||
cout << "3 ok" << endl;
|
||||
if(SigA.sign((unsigned char*)message.c_str(), message.length()))
|
||||
if(SigB.verify(SigA.sig) )
|
||||
cout << "3 ok" << endl;
|
||||
}
|
||||
|
||||
void test4() {
|
||||
|
||||
Reference in New Issue
Block a user