proxygen
|
#include <Sha.h>
Static Public Member Functions | |
static void | hmac (folly::ByteRange key, const folly::IOBuf &in, folly::MutableByteRange out) |
static void | hash (const folly::IOBuf &in, folly::MutableByteRange out) |
Hash implementation using OpenSSL.
The template struct requires the following parameters:
|
static |
Puts Hash(in) into out. Out must be at least of size HashLen.
Definition at line 23 of file Sha-inl.h.
References folly::ssl::OpenSSLHash::hash(), and folly::Range< Iter >::size().
|
static |
Puts HMAC(key, in) into out. Out must be at least of size HashLen.
Definition at line 14 of file Sha-inl.h.
References folly::ssl::OpenSSLHash::hmac(), and folly::Range< Iter >::size().