fixed signature function params

This commit is contained in:
Mirek Kratochvil 2012-04-02 14:16:01 +02:00
parent d441578f45
commit 3f82b2b17d
3 changed files with 8 additions and 8 deletions

View file

@ -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&);

View file

@ -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

View file

@ -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