proxygen
fizz::HmacImpl< Hash > Class Template Reference

#include <Hmac.h>

Inheritance diagram for fizz::HmacImpl< Hash >:
fizz::Hmac

Public Member Functions

size_t length () const override
 
void hmac (folly::ByteRange key, const folly::IOBuf &in, folly::MutableByteRange out) const override
 
- Public Member Functions inherited from fizz::Hmac
virtual ~Hmac ()=default
 

Detailed Description

template<typename Hash>
class fizz::HmacImpl< Hash >

Definition at line 35 of file Hmac.h.

Member Function Documentation

template<typename Hash >
void fizz::HmacImpl< Hash >::hmac ( folly::ByteRange  key,
const folly::IOBuf in,
folly::MutableByteRange  out 
) const
inlineoverridevirtual

Compute the hmac of in using key. Out must be able to hold length() bytes.

Implements fizz::Hmac.

Definition at line 41 of file Hmac.h.

44  {
45  return Hash::hmac(key, in, out);
46  }
template<typename Hash >
size_t fizz::HmacImpl< Hash >::length ( ) const
inlineoverridevirtual

Length of the output.

Implements fizz::Hmac.

Definition at line 37 of file Hmac.h.

37  {
38  return Hash::HashLen;
39  }

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