Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::hmac< H > Class Template Reference

#include <hmac.hpp>

Public Member Functions

 hmac ()
 
digest (const char *c, uint32_t c_len, const char *d, uint32_t d_len)
 

Detailed Description

template<typename H>
class fc::hmac< H >

Definition at line 18 of file hmac.hpp.

Constructor & Destructor Documentation

◆ hmac()

template<typename H >
fc::hmac< H >::hmac ( )
inline

Definition at line 21 of file hmac.hpp.

21{}

Member Function Documentation

◆ digest()

template<typename H >
H fc::hmac< H >::digest ( const char * c,
uint32_t c_len,
const char * d,
uint32_t d_len )
inline

Definition at line 23 of file hmac.hpp.

24 {
25 encoder.reset();
26 add_key(c, c_len, 0x36);
27 encoder.write( d, d_len );
28 H intermediate = encoder.result();
29
30 encoder.reset();
31 add_key(c, c_len, 0x5c);
32 encoder.write( intermediate.data(), intermediate.data_size() );
33 return encoder.result();
34 }

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