diff options
author | lloyd <[email protected]> | 2010-03-04 03:56:49 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-04 03:56:49 +0000 |
commit | ea2b48cca1ef37815742577bfd692397bdcf8d13 (patch) | |
tree | 863933a7a0fc21ccee07dda33ac0806984ee0929 /src/pubkey/gost_3410/gost_3410.cpp | |
parent | e998558e1fa903b32155b694107082fff25f9c0e (diff) |
Remove load hooks from ECC classes, unused
Diffstat (limited to 'src/pubkey/gost_3410/gost_3410.cpp')
-rw-r--r-- | src/pubkey/gost_3410/gost_3410.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/pubkey/gost_3410/gost_3410.cpp b/src/pubkey/gost_3410/gost_3410.cpp index f2fb15a2e..47438653d 100644 --- a/src/pubkey/gost_3410/gost_3410.cpp +++ b/src/pubkey/gost_3410/gost_3410.cpp @@ -50,7 +50,14 @@ GOST_3410_PublicKey::GOST_3410_PublicKey(const AlgorithmIdentifier& alg_id, public_key = PointGFp(domain().get_curve(), x, y); - X509_load_hook(); + try + { + public_key.check_invariants(); + } + catch(Illegal_Point) + { + throw Internal_Error("Loaded ECC private key failed self test"); + } } bool GOST_3410_PublicKey::verify(const byte msg[], u32bit msg_len, |