Coverage Report

Created: 2021-10-13 08:49

/src/botan/src/lib/base/buf_comp.cpp
Line
Count
Source (jump to first uncovered line)
1
/*
2
* (C) 2019 Jack Lloyd
3
*
4
* Botan is released under the Simplified BSD License (see license.txt)
5
*/
6
7
#include <botan/buf_comp.h>
8
#include <botan/internal/loadstor.h>
9
10
namespace Botan {
11
12
void Buffered_Computation::update_be(uint16_t val)
13
0
   {
14
0
   uint8_t inb[sizeof(val)];
15
0
   store_be(val, inb);
16
0
   add_data(inb, sizeof(inb));
17
0
   }
18
19
void Buffered_Computation::update_be(uint32_t val)
20
381
   {
21
381
   uint8_t inb[sizeof(val)];
22
381
   store_be(val, inb);
23
381
   add_data(inb, sizeof(inb));
24
381
   }
25
26
void Buffered_Computation::update_be(uint64_t val)
27
7.31k
   {
28
7.31k
   uint8_t inb[sizeof(val)];
29
7.31k
   store_be(val, inb);
30
7.31k
   add_data(inb, sizeof(inb));
31
7.31k
   }
32
33
void Buffered_Computation::update_le(uint16_t val)
34
0
   {
35
0
   uint8_t inb[sizeof(val)];
36
0
   store_le(val, inb);
37
0
   add_data(inb, sizeof(inb));
38
0
   }
39
40
void Buffered_Computation::update_le(uint32_t val)
41
0
   {
42
0
   uint8_t inb[sizeof(val)];
43
0
   store_le(val, inb);
44
0
   add_data(inb, sizeof(inb));
45
0
   }
46
47
void Buffered_Computation::update_le(uint64_t val)
48
0
   {
49
0
   uint8_t inb[sizeof(val)];
50
0
   store_le(val, inb);
51
0
   add_data(inb, sizeof(inb));
52
0
   }
53
54
}