#include <eme_pkcs.h>
EME from PKCS #1 v1.5 
Definition at line 18 of file eme_pkcs.h.
◆ decode() [1/2]
  
  | 
        
          | SecureVector< byte > Botan::EME::decode | ( | const byte | in[], |  
          |  |  | size_t | in_length, |  
          |  |  | size_t | key_length |  
          |  | ) |  | const |  | inherited | 
 
Decode an input 
- Parameters
- 
  
    | in | the encoded plaintext |  | in_length | length of encoded plaintext in bytes |  | key_length | length of the key in bits |  
 
- Returns
- plaintext 
Definition at line 35 of file eme.cpp.
Referenced by Botan::PK_Decryptor_EME::PK_Decryptor_EME().
   38    return unpad(msg, msg_len, key_bits);
  
 
◆ decode() [2/2]
Decode an input 
- Parameters
- 
  
    | in | the encoded plaintext |  | key_length | length of the key in bits |  
 
- Returns
- plaintext 
Definition at line 44 of file eme.cpp.
References Botan::MemoryRegion< T >::size().
   47    return unpad(&msg[0], msg.size(), key_bits);
  
 
◆ encode() [1/2]
Encode an input 
- Parameters
- 
  
    | in | the plaintext |  | in_length | length of plaintext in bytes |  | key_length | length of the key in bits |  | rng | a random number generator |  
 
- Returns
- encoded plaintext 
Definition at line 15 of file eme.cpp.
   19    return pad(msg, msg_len, key_bits, rng);
  
 
◆ encode() [2/2]
Encode an input 
- Parameters
- 
  
    | in | the plaintext |  | key_length | length of the key in bits |  | rng | a random number generator |  
 
- Returns
- encoded plaintext 
Definition at line 25 of file eme.cpp.
   29    return pad(&msg[0], msg.size(), key_bits, rng);
  
 
◆ maximum_input_size()
  
  | 
        
          | size_t Botan::EME_PKCS1v15::maximum_input_size | ( | size_t | keybits | ) | const |  | virtual | 
 
Return the maximum input size in bytes we can support 
- Parameters
- 
  
    | keybits | the size of the key in bits |  
 
- Returns
- upper bound of input in bytes 
Implements Botan::EME.
Definition at line 74 of file eme_pkcs.cpp.
   77       return ((keybits / 8) - 10);
  
 
The documentation for this class was generated from the following files: