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::mbedtls::Hmac< mdType, mdSize > Class Template Reference

HMAC algorithm. More...

#include <mbed-common.hpp>

Public Member Functions

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

Detailed Description

template<mbedtls_md_type_t mdType, size_t mdSize>
class ndnph::mbedtls::Hmac< mdType, mdSize >

HMAC algorithm.

Template Parameters
mdTypemessage digest type identifier.
mdSizechecksum size.

Constructor & Destructor Documentation

◆ Hmac()

template<mbedtls_md_type_t mdType, size_t mdSize>
ndnph::mbedtls::Hmac< mdType, mdSize >::Hmac ( const uint8_t *  key,
size_t  keyLen 
)
inlineexplicit

Start HMAC operation and set key.

◆ ~Hmac()

template<mbedtls_md_type_t mdType, size_t mdSize>
ndnph::mbedtls::Hmac< mdType, mdSize >::~Hmac ( )
inline

Member Function Documentation

◆ final()

template<mbedtls_md_type_t mdType, size_t mdSize>
bool ndnph::mbedtls::Hmac< mdType, mdSize >::final ( uint8_t  result[mdSize])
inline

Finalize HMAC operation and obtain HMAC result.

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

◆ update()

template<mbedtls_md_type_t mdType, size_t mdSize>
void ndnph::mbedtls::Hmac< mdType, mdSize >::update ( const uint8_t *  chunk,
size_t  size 
)
inline

Append bytes into hash state.


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