aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/pubkey/mce/mce_kem.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/pubkey/mce/mce_kem.h b/src/lib/pubkey/mce/mce_kem.h
index 4e46a0fab..2bb1edba5 100644
--- a/src/lib/pubkey/mce/mce_kem.h
+++ b/src/lib/pubkey/mce/mce_kem.h
@@ -37,6 +37,16 @@ class BOTAN_DLL McEliece_KEM_Decryptor
* returns the derived 512-bit symmetric key
*/
secure_vector<Botan::byte> decrypt(const byte msg[], size_t msg_len);
+
+ /**
+ * returns the derived 512-bit symmetric key
+ */
+ template<typename Alloc>
+ secure_vector<Botan::byte> decrypt_vec(const std::vector<byte, Alloc>& v)
+ {
+ return decrypt(&v[0], v.size());
+
+ }
private:
McEliece_Private_Operation m_raw_priv_op;
};