summaryrefslogtreecommitdiffstats
path: root/auth_algo.cpp
diff options
context:
space:
mode:
authorVernon Mauery <vernon.mauery@linux.intel.com>2017-11-30 13:11:43 -0800
committerVernon Mauery <vernon.mauery@linux.intel.com>2017-12-05 16:33:59 -0800
commit70fd29cf487ceefd21af58bab988a7ff9ec07efb (patch)
tree384f140fd16aef4deb78236bd924afce04f98cc0 /auth_algo.cpp
parent2207f51cbdd3962b1e94fb8432edfc2e294fd9c7 (diff)
downloadphosphor-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 'auth_algo.cpp')
-rw-r--r--auth_algo.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth_algo.cpp b/auth_algo.cpp
index b71636b..f062b0f 100644
--- a/auth_algo.cpp
+++ b/auth_algo.cpp
@@ -11,7 +11,8 @@ namespace cipher
namespace rakp_auth
{
-std::vector<uint8_t> AlgoSHA1::generateHMAC(std::vector<uint8_t>& input) const
+std::vector<uint8_t> AlgoSHA1::generateHMAC(
+ const std::vector<uint8_t>& input) const
{
std::vector<uint8_t> output(SHA_DIGEST_LENGTH);
unsigned int mdLen = 0;
@@ -26,7 +27,8 @@ std::vector<uint8_t> AlgoSHA1::generateHMAC(std::vector<uint8_t>& input) const
return output;
}
-std::vector<uint8_t> AlgoSHA1::generateICV(std::vector<uint8_t>& input) const
+std::vector<uint8_t> AlgoSHA1::generateICV(
+ const std::vector<uint8_t>& input) const
{
std::vector<uint8_t> output(SHA_DIGEST_LENGTH);
unsigned int mdLen = 0;
OpenPOWER on IntegriCloud