aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/xmss/xmss_publickey.h
diff options
context:
space:
mode:
authorRenĂ© Korthaus <[email protected]>2016-12-04 22:06:32 +0100
committerRenĂ© Korthaus <[email protected]>2016-12-05 10:28:38 +0100
commit8690e4e616367c12412fb56bc1826be203a4614b (patch)
treedace4204f21931d458ceeadf351428f01792f215 /src/lib/pubkey/xmss/xmss_publickey.h
parent61c4932f27c060a691ddc04fb75d227a1e8365dd (diff)
Add Public_Key::subject_public_key()
Adds new Public_Key::subject_public_key() that returns a X.509 SubjectPublicKey structure. Renames the current Public_Key::x509_subject_public_key() to public_key_bits(). BER_encode() just invokes subject_public_key().
Diffstat (limited to 'src/lib/pubkey/xmss/xmss_publickey.h')
-rw-r--r--src/lib/pubkey/xmss/xmss_publickey.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/pubkey/xmss/xmss_publickey.h b/src/lib/pubkey/xmss/xmss_publickey.h
index b8aa8d920..23c8032c2 100644
--- a/src/lib/pubkey/xmss/xmss_publickey.h
+++ b/src/lib/pubkey/xmss/xmss_publickey.h
@@ -216,13 +216,12 @@ class BOTAN_DLL XMSS_PublicKey : public virtual Public_Key
}
/**
- * Currently x509 is not suppoerted for XMSS. x509_subject_public_key()
- * returns a raw byte sequence as defined in [1]. This method acts as
- * alias for raw_public_key().
+ * Returns a raw byte sequence as defined in [1].
+ * This method acts as an alias for raw_public_key().
*
- * @return raw non x509 compliant public key.
+ * @return raw public key bits.
**/
- virtual std::vector<byte> x509_subject_public_key() const override
+ virtual std::vector<byte> public_key_bits() const override
{
return raw_public_key();
}