aboutsummaryrefslogtreecommitdiffstats
path: root/include/if_algo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/if_algo.h')
-rw-r--r--include/if_algo.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/include/if_algo.h b/include/if_algo.h
index fa60a9185..d67aa0311 100644
--- a/include/if_algo.h
+++ b/include/if_algo.h
@@ -25,14 +25,12 @@ class IF_Scheme_PublicKey : public virtual Public_Key
u32bit max_input_bits() const { return (n.bits() - 1); }
- virtual ~IF_Scheme_PublicKey() {}
+ X509_Encoder* x509_encoder() const;
+ X509_Decoder* x509_decoder();
protected:
virtual void X509_load_hook();
BigInt n, e;
IF_Core core;
- private:
- X509_Encoder* x509_encoder() const;
- X509_Decoder* x509_decoder();
};
/*************************************************
@@ -48,13 +46,11 @@ class IF_Scheme_PrivateKey : public virtual IF_Scheme_PublicKey,
const BigInt& get_q() const { return q; }
const BigInt& get_d() const { return d; }
- virtual ~IF_Scheme_PrivateKey() {}
+ PKCS8_Encoder* pkcs8_encoder() const;
+ PKCS8_Decoder* pkcs8_decoder();
protected:
virtual void PKCS8_load_hook(bool = false);
BigInt d, p, q, d1, d2, c;
- private:
- PKCS8_Encoder* pkcs8_encoder() const;
- PKCS8_Decoder* pkcs8_decoder();
};
}