aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pk_pad/iso9796/iso9796.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/pk_pad/iso9796/iso9796.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/pk_pad/iso9796/iso9796.h')
-rw-r--r--src/lib/pk_pad/iso9796/iso9796.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/pk_pad/iso9796/iso9796.h b/src/lib/pk_pad/iso9796/iso9796.h
index da3fff055..81e008e47 100644
--- a/src/lib/pk_pad/iso9796/iso9796.h
+++ b/src/lib/pk_pad/iso9796/iso9796.h
@@ -37,22 +37,22 @@ class BOTAN_DLL ISO_9796_DS2 final : public EMSA
EMSA* clone() override
{return new ISO_9796_DS2(m_hash->clone(), m_implicit, m_SALT_SIZE);}
private:
- void update(const byte input[], size_t length) override;
+ void update(const uint8_t input[], size_t length) override;
- secure_vector<byte> raw_data() override;
+ secure_vector<uint8_t> raw_data() override;
- secure_vector<byte> encoding_of(const secure_vector<byte>& msg,
+ secure_vector<uint8_t> encoding_of(const secure_vector<uint8_t>& msg,
size_t output_bits,
RandomNumberGenerator& rng) override;
- bool verify(const secure_vector<byte>& coded,
- const secure_vector<byte>& raw,
+ bool verify(const secure_vector<uint8_t>& coded,
+ const secure_vector<uint8_t>& raw,
size_t key_bits) override;
std::unique_ptr<HashFunction> m_hash;
bool m_implicit;
size_t m_SALT_SIZE;
- secure_vector<byte> m_msg_buffer;
+ secure_vector<uint8_t> m_msg_buffer;
};
/**
@@ -71,21 +71,21 @@ class BOTAN_DLL ISO_9796_DS3 final : public EMSA
EMSA* clone() override
{return new ISO_9796_DS3(m_hash->clone(), m_implicit);}
private:
- void update(const byte input[], size_t length) override;
+ void update(const uint8_t input[], size_t length) override;
- secure_vector<byte> raw_data() override;
+ secure_vector<uint8_t> raw_data() override;
- secure_vector<byte> encoding_of(const secure_vector<byte>& msg,
+ secure_vector<uint8_t> encoding_of(const secure_vector<uint8_t>& msg,
size_t output_bits,
RandomNumberGenerator& rng) override;
- bool verify(const secure_vector<byte>& coded,
- const secure_vector<byte>& raw,
+ bool verify(const secure_vector<uint8_t>& coded,
+ const secure_vector<uint8_t>& raw,
size_t key_bits) override;
std::unique_ptr<HashFunction> m_hash;
bool m_implicit;
- secure_vector<byte> m_msg_buffer;
+ secure_vector<uint8_t> m_msg_buffer;
};
}