diff options
author | lloyd <[email protected]> | 2010-03-04 01:53:35 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-03-04 01:53:35 +0000 |
commit | f109029f5f1cc33512091e228e6ee6532058c42f (patch) | |
tree | 203d32fec16d05a2fc6c6f72346cb13a2796c71e /src/pubkey/pk_keys.h | |
parent | 547e295717780c28878f17b7273a7d60c1bf39c6 (diff) |
Add a new function to Public_Key, algorithm_identifier(), which just
returns the AlgorithmIdentifier representing this scheme (OID + domain
params if any).
Diffstat (limited to 'src/pubkey/pk_keys.h')
-rw-r--r-- | src/pubkey/pk_keys.h | 6 |
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 */ |