diff options
| author | Vernon Mauery <vernon.mauery@linux.intel.com> | 2017-11-30 13:11:43 -0800 |
|---|---|---|
| committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2017-12-05 16:33:59 -0800 |
| commit | 70fd29cf487ceefd21af58bab988a7ff9ec07efb (patch) | |
| tree | 384f140fd16aef4deb78236bd924afce04f98cc0 /test | |
| parent | 2207f51cbdd3962b1e94fb8432edfc2e294fd9c7 (diff) | |
| download | phosphor-net-ipmid-70fd29cf487ceefd21af58bab988a7ff9ec07efb.tar.gz phosphor-net-ipmid-70fd29cf487ceefd21af58bab988a7ff9ec07efb.zip | |
explicit use of std::vector instead of buffer/Buffer
There were several scoped 'using buffer = std::vector<uint8_t>;' in
header files. This consolidates the code base to use
std::vector<uint8_t> instead of buffer or Buffer. This makes the code
easier to read and debug.
Change-Id: I918a0f6ca9b8e4b9d331175dccff45cbf4c8379d
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/cipher.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cipher.cpp b/test/cipher.cpp index 84929d6..f10c8a0 100644 --- a/test/cipher.cpp +++ b/test/cipher.cpp @@ -51,7 +51,7 @@ TEST(IntegrityAlgo, HMAC_SHA1_96_GenerateIntegrityDataCheck) } mdLen = 0; - cipher::integrity::Buffer output(SHA_DIGEST_LENGTH); + std::vector<uint8_t> output(SHA_DIGEST_LENGTH); size_t length = packet.size() - message::parser::RMCP_SESSION_HEADER_SIZE; if (HMAC(EVP_sha1(), K1.data(), K1.size(), @@ -102,7 +102,7 @@ TEST(IntegrityAlgo, HMAC_SHA1_96_VerifyIntegrityDataPass) } mdLen = 0; - cipher::integrity::Buffer output(SHA_DIGEST_LENGTH); + std::vector<uint8_t> output(SHA_DIGEST_LENGTH); size_t length = packet.size() - message::parser::RMCP_SESSION_HEADER_SIZE; if (HMAC(EVP_sha1(), K1.data(), K1.size(), |

