proxygen
|
Classes | |
struct | bits24 |
class | OpenSSLECKeyDecoder |
class | OpenSSLECKeyEncoder |
class | OpenSSLECKeyExchange |
struct | Reader |
struct | Reader< CertificateEntry > |
struct | Reader< DistinguishedName > |
struct | Reader< Extension > |
struct | Reader< KeyShareEntry > |
struct | Reader< ProtocolName > |
struct | Reader< PskBinder > |
struct | Reader< PskIdentity > |
struct | Reader< Random > |
struct | Reader< ServerName > |
struct | ReadVector |
struct | ReadVector< bits24, T > |
struct | Sizer |
struct | Sizer< CertificateEntry > |
struct | Sizer< DistinguishedName > |
struct | Sizer< Extension > |
struct | Sizer< KeyShareEntry > |
struct | Sizer< ProtocolName > |
struct | Sizer< PskBinder > |
struct | Sizer< PskIdentity > |
struct | Sizer< ServerName > |
struct | Writer |
struct | Writer< DistinguishedName > |
struct | Writer< KeyShareEntry > |
struct | Writer< ProtocolName > |
struct | Writer< PskBinder > |
struct | Writer< PskIdentity > |
struct | Writer< Random > |
struct | Writer< ServerName > |
struct | WriterVector |
struct | WriterVector< bits24, T > |
Functions | |
folly::Optional< std::unique_ptr< folly::IOBuf > > | evpDecrypt (std::unique_ptr< folly::IOBuf > &&ciphertext, const folly::IOBuf *associatedData, folly::ByteRange iv, folly::MutableByteRange tag, bool useBlockOps, EVP_CIPHER_CTX *decryptCtx) |
std::unique_ptr< folly::IOBuf > | evpEncrypt (std::unique_ptr< folly::IOBuf > &&plaintext, const folly::IOBuf *associatedData, folly::ByteRange iv, size_t tagLen, bool useBlockOps, size_t headroom, EVP_CIPHER_CTX *encryptCtx) |
void | encFunc (EVP_CIPHER_CTX *, const folly::IOBuf &, folly::IOBuf &) |
void | encFuncBlocks (EVP_CIPHER_CTX *, const folly::IOBuf &, folly::IOBuf &) |
bool | decFunc (EVP_CIPHER_CTX *, const folly::IOBuf &, folly::IOBuf &, folly::MutableByteRange) |
bool | decFuncBlocks (EVP_CIPHER_CTX *, const folly::IOBuf &, folly::IOBuf &, folly::MutableByteRange) |
void | validateECKey (const folly::ssl::EvpPkeyUniquePtr &key, int curveNid) |
std::unique_ptr< folly::IOBuf > | generateEvpSharedSecret (const folly::ssl::EvpPkeyUniquePtr &key, const folly::ssl::EvpPkeyUniquePtr &peerKey) |
folly::ssl::EvpPkeyUniquePtr | generateECKeyPair (int curveNid) |
folly::ssl::EvpPkeyUniquePtr | decodeECPublicKey (folly::ByteRange range, int curveNid) |
std::unique_ptr< folly::IOBuf > | encodeECPublicKey (const folly::ssl::EvpPkeyUniquePtr &key) |
std::unique_ptr< folly::IOBuf > | encodeECPublicKey (const folly::ssl::EcKeyUniquePtr &ecKey) |
std::string | getOpenSSLError () |
std::unique_ptr< folly::IOBuf > | ecSign (folly::ByteRange data, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid) |
void | ecVerify (folly::ByteRange data, folly::ByteRange signature, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid) |
std::unique_ptr< folly::IOBuf > | rsaPssSign (folly::ByteRange data, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid) |
void | rsaPssVerify (folly::ByteRange data, folly::ByteRange signature, const folly::ssl::EvpPkeyUniquePtr &pkey, int hashNid) |
static const EVP_MD * | getHash (int hashNid) |
std::tuple< Buf, std::vector< fizz::Extension > > | decodeAuthRequest (const Buf &authRequest) |
Buf | computeTranscriptHash (std::unique_ptr< KeyDerivation > &deriver, const Buf &toBeHashed) |
void | writeBuf (const Buf &buf, folly::io::Appender &out) |
Buf | computeTranscript (const Buf &handshakeContext, const Buf &authenticatorRequest, const Buf &certificate) |
Buf | computeFinishedTranscript (const Buf &crTranscript, const Buf &certVerify) |
Buf | getFinishedData (std::unique_ptr< KeyDerivation > &deriver, Buf &finishedMacKey, const Buf &finishedTranscript) |
folly::Optional< std::vector< SignatureScheme > > | getRequestedSchemes (const std::vector< fizz::Extension > &authRequestExtensions) |
folly::Optional< SignatureScheme > | getSignatureScheme (const std::vector< SignatureScheme > &supportedSchemes, const SelfCert &cert, const std::vector< fizz::Extension > &authRequestExtensions) |
Buf | getEmptyAuthenticator (std::unique_ptr< KeyDerivation > &kderiver, Buf authRequest, Buf handshakeContext, Buf finishedMacKey) |
template<> | |
size_t | read< TokenBindingID > (TokenBindingID &id, folly::io::Cursor &cursor) |
template<> | |
void | write< TokenBindingID > (const TokenBindingID &id, folly::io::Appender &out) |
template<> | |
size_t | getSize< TokenBindingID > (const TokenBindingID &id) |
template<> | |
size_t | read< TokenBinding > (TokenBinding &tokenBinding, folly::io::Cursor &cursor) |
template<> | |
void | write< TokenBinding > (const TokenBinding &tokenBinding, folly::io::Appender &out) |
template<> | |
size_t | getSize< TokenBinding > (const TokenBinding &tokenBinding) |
template<typename ActionsType > | |
void | addAction (ActionsType &) |
template<typename ActionsType , typename ActionType , typename... Args> | |
void | addAction (ActionsType &acts, ActionType &&thisAct, Args &&...act) |
template<class N > | |
size_t | getBufSize (const Buf &buf) |
template<> | |
size_t | getBufSize< bits24 > (const Buf &buf) |
template<class T > | |
size_t | getSize (const T &t) |
template<class T > | |
void | checkWithin24bits (const typename std::enable_if< std::is_integral< T >::value &&!std::is_signed< T >::value, T >::type &value) |
template<class T > | |
void | writeBits24 (T len, folly::io::Appender &out) |
template<class T > | |
void | write (const T &in, folly::io::Appender &appender) |
template<class N , class T > | |
void | writeVector (const std::vector< T > &data, folly::io::Appender &out) |
template<> | |
void | writeBuf< bits24 > (const Buf &buf, folly::io::Appender &out) |
template<> | |
void | write< Extension > (const Extension &extension, folly::io::Appender &out) |
template<> | |
void | write< CertificateEntry > (const CertificateEntry &entry, folly::io::Appender &out) |
uint32_t | readBits24 (folly::io::Cursor &cursor) |
template<class N > | |
size_t | readBuf (Buf &buf, folly::io::Cursor &cursor) |
template<> | |
size_t | readBuf< bits24 > (Buf &buf, folly::io::Cursor &cursor) |
template<class T > | |
size_t | read (T &out, folly::io::Cursor &cursor) |
template<class N , class T > | |
size_t | readVector (std::vector< T > &out, folly::io::Cursor &cursor) |
void fizz::detail::addAction | ( | ActionsType & | ) |
Definition at line 67 of file Actions.h.
References testing::Args().
Referenced by fizz::server::detail::actions(), and fizz::client::detail::actions().
void fizz::detail::addAction | ( | ActionsType & | acts, |
ActionType && | thisAct, | ||
Args &&... | act | ||
) |
Definition at line 70 of file Actions.h.
void fizz::detail::checkWithin24bits | ( | const typename std::enable_if< std::is_integral< T >::value &&!std::is_signed< T >::value, T >::type & | value | ) |
Definition at line 290 of file ExportedAuthenticator.cpp.
References folly::IOBuf::create(), uint16_t, and writeBuf().
Referenced by fizz::ExportedAuthenticator::makeAuthenticator(), and fizz::ExportedAuthenticator::validate().
Buf fizz::detail::computeTranscript | ( | const Buf & | handshakeContext, |
const Buf & | authenticatorRequest, | ||
const Buf & | certificate | ||
) |
Definition at line 277 of file ExportedAuthenticator.cpp.
References folly::IOBuf::create(), uint16_t, and writeBuf().
Referenced by getEmptyAuthenticator(), fizz::ExportedAuthenticator::makeAuthenticator(), and fizz::ExportedAuthenticator::validate().
Buf fizz::detail::computeTranscriptHash | ( | std::unique_ptr< KeyDerivation > & | deriver, |
const Buf & | toBeHashed | ||
) |
Definition at line 254 of file ExportedAuthenticator.cpp.
References folly::IOBuf::create(), and folly::data().
Referenced by getEmptyAuthenticator(), fizz::ExportedAuthenticator::makeAuthenticator(), and fizz::ExportedAuthenticator::validate().
bool fizz::detail::decFunc | ( | EVP_CIPHER_CTX * | decryptCtx, |
const folly::IOBuf & | ciphertext, | ||
folly::IOBuf & | output, | ||
folly::MutableByteRange | tagOut | ||
) |
Definition at line 152 of file OpenSSLEVPCipher.cpp.
References folly::Range< Iter >::begin(), cipher, max, folly::Range< Iter >::size(), fizz::transformBuffer(), uint8_t, and folly::IOBuf::writableData().
Referenced by evpDecrypt().
bool fizz::detail::decFuncBlocks | ( | EVP_CIPHER_CTX * | decryptCtx, |
const folly::IOBuf & | ciphertext, | ||
folly::IOBuf & | output, | ||
folly::MutableByteRange | tagOut | ||
) |
Definition at line 100 of file OpenSSLEVPCipher.cpp.
References folly::Range< Iter >::begin(), cipher, max, gmock_output_test::output, folly::Range< Iter >::size(), and uint8_t.
Referenced by evpDecrypt().
std::tuple<Buf, std::vector<fizz::Extension> > fizz::detail::decodeAuthRequest | ( | const Buf & | authRequest | ) |
Definition at line 238 of file ExportedAuthenticator.cpp.
References folly::IOBuf::copyBuffer(), std::tr1::make_tuple(), and folly::gen::move.
Referenced by getEmptyAuthenticator(), and fizz::ExportedAuthenticator::makeAuthenticator().
folly::ssl::EvpPkeyUniquePtr fizz::detail::decodeECPublicKey | ( | folly::ByteRange | range, |
int | curveNid | ||
) |
Decodes a EC public key specified as a member of the curve curveNid.
Definition at line 84 of file OpenSSLKeyUtils.cpp.
References folly::Range< Iter >::data(), and folly::Range< Iter >::size().
Referenced by fizz::extensions::Validator::constructEcKeyFromBuf(), and fizz::detail::OpenSSLECKeyDecoder< T >::decode().
std::unique_ptr< folly::IOBuf > fizz::detail::ecSign | ( | folly::ByteRange | data, |
const folly::ssl::EvpPkeyUniquePtr & | pkey, | ||
int | hashNid | ||
) |
Definition at line 30 of file Signature.cpp.
References folly::IOBuf::create(), folly::Range< Iter >::data(), folly::portability::ssl::EVP_MD_CTX_new(), getHash(), getOpenSSLError(), and folly::Range< Iter >::size().
Referenced by fizz::OpenSSLSignature< T >::sign().
void fizz::detail::ecVerify | ( | folly::ByteRange | data, |
folly::ByteRange | signature, | ||
const folly::ssl::EvpPkeyUniquePtr & | pkey, | ||
int | hashNid | ||
) |
Definition at line 59 of file Signature.cpp.
References folly::Range< Iter >::data(), folly::portability::ssl::EVP_MD_CTX_new(), getHash(), getOpenSSLError(), and folly::Range< Iter >::size().
Referenced by fizz::OpenSSLSignature< T >::verify().
void fizz::detail::encFunc | ( | EVP_CIPHER_CTX * | encryptCtx, |
const folly::IOBuf & | plaintext, | ||
folly::IOBuf & | output | ||
) |
Definition at line 73 of file OpenSSLEVPCipher.cpp.
References cipher, max, fizz::transformBuffer(), uint8_t, and folly::IOBuf::writableData().
Referenced by evpEncrypt().
void fizz::detail::encFuncBlocks | ( | EVP_CIPHER_CTX * | encryptCtx, |
const folly::IOBuf & | plaintext, | ||
folly::IOBuf & | output | ||
) |
Definition at line 30 of file OpenSSLEVPCipher.cpp.
References cipher, max, gmock_output_test::output, and uint8_t.
Referenced by evpEncrypt().
std::unique_ptr< folly::IOBuf > fizz::detail::encodeECPublicKey | ( | const folly::ssl::EvpPkeyUniquePtr & | key | ) |
Encodes the public key and returns a buffer.
Definition at line 114 of file OpenSSLKeyUtils.cpp.
Referenced by fizz::detail::OpenSSLECKeyEncoder::encode(), and fizz::extensions::TokenBindingConstructor::encodeEcKey().
std::unique_ptr< folly::IOBuf > fizz::detail::encodeECPublicKey | ( | const folly::ssl::EcKeyUniquePtr & | ecKey | ) |
Definition at line 123 of file OpenSSLKeyUtils.cpp.
References folly::IOBuf::create(), and group.
folly::Optional< std::unique_ptr< folly::IOBuf > > fizz::detail::evpDecrypt | ( | std::unique_ptr< folly::IOBuf > && | ciphertext, |
const folly::IOBuf * | associatedData, | ||
folly::ByteRange | iv, | ||
folly::MutableByteRange | tag, | ||
bool | useBlockOps, | ||
EVP_CIPHER_CTX * | decryptCtx | ||
) |
Definition at line 264 of file OpenSSLEVPCipher.cpp.
References folly::IOBuf::append(), folly::IOBuf::create(), current, folly::Range< Iter >::data(), decFunc(), decFuncBlocks(), max, folly::gen::move, folly::none, gmock_output_test::output, folly::Range< Iter >::size(), and fizz::trimBytes().
Referenced by fizz::OpenSSLEVPCipher< EVPImpl >::tryDecrypt().
std::unique_ptr< folly::IOBuf > fizz::detail::evpEncrypt | ( | std::unique_ptr< folly::IOBuf > && | plaintext, |
const folly::IOBuf * | associatedData, | ||
folly::ByteRange | iv, | ||
size_t | tagLen, | ||
bool | useBlockOps, | ||
size_t | headroom, | ||
EVP_CIPHER_CTX * | encryptCtx | ||
) |
Definition at line 186 of file OpenSSLEVPCipher.cpp.
References folly::IOBuf::advance(), folly::IOBuf::append(), folly::IOBuf::create(), current, folly::Range< Iter >::data(), encFunc(), encFuncBlocks(), max, folly::gen::move, gmock_output_test::output, folly::IOBuf::prependChain(), folly::IOBuf::prev(), folly::IOBuf::tailroom(), and folly::IOBuf::writableData().
Referenced by fizz::OpenSSLEVPCipher< EVPImpl >::encrypt().
folly::ssl::EvpPkeyUniquePtr fizz::detail::generateECKeyPair | ( | int | curveNid | ) |
Generates an new EVP_PKEY on the curve. Throws an exception on error.
Definition at line 58 of file OpenSSLKeyUtils.cpp.
References params, and validateECKey().
Referenced by fizz::detail::OpenSSLECKeyExchange< T >::generateKeyPair().
std::unique_ptr< folly::IOBuf > fizz::detail::generateEvpSharedSecret | ( | const folly::ssl::EvpPkeyUniquePtr & | key, |
const folly::ssl::EvpPkeyUniquePtr & | peerKey | ||
) |
Generates a shared secred from a private key, key and the peerKey public key.
Definition at line 34 of file OpenSSLKeyUtils.cpp.
References folly::IOBuf::create().
Referenced by fizz::detail::OpenSSLECKeyExchange< T >::generateSharedSecret().
size_t fizz::detail::getBufSize | ( | const Buf & | buf | ) |
Definition at line 33 of file Types-inl.h.
|
inline |
Definition at line 38 of file Types-inl.h.
References fizz::detail::bits24::size.
Referenced by fizz::detail::Sizer< CertificateEntry >::getSize().
Buf fizz::detail::getEmptyAuthenticator | ( | std::unique_ptr< KeyDerivation > & | kderiver, |
Buf | authRequest, | ||
Buf | handshakeContext, | ||
Buf | finishedMacKey | ||
) |
Definition at line 361 of file ExportedAuthenticator.cpp.
References fizz::CertificateMsg::certificate_request_context, computeTranscript(), computeTranscriptHash(), decodeAuthRequest(), fizz::encodeHandshake(), getFinishedData(), folly::gen::move, and fizz::Finished::verify_data.
Referenced by fizz::ExportedAuthenticator::makeAuthenticator(), and fizz::ExportedAuthenticator::validate().
Buf fizz::detail::getFinishedData | ( | std::unique_ptr< KeyDerivation > & | deriver, |
Buf & | finishedMacKey, | ||
const Buf & | finishedTranscript | ||
) |
Definition at line 299 of file ExportedAuthenticator.cpp.
References folly::IOBuf::create(), and folly::data().
Referenced by fizz::client::test::ClientProtocolTest::doFinishedFlow(), getEmptyAuthenticator(), fizz::ExportedAuthenticator::makeAuthenticator(), fizz::test::MockHandshakeContext::setDefaults(), fizz::client::test::TEST_F(), fizz::server::test::TEST_F(), and fizz::ExportedAuthenticator::validate().
|
static |
Definition at line 22 of file Signature.cpp.
Referenced by ecSign(), ecVerify(), rsaPssSign(), and rsaPssVerify().
std::string fizz::detail::getOpenSSLError | ( | ) |
Returns the current error in the thread queue as a string.
Definition at line 147 of file OpenSSLKeyUtils.cpp.
References string.
Referenced by ecSign(), ecVerify(), rsaPssSign(), rsaPssVerify(), and fizz::extensions::Validator::verify().
folly::Optional< std::vector< SignatureScheme > > fizz::detail::getRequestedSchemes | ( | const std::vector< fizz::Extension > & | authRequestExtensions | ) |
Definition at line 311 of file ExportedAuthenticator.cpp.
References folly::none.
Referenced by getSignatureScheme().
folly::Optional< SignatureScheme > fizz::detail::getSignatureScheme | ( | const std::vector< SignatureScheme > & | supportedSchemes, |
const SelfCert & | cert, | ||
const std::vector< fizz::Extension > & | authRequestExtensions | ||
) |
Definition at line 327 of file ExportedAuthenticator.cpp.
References getRequestedSchemes(), and fizz::SelfCert::getSigSchemes().
Referenced by fizz::ExportedAuthenticator::makeAuthenticator().
size_t fizz::detail::getSize | ( | const T & | t | ) |
Definition at line 43 of file Types-inl.h.
Referenced by fizz::detail::Sizer< CertificateEntry >::getSize(), and getSize< TokenBinding >().
size_t fizz::detail::getSize< TokenBinding > | ( | const TokenBinding & | tokenBinding | ) |
size_t fizz::detail::getSize< TokenBindingID > | ( | const TokenBindingID & | id | ) |
size_t fizz::detail::read | ( | T & | out, |
folly::io::Cursor & | cursor | ||
) |
Definition at line 258 of file Types-inl.h.
Referenced by folly::gen::detail::FileReader::apply(), BENCHMARK(), folly::portability::ssl::BIO_meth_set_read(), wangle::Pipeline< int >::create(), fizz::server::TicketCodec< Storage >::decode(), fizz::decode(), fizz::decode< KeyUpdate >(), fizz::decode< NewSessionTicket >(), fizz::server::detail::decodeCookie(), EventHandlerTest::efd_read(), upload.MercurialVCS::GetBaseFile(), fizz::getBinderLength(), fizz::getExtension(), fizz::test::ExtensionsTest::getExtensions(), folly::getSchedTimeWaiting(), fizz::tool::TerminalInputHandler::handlerReady(), folly::symbolizer::ElfFile::init(), folly::ssl::detail::isSSLLockDisabled(), fizz::MockEncryptedReadRecordLayer::MockEncryptedReadRecordLayer(), folly::AsyncIO::pollCompleted(), pwritev(), fizz::detail::Reader< KeyShareEntry >::read(), fizz::detail::Reader< PskIdentity >::read(), fizz::detail::Reader< ServerName >::read(), testing::internal::posix::Read(), read< TokenBinding >(), read< TokenBindingID >(), read_all(), fizz::server::readClientCertificate(), readFromFD(), folly::readFull(), folly::readNoInt(), readUntilEmpty(), fizz::detail::ReadVector< N, T >::readVector(), fizz::detail::ReadVector< bits24, T >::readVector(), folly::test::runCloseTest(), folly::test::runKillTest(), folly::symbolizer::Dwarf::Section::Section(), BroadcastHandlerTest::SetUp(), TEST(), folly::test::TEST(), fizz::test::TEST_F(), TEST_F(), test_message(), test_message_count_body(), test_multiple3(), and test_scan().
size_t fizz::detail::read< TokenBinding > | ( | TokenBinding & | tokenBinding, |
folly::io::Cursor & | cursor | ||
) |
Definition at line 39 of file Types.cpp.
References read().
size_t fizz::detail::read< TokenBindingID > | ( | TokenBindingID & | id, |
folly::io::Cursor & | cursor | ||
) |
|
inline |
Definition at line 210 of file Types-inl.h.
References addr, folly::Endian::big(), data, folly::io::detail::CursorBase< Derived, BufType >::pull(), uint32_t, and uint8_t.
Referenced by fizz::decode(), fizz::ReadRecordLayer::decodeHandshakeMessage(), readBuf< bits24 >(), fizz::detail::ReadVector< bits24, T >::readVector(), and fizz::test::TEST().
size_t fizz::detail::readBuf | ( | Buf & | buf, |
folly::io::Cursor & | cursor | ||
) |
Definition at line 220 of file Types-inl.h.
References folly::io::detail::CursorBase< Derived, BufType >::clone(), and folly::io::detail::CursorBase< Derived, BufType >::readBE().
Referenced by folly::AsyncSocket::handleRead(), folly::test::MockReadCallback::readBufferAvailable(), proxygen::HTTPSession::readBufferAvailable(), fizz::test::HandshakeTest::resetTransportsAndStartCookieHandshake(), TEST(), and TEST_F().
|
inline |
Definition at line 227 of file Types-inl.h.
References readBits24(), and fizz::detail::bits24::size.
Referenced by fizz::detail::Reader< CertificateEntry >::read().
size_t fizz::detail::readVector | ( | std::vector< T > & | out, |
folly::io::Cursor & | cursor | ||
) |
Definition at line 303 of file Types-inl.h.
std::unique_ptr< folly::IOBuf > fizz::detail::rsaPssSign | ( | folly::ByteRange | data, |
const folly::ssl::EvpPkeyUniquePtr & | pkey, | ||
int | hashNid | ||
) |
Definition at line 85 of file Signature.cpp.
References folly::IOBuf::create(), folly::Range< Iter >::data(), folly::portability::ssl::EVP_MD_CTX_new(), getHash(), getOpenSSLError(), and folly::Range< Iter >::size().
Referenced by fizz::OpenSSLSignature< T >::sign().
void fizz::detail::rsaPssVerify | ( | folly::ByteRange | data, |
folly::ByteRange | signature, | ||
const folly::ssl::EvpPkeyUniquePtr & | pkey, | ||
int | hashNid | ||
) |
Definition at line 123 of file Signature.cpp.
References folly::Range< Iter >::data(), folly::portability::ssl::EVP_MD_CTX_new(), getHash(), getOpenSSLError(), and folly::Range< Iter >::size().
Referenced by fizz::OpenSSLSignature< T >::verify().
void fizz::detail::validateECKey | ( | const folly::ssl::EvpPkeyUniquePtr & | key, |
int | curveNid | ||
) |
Validates whether or not the EVP_PKEY belongs to the curve. If not, this throws an exception.
Definition at line 16 of file OpenSSLKeyUtils.cpp.
Referenced by generateECKeyPair(), fizz::OpenSSLSignature< T >::setKey(), fizz::detail::OpenSSLECKeyExchange< T >::setPrivateKey(), and fizz::test::TEST().
void fizz::detail::write | ( | const T & | in, |
folly::io::Appender & | appender | ||
) |
Definition at line 112 of file Types-inl.h.
Referenced by folly::PriorityLifoSemMPMCQueue< T, kBehavior >::addWithPriority(), fizz::server::appendClientCertificate(), fizz::test::appWrite(), folly::AsyncPipeWriter::AsyncPipeWriter(), BENCHMARK(), folly::portability::ssl::BIO_meth_set_write(), fizz::test::ExtensionsTest::checkEncode(), folly::gen::detail::FileWriter::compose(), fizz::extensions::TokenBindingUtils::constructMessage(), wangle::Pipeline< int >::create(), fizz::client::test::ClientProtocolTest::doFinishedFlow(), EventHandlerTest::efd_write(), fizz::server::TicketCodec< Storage >::encode(), fizz::encode< Alert >(), fizz::encode< CertificateVerify >(), fizz::encode< CompressedCertificate & >(), fizz::encode< const ClientHello & >(), fizz::encode< HelloRetryRequest >(), fizz::encode< KeyUpdate >(), fizz::encode< NewSessionTicket >(), fizz::encode< ServerHello >(), fizz::server::detail::encodeCookie(), fizz::encodeExtension(), fizz::encodeHandshake(), fizz::encodeHkdfLabel(), encryptGCM(), folly::NotificationQueue< folly::AsyncServerSocket::QueueMessage >::ensureSignalLocked(), fizz::server::test::AsyncFizzServerTest::expectAppClose(), fizz::client::test::AsyncFizzClientTest::expectAppClose(), fizz::test::ProtocolTest< ClientTypes, Actions >::expectError(), folly::gen::detail::FileWriter::flushBuffer(), fizz::sm::generateTicket(), fizz::sm::getCertificateRequest(), fizz::sm::getEarlyDataParams(), fizz::sm::getMaxEarlyDataSize(), fizz::server::detail::handleAppClose(), fizz::client::detail::handleAppClose(), fizz::sm::handleEarlyAppWrite(), fizz::server::detail::handleError(), fizz::client::detail::handleError(), fizz::FizzBase< Derived, ActionMoveVisitor, StateMachine >::moveToErrorState(), fizz::test::TestStateMachine::processAppWrite(), fizz::test::TestStateMachine::processEarlyAppWrite(), fizz::FizzBase< Derived, ActionMoveVisitor, StateMachine >::processPendingEvents(), pwritev(), TelnetHandler::read(), FileServerHandler::read(), EchoHandler::read(), BogoTestServer::readBufferAvailable(), BogoTestClient::readBufferAvailable(), FileServerHandler::readException(), folly::TEST(), TEST(), folly::test::TEST(), fizz::test::TEST_F(), fizz::server::test::TEST_F(), fizz::client::test::TEST_F(), testing::internal::TestResultAccessor::test_part_results(), gtest_output_test.GTestOutputTest::testOutput(), TelnetHandler::transportActive(), ThreadPrintingHandler::transportActive(), FileServerHandler::transportActive(), wangle::Handler< Resp, Resp, folly::Req, folly::Req >::transportInactive(), release_docs.WikiBrancher::UpdateLinksInBranchedFiles(), fizz::PlaintextWriteRecordLayer::write(), folly::gen::detail::FileWriter::write(), fizz::detail::Writer< KeyShareEntry >::write(), fizz::detail::Writer< PskIdentity >::write(), fizz::detail::Writer< ServerName >::write(), testing::internal::posix::Write(), write< TokenBinding >(), write< TokenBindingID >(), fizz::WriteRecordLayer::writeAlert(), fizz::WriteRecordLayer::writeAppData(), folly::AsyncPipeWriter::writeChain(), folly::writeFull(), fizz::WriteRecordLayer::writeHandshake(), fizz::PlaintextWriteRecordLayer::writeInitialClientHello(), fizz::test::writeNewSessionTicket(), folly::writeNoInt(), writeToFD(), writeUntilFull(), fizz::detail::WriterVector< N, T >::writeVector(), and fizz::detail::WriterVector< bits24, T >::writeVector().
|
inline |
Definition at line 203 of file Types-inl.h.
|
inline |
Definition at line 194 of file Types-inl.h.
References type, and folly::io::detail::Writable< Derived >::writeBE().
void fizz::detail::write< TokenBinding > | ( | const TokenBinding & | tokenBinding, |
folly::io::Appender & | out | ||
) |
Definition at line 50 of file Types.cpp.
References write().
void fizz::detail::write< TokenBindingID > | ( | const TokenBindingID & | id, |
folly::io::Appender & | out | ||
) |
Definition at line 28 of file Types.cpp.
References write().
void fizz::detail::writeBits24 | ( | T | len, |
folly::io::Appender & | out | ||
) |
Definition at line 102 of file Types-inl.h.
References addr, folly::Endian::big(), folly::io::detail::Writable< Derived >::push(), fizz::detail::bits24::size, T, and uint8_t.
Referenced by fizz::encode< CompressedCertificate & >(), fizz::encodeHandshake(), fizz::test::TEST(), writeBuf< bits24 >(), and fizz::detail::WriterVector< bits24, T >::writeVector().
void fizz::detail::writeBuf | ( | const Buf & | buf, |
folly::io::Appender & | out | ||
) |
Definition at line 266 of file ExportedAuthenticator.cpp.
References current, i, and folly::io::detail::Writable< Derived >::push().
Referenced by computeFinishedTranscript(), computeTranscript(), proxygen::fakeMockCodec(), proxygen::HTTPCodec::generateConnectionPreface(), proxygen::HTTP2Codec::getUserAgent(), MockCodecDownstreamTest::MockCodecDownstreamTest(), proxygen::PassThroughHTTPCodecFilter::PassThroughHTTPCodecFilter(), proxygen::HTTP2Codec::requestUpgrade(), proxygen::HTTPSession::runLoopCallback(), proxygen::HTTPSession::sendHeaders(), FlowControlFilterTest< initSize >::SetUp(), MockHTTPUpstreamTest::SetUp(), proxygen::HTTP1xCodec::supportsPushTransactions(), proxygen::SPDYCodec::supportsPushTransactions(), TEST(), TEST_F(), TEST_P(), MockCodecDownstreamTest::testConnFlowControlBlocked(), fizz::ExportedAuthenticator::validate(), writeVector(), and proxygen::FlowControlFilter::Callback::~Callback().
|
inline |
Definition at line 179 of file Types-inl.h.
References current, i, folly::io::detail::Writable< Derived >::push(), and writeBits24().
void fizz::detail::writeVector | ( | const std::vector< T > & | data, |
folly::io::Appender & | out | ||
) |
Definition at line 149 of file Types-inl.h.
References current, i, folly::io::detail::Writable< Derived >::push(), folly::io::detail::Writable< Derived >::writeBE(), and writeBuf().