diff options
author | Vernon Mauery <vernon.mauery@linux.intel.com> | 2017-11-22 09:28:16 -0800 |
---|---|---|
committer | Vernon Mauery <vernon.mauery@linux.intel.com> | 2017-12-07 12:54:43 -0800 |
commit | 9b307be647ff786f05c03fa742b982d99dd341ae (patch) | |
tree | 0b19e4d830a1ee6c7e882539c7e5b1549fbdc111 /crypt_algo.cpp | |
parent | 70fd29cf487ceefd21af58bab988a7ff9ec07efb (diff) | |
download | phosphor-net-ipmid-9b307be647ff786f05c03fa742b982d99dd341ae.tar.gz phosphor-net-ipmid-9b307be647ff786f05c03fa742b982d99dd341ae.zip |
Prepare for adding RMCP+ cipher suite 17
In many places, there are baked-in assumptions about algorithms that tie
the session initiation to cipher suite 3. This commit teases out those
assumptions and prepares for the next patch that actually adds in the
new authentication and integrity algorithms to support cipher suite 17.
Change-Id: I2ee3672a7c503b89c5ff0aba30cf7a4601e24d04
Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
Diffstat (limited to 'crypt_algo.cpp')
-rw-r--r-- | crypt_algo.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/crypt_algo.cpp b/crypt_algo.cpp index f33bca4..a10fd56 100644 --- a/crypt_algo.cpp +++ b/crypt_algo.cpp @@ -12,23 +12,6 @@ namespace cipher namespace crypt { -Interface::Interface(const std::vector<uint8_t>& sik, const key& addKey) -{ - unsigned int mdLen = 0; - - // Generated K2 for the confidentiality algorithm with the additional key - // keyed with SIK. - k2.resize(sik.size()); - if (HMAC(EVP_sha1(), sik.data(), sik.size(), addKey.data(), - addKey.size(), k2.data(), &mdLen) == NULL) - { - throw std::runtime_error("Generating K2 for confidentiality algorithm" - "failed"); - } -} - -constexpr key AlgoAES128::const2; - constexpr std::array<uint8_t, AlgoAES128::AESCBC128BlockSize - 1> AlgoAES128::confPadBytes; |