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::port_sha256_null::HmacSha256 Class Reference

Stub HMAC-SHA256 algorithm implementation. More...

#include <null.hpp>

Public Member Functions

 HmacSha256 (const uint8_t *key, size_t keyLen)
 Start HMAC operation and set key. More...
 
void update (const uint8_t *, size_t)
 Append bytes into hash state. More...
 
bool final (uint8_t result[NDNPH_SHA256_LEN])
 Finalize HMAC operation and obtain HMAC result. More...
 

Detailed Description

Stub HMAC-SHA256 algorithm implementation.

Constructor & Destructor Documentation

◆ HmacSha256()

ndnph::port_sha256_null::HmacSha256::HmacSha256 ( const uint8_t *  key,
size_t  keyLen 
)
inlineexplicit

Start HMAC operation and set key.

Member Function Documentation

◆ final()

bool ndnph::port_sha256_null::HmacSha256::final ( uint8_t  result[NDNPH_SHA256_LEN])
inline

Finalize HMAC operation and obtain HMAC result.

Returns
whether success.
Postcondition
this object is ready for new HMAC operation with same key.

◆ update()

void ndnph::port_sha256_null::HmacSha256::update ( const uint8_t *  ,
size_t   
)
inline

Append bytes into hash state.


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