aboutsummaryrefslogtreecommitdiffstats
path: root/src/pubkey/pk_keys.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pubkey/pk_keys.h')
-rw-r--r--src/pubkey/pk_keys.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pubkey/pk_keys.h b/src/pubkey/pk_keys.h
index 5b612577d..33341b513 100644
--- a/src/pubkey/pk_keys.h
+++ b/src/pubkey/pk_keys.h
@@ -10,6 +10,7 @@
#include <botan/secmem.h>
#include <botan/asn1_oid.h>
+#include <botan/alg_id.h>
#include <botan/rng.h>
namespace Botan {
@@ -61,6 +62,11 @@ class BOTAN_DLL Public_Key
virtual u32bit max_input_bits() const = 0;
/**
+ * @return X.509 AlgorithmIdentifier for this key
+ */
+ virtual AlgorithmIdentifier algorithm_identifier() const = 0;
+
+ /**
* Get an X509 encoder that can be used to encode this key in X509 format.
* @return an X509 encoder for this key
*/