summaryrefslogtreecommitdiffstats
path: root/comm/third_party/botan/src/lib/pk_pad/eme_pkcs1/eme_pkcs.h
diff options
context:
space:
mode:
Diffstat (limited to 'comm/third_party/botan/src/lib/pk_pad/eme_pkcs1/eme_pkcs.h')
-rw-r--r--comm/third_party/botan/src/lib/pk_pad/eme_pkcs1/eme_pkcs.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/comm/third_party/botan/src/lib/pk_pad/eme_pkcs1/eme_pkcs.h b/comm/third_party/botan/src/lib/pk_pad/eme_pkcs1/eme_pkcs.h
new file mode 100644
index 0000000000..fb7cf14197
--- /dev/null
+++ b/comm/third_party/botan/src/lib/pk_pad/eme_pkcs1/eme_pkcs.h
@@ -0,0 +1,35 @@
+/*
+* EME PKCS#1 v1.5
+* (C) 1999-2007 Jack Lloyd
+*
+* Botan is released under the Simplified BSD License (see license.txt)
+*/
+
+#ifndef BOTAN_EME_PKCS1_H_
+#define BOTAN_EME_PKCS1_H_
+
+#include <botan/eme.h>
+
+BOTAN_FUTURE_INTERNAL_HEADER(eme_pkcs.h)
+
+namespace Botan {
+
+/**
+* EME from PKCS #1 v1.5
+*/
+class BOTAN_PUBLIC_API(2,0) EME_PKCS1v15 final : public EME
+ {
+ public:
+ size_t maximum_input_size(size_t) const override;
+
+ secure_vector<uint8_t> pad(const uint8_t[], size_t, size_t,
+ RandomNumberGenerator&) const override;
+
+ secure_vector<uint8_t> unpad(uint8_t& valid_mask,
+ const uint8_t in[],
+ size_t in_len) const override;
+ };
+
+}
+
+#endif