aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/misc/tss/tss.h
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-12-11 15:28:38 -0500
committerJack Lloyd <[email protected]>2016-12-18 16:48:24 -0500
commitf3cb3edb512bdcab498d825886c3366c341b3f78 (patch)
tree645c73ec295a5a34f25d99903b6d9fa9751e86d3 /src/lib/misc/tss/tss.h
parentc1dd21253c1f3188ff45d3ad47698efd08235ae8 (diff)
Convert to using standard uintN_t integer types
Renames a couple of functions for somewhat better name consistency, eg make_u32bit becomes make_uint32. The old typedefs remain for now since probably lots of application code uses them.
Diffstat (limited to 'src/lib/misc/tss/tss.h')
-rw-r--r--src/lib/misc/tss/tss.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/misc/tss/tss.h b/src/lib/misc/tss/tss.h
index 6ff47a0cc..79aa417c3 100644
--- a/src/lib/misc/tss/tss.h
+++ b/src/lib/misc/tss/tss.h
@@ -30,15 +30,15 @@ class BOTAN_DLL RTSS_Share
* @param rng the random number generator to use
*/
static std::vector<RTSS_Share>
- split(byte M, byte N,
- const byte secret[], u16bit secret_len,
- const byte identifier[16],
+ split(uint8_t M, uint8_t N,
+ const uint8_t secret[], uint16_t secret_len,
+ const uint8_t identifier[16],
RandomNumberGenerator& rng);
/**
* @param shares the list of shares
*/
- static secure_vector<byte>
+ static secure_vector<uint8_t>
reconstruct(const std::vector<RTSS_Share>& shares);
RTSS_Share() {}
@@ -56,7 +56,7 @@ class BOTAN_DLL RTSS_Share
/**
* @return share identifier
*/
- byte share_id() const;
+ uint8_t share_id() const;
/**
* @return size of this share in bytes
@@ -68,7 +68,7 @@ class BOTAN_DLL RTSS_Share
*/
bool initialized() const { return (m_contents.size() > 0); }
private:
- secure_vector<byte> m_contents;
+ secure_vector<uint8_t> m_contents;
};
}