proxygen
|
#include <Signature.h>
Public Member Functions | |
void | setKey (folly::ssl::EvpPkeyUniquePtr pkey) |
template<SignatureScheme Scheme> | |
std::unique_ptr< folly::IOBuf > | sign (folly::ByteRange data) const |
template<SignatureScheme Scheme> | |
void | verify (folly::ByteRange data, folly::ByteRange signature) const |
template<> | |
void | setKey (folly::ssl::EvpPkeyUniquePtr pkey) |
template<> | |
void | setKey (folly::ssl::EvpPkeyUniquePtr pkey) |
template<> | |
void | setKey (folly::ssl::EvpPkeyUniquePtr pkey) |
template<> | |
void | setKey (folly::ssl::EvpPkeyUniquePtr pkey) |
Private Attributes | |
folly::ssl::EvpPkeyUniquePtr | pkey_ |
Signature implementation using OpenSSL.
Definition at line 23 of file Signature.h.
void fizz::OpenSSLSignature< T >::setKey | ( | folly::ssl::EvpPkeyUniquePtr | pkey | ) |
Referenced by fizz::test::TEST_F(), and fizz::testing::TEST_P().
|
inline |
Definition at line 102 of file Signature-inl.h.
References folly::gen::move, and fizz::detail::validateECKey().
|
inline |
Definition at line 109 of file Signature-inl.h.
References folly::gen::move, and fizz::detail::validateECKey().
|
inline |
Definition at line 116 of file Signature-inl.h.
References folly::gen::move, and fizz::detail::validateECKey().
|
inline |
|
inline |
Returns a signature of data.
Only valid for SignatureSchemes that are compatible with KeyType.
setKey() must be called before with a private key.
Definition at line 69 of file Signature-inl.h.
References folly::assume_unreachable(), fizz::detail::ecSign(), fizz::P256, fizz::P384, fizz::P521, fizz::RSA, and fizz::detail::rsaPssSign().
Referenced by fizz::test::TEST_F(), and fizz::testing::TEST_P().
|
inline |
Verifies that signature is a valid signature over data. Throws if it's not.
Only valid for SignatureSchemes that are compatible with KeyType.
setKey() must be called before.
Definition at line 86 of file Signature-inl.h.
References folly::assume_unreachable(), fizz::detail::ecVerify(), fizz::P256, fizz::P384, fizz::P521, fizz::RSA, and fizz::detail::rsaPssVerify().
Referenced by fizz::test::TEST_F(), and fizz::testing::TEST_P().
|
private |
Definition at line 48 of file Signature.h.