Coverage Report

Created: 2020-02-14 15:38

/src/botan/src/lib/pk_pad/eme_raw/eme_raw.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
* (C) 2015,2016 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6
7
#include <botan/eme_raw.h>
8
#include <botan/internal/bit_ops.h>
9
#include <botan/internal/ct_utils.h>
10
11
namespace Botan {
12
13
secure_vector<uint8_t> EME_Raw::pad(const uint8_t in[], size_t in_length,
14
                                 size_t,
15
                                 RandomNumberGenerator&) const
16
0
   {
17
0
   return secure_vector<uint8_t>(in, in + in_length);
18
0
   }
19
20
secure_vector<uint8_t> EME_Raw::unpad(uint8_t& valid_mask,
21
                                   const uint8_t in[], size_t in_length) const
22
0
   {
23
0
   valid_mask = 0xFF;
24
0
   return CT::strip_leading_zeros(in, in_length);
25
0
   }
26
27
size_t EME_Raw::maximum_input_size(size_t keybits) const
28
0
   {
29
0
   return keybits / 8;
30
0
   }
31
}