diff options
author | Jack Lloyd <[email protected]> | 2019-08-06 03:39:49 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-09-06 07:04:46 -0400 |
commit | d187ddcaebe11a324f0efb20eb67a842929adc6f (patch) | |
tree | a8ec6b1076eff60f7475dd7a904a1934192fcf10 /src/lib/base/buf_comp.h | |
parent | cc6b42d71b0cdc2ebfa2b33b5039991f2d79f606 (diff) |
Deprecate many publically available headers
Diffstat (limited to 'src/lib/base/buf_comp.h')
-rw-r--r-- | src/lib/base/buf_comp.h | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/src/lib/base/buf_comp.h b/src/lib/base/buf_comp.h index e1971c458..31bf48529 100644 --- a/src/lib/base/buf_comp.h +++ b/src/lib/base/buf_comp.h @@ -9,7 +9,6 @@ #define BOTAN_BUFFERED_COMPUTATION_H_ #include <botan/secmem.h> -#include <botan/loadstor.h> #include <string> namespace Botan { @@ -51,27 +50,13 @@ class BOTAN_PUBLIC_API(2,0) Buffered_Computation add_data(in.data(), in.size()); } - /** - * Add an integer in big-endian order - * @param in the value - */ - template<typename T> void update_be(const T in) - { - uint8_t inb[sizeof(T)]; - store_be(in, inb); - add_data(inb, sizeof(inb)); - } + void update_be(uint16_t val); + void update_be(uint32_t val); + void update_be(uint64_t val); - /** - * Add an integer in little-endian order - * @param in the value - */ - template<typename T> void update_le(const T in) - { - uint8_t inb[sizeof(T)]; - store_le(in, inb); - add_data(inb, sizeof(inb)); - } + void update_le(uint16_t val); + void update_le(uint32_t val); + void update_le(uint64_t val); /** * Add new input to process. |