esp8266ndn
NDN Arduino library for ESP8266 and more
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
ndnph::ndncert::detail::SessionKey Class Reference

Symmetric key used in CHALLENGE step. More...

#include <common.hpp>

Public Member Functions

bool makeKey (const mbedtls::Mpi &ecdhPvt, const mbedtls::P256::Point &ecdhPub, const uint8_t *salt, const uint8_t *requestId)
 Derive the key. More...
 
tlv::Value encrypt (Region &region, tlv::Value plaintext, const uint8_t *requestId)
 Encrypt to encrypted-message. More...
 
tlv::Value decrypt (Region &region, tlv::Value message, const uint8_t *requestId)
 Decrypt from encrypted-message. More...
 

Detailed Description

Symmetric key used in CHALLENGE step.

Member Function Documentation

◆ decrypt()

tlv::Value ndnph::ndncert::detail::SessionKey::decrypt ( Region region,
tlv::Value  message,
const uint8_t *  requestId 
)
inline

Decrypt from encrypted-message.

◆ encrypt()

tlv::Value ndnph::ndncert::detail::SessionKey::encrypt ( Region region,
tlv::Value  plaintext,
const uint8_t *  requestId 
)
inline

Encrypt to encrypted-message.

◆ makeKey()

bool ndnph::ndncert::detail::SessionKey::makeKey ( const mbedtls::Mpi ecdhPvt,
const mbedtls::P256::Point ecdhPub,
const uint8_t *  salt,
const uint8_t *  requestId 
)
inline

Derive the key.


The documentation for this class was generated from the following file: