Botan 2.1.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

emsa_raw.h
Go to the documentation of this file.
1 /*
2 * EMSA-Raw
3 * (C) 1999-2007 Jack Lloyd
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
6 */
7
8 #ifndef BOTAN_EMSA_RAW_H__
9 #define BOTAN_EMSA_RAW_H__
10
11 #include <botan/emsa.h>
12
13 namespace Botan {
14
15 /**
16 * EMSA-Raw - sign inputs directly
17 * Don't use this unless you know what you are doing.
18 */
19 class BOTAN_DLL EMSA_Raw final : public EMSA
20 {
21 public:
22 EMSA* clone() override { return new EMSA_Raw(); }
23
24 private:
25 void update(const uint8_t[], size_t) override;
26 secure_vector<uint8_t> raw_data() override;
27
28 secure_vector<uint8_t> encoding_of(const secure_vector<uint8_t>&, size_t,
29 RandomNumberGenerator&) override;
30 bool verify(const secure_vector<uint8_t>&, const secure_vector<uint8_t>&,
31 size_t) override;
32
33 secure_vector<uint8_t> m_message;
34 };
35
36 }
37
38 #endif
Botan::RandomNumberGenerator
Definition: rng.h:25
Botan::EMSA_Raw::clone
EMSA * clone() override
Definition: emsa_raw.h:22
Botan::secure_vector
std::vector< T, secure_allocator< T >> secure_vector
Definition: secmem.h:121
Botan::EMSA
Definition: emsa.h:21
Botan
Definition: alg_id.cpp:13
Botan::EMSA_Raw
Definition: emsa_raw.h:19