diff options
author | lloyd <[email protected]> | 2010-03-05 16:25:43 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-05 16:25:43 +0000 |
commit | c52cfb67263a9bb227c4b6fb0a0e37ab388f933a (patch) | |
tree | fdd87d05cae6e30e84c60d518ae1f99f80bbabff /src/pubkey/nr/nr.cpp | |
parent | df56028cad58fad04b9866326cb62700af8f2fbe (diff) |
Remove NR and DSA specific hooks
Diffstat (limited to 'src/pubkey/nr/nr.cpp')
-rw-r--r-- | src/pubkey/nr/nr.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/pubkey/nr/nr.cpp b/src/pubkey/nr/nr.cpp index 700e93092..540cfa281 100644 --- a/src/pubkey/nr/nr.cpp +++ b/src/pubkey/nr/nr.cpp @@ -16,7 +16,6 @@ NR_PublicKey::NR_PublicKey(const AlgorithmIdentifier& alg_id, const MemoryRegion<byte>& key_bits) : DL_Scheme_PublicKey(alg_id, key_bits, DL_Group::ANSI_X9_57) { - core = NR_Core(group, y); } /* @@ -26,16 +25,6 @@ NR_PublicKey::NR_PublicKey(const DL_Group& grp, const BigInt& y1) { group = grp; y = y1; - - core = NR_Core(group, y); - } - -/* -* Nyberg-Rueppel Verification Function -*/ -SecureVector<byte> NR_PublicKey::verify(const byte sig[], u32bit sig_len) const - { - return core.verify(sig, sig_len); } /* @@ -53,8 +42,6 @@ NR_PrivateKey::NR_PrivateKey(RandomNumberGenerator& rng, y = power_mod(group_g(), x, group_p()); - core = NR_Core(group, y, x); - if(x_arg == 0) gen_check(rng); else @@ -68,8 +55,6 @@ NR_PrivateKey::NR_PrivateKey(const AlgorithmIdentifier& alg_id, { y = power_mod(group_g(), x, group_p()); - core = NR_Core(group, y, x); - load_check(rng); } |