summaryrefslogtreecommitdiffstats
path: root/integrity_algo.hpp
Commit message (Collapse)AuthorAgeFilesLines
* netipmid: apply clang-format rulesVernon Mauery2018-11-021-226/+218
| | | | | | | | Lots of whitespace change. Let clang-format do its job and keep the code looking nice. Change-Id: Idfcad1a99cab8170d55a06163de8ad3f420b68b7 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Remove the support for insecure protocols in RMCP+Tom Joseph2018-07-301-8/+8
| | | | | | | | | | | | | | | The two supported Cipher suites for RMCP+ will be cipher Suite 3 and 17 after this change. The cipher suite 3 is the default choice for the ipmitool if the cipher suite is not explicitly mentioned. The supported algorithms are the following: Authentication: a) RAKP-HMAC-SHA1, b) RAKP-HMAC-SHA256 Integrity: a) HMAC-SHA1-9, b) HMAC-SHA256-128 Confidentiality: a) AES-CBC-128 Change-Id: Ia2fbaae29235e4bd43c42b59a2295a2db28efce3 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Add support for cipher suite 17Vernon Mauery2017-12-081-1/+88
| | | | | | | | | cipher suite 17 uses RAKP_HMAC_SHA256 for authentication and RAKP_HMAC_SHA256_128 for integrity. This adds those in and fixes up the lookups so the stack knows about the new algorithms. Change-Id: Icdc66563d08060fc0e541ceaf3bee9dd5f89fdb2 Signed-off-by: Vernon Mauery <vernon.mauery@linux.intel.com>
* Prepare for adding RMCP+ cipher suite 17Vernon Mauery2017-12-071-28/+46
| | | | | | | | | | 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>
* explicit use of std::vector instead of buffer/BufferVernon Mauery2017-12-051-10/+13
| | | | | | | | | | 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>
* Correct doxygen syntax in phosphor-net-ipmidTom Joseph2017-05-231-15/+16
| | | | | | | Resolves openbmc/openbmc#1147 Change-Id: I57ab1b09ec1bf308cc3d97cd30b2d18564beb38b Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Validate Integrity Algorithm in Open Session Request commandTom Joseph2017-02-241-0/+20
| | | | | Change-Id: I54106099fbbe50156529644eaadd65dc1db7e141 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Implementation of HMAC-SHA1-96 Integrity AlgorithmTom Joseph2017-01-171-0/+70
| | | | | Change-Id: Id301f0cb6e7cc9cde79385a18f3999d8d9c0feab Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
* Interface for the Integrity AlgorithmTom Joseph2017-01-171-0/+121
This patch defines the interfaces for the integrity algorithm. It provides the API to verify integrity data of the incoming packet and to generate integrity data for the outgoing packet. Change-Id: Ibd645c0ab0d9f4ec26f085353d141f7a3262ab2e Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
OpenPOWER on IntegriCloud