Botan 2.19.5 Crypto and TLS for C&

eme_pkcs.h
Go to the documentation of this file.
1/*
2* EME PKCS#1 v1.5
3* (C) 1999-2007 Jack Lloyd
4*
5* Botan is released under the Simplified BSD License (see license.txt)
6*/
7
8#ifndef BOTAN_EME_PKCS1_H_
9#define BOTAN_EME_PKCS1_H_
10
11#include <botan/eme.h>
12
13 BOTAN_FUTURE_INTERNAL_HEADER(eme_pkcs.h)
14
15namespace Botan {
16
17/**
18* EME from PKCS #1 v1.5
19*/
20 class BOTAN_PUBLIC_API(2,0) EME_PKCS1v15 final : public EME
21 {
22 public:
23 size_t maximum_input_size(size_t) const override;
24
25 secure_vector<uint8_t> pad(const uint8_t[], size_t, size_t,
26 RandomNumberGenerator&) const override;
27
28 secure_vector<uint8_t> unpad(uint8_t& valid_mask,
29 const uint8_t in[],
30 size_t in_len) const override;
31 };
32
33}
34
35#endif
Botan::EME_PKCS1v15
Definition: eme_pkcs.h:21
Botan::EME
Definition: eme.h:24
Botan::EME::maximum_input_size
virtual size_t maximum_input_size(size_t keybits) const =0
Botan::EME::unpad
virtual secure_vector< uint8_t > unpad(uint8_t &valid_mask, const uint8_t in[], size_t in_len) const =0
Botan::EME::pad
virtual secure_vector< uint8_t > pad(const uint8_t in[], size_t in_length, size_t key_length, RandomNumberGenerator &rng) const =0
Botan::RandomNumberGenerator
Definition: rng.h:26
final
int(* final)(unsigned char *, CTX *)
Definition: commoncrypto_hash.cpp:29
BOTAN_PUBLIC_API
#define BOTAN_PUBLIC_API(maj, min)
Definition: compiler.h:31
BOTAN_FUTURE_INTERNAL_HEADER
#define BOTAN_FUTURE_INTERNAL_HEADER(hdr)
Definition: compiler.h:136
Botan
Definition: alg_id.cpp:13
Botan::secure_vector
std::vector< T, secure_allocator< T > > secure_vector
Definition: secmem.h:65