From 3f82b2b17d4da7733e6a54240daf9e4c2d0c6fbe Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Mon, 2 Apr 2012 14:16:01 +0200 Subject: [PATCH] fixed signature function params --- include/codecrypt.h | 8 ++++---- lib/mce.cpp | 4 ++-- lib/nd.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/codecrypt.h b/include/codecrypt.h index c41aec2..4ae962d 100644 --- a/include/codecrypt.h +++ b/include/codecrypt.h @@ -121,7 +121,7 @@ public: matrix sqInv; //"cache" int decrypt (const bvector&, bvector&); - int sign (const bvector&, bvector&, uint, prng&); + int sign (const bvector&, bvector&, uint, uint, prng&); }; class pubkey @@ -130,7 +130,7 @@ public: matrix G; uint t; int encrypt (const bvector&, bvector&, prng&); - int verify (const bvector&, const bvector&, uint); + int verify (const bvector&, const bvector&, uint, uint); }; int generate (pubkey&, privkey&, prng&); @@ -147,7 +147,7 @@ public: // TODO int decrypt (const bvector&, bvector&); - int sign (const bvector&hash, bvector&sig, uint, prng&); + int sign (const bvector&hash, bvector&sig, uint, uint, prng&); }; class pubkey @@ -157,7 +157,7 @@ public: uint t; int encrypt (const bvector&, bvector&, prng&); - int verify (const bvector&sig, const bvector&hash, uint); + int verify (const bvector&sig, const bvector&hash, uint, uint); }; int generate (pubkey&, privkey&, prng&); diff --git a/lib/mce.cpp b/lib/mce.cpp index 954d441..6303b44 100644 --- a/lib/mce.cpp +++ b/lib/mce.cpp @@ -22,13 +22,13 @@ int privkey::decrypt (const bvector&in, bvector&out) return -1; //TODO } -int privkey::sign (const bvector&in, bvector&out, uint min_delta, prng&rng) +int privkey::sign (const bvector&in, bvector&out, uint delta, uint h, prng&rng) { return -1; //TODO } -int pubkey::verify (const bvector&in, const bvector&hash, uint missing) +int pubkey::verify (const bvector&in, const bvector&hash, uint delta, uint h) { return -1; //TODO diff --git a/lib/nd.cpp b/lib/nd.cpp index 079b6e6..c748ce9 100644 --- a/lib/nd.cpp +++ b/lib/nd.cpp @@ -22,13 +22,13 @@ int privkey::decrypt (const bvector&in, bvector&out) return -1; //TODO } -int privkey::sign (const bvector&in, bvector&out, uint min_delta, prng&rng) +int privkey::sign (const bvector&in, bvector&out, uint delta, uint h, prng&rng) { return -1; //TODO } -int pubkey::verify (const bvector&in, const bvector&hash, uint missing) +int pubkey::verify (const bvector&in, const bvector&hash, uint delta, uint h) { return -1; //TODO