Struct wow_srp::header_crypto::EncrypterHalf [−][src]
pub struct EncrypterHalf { /* fields omitted */ }
Expand description
Encryption part of a HeaderCrypto
.
Intended to be kept with the writer half of a connection.
Use the Encrypter
functions to encrypt.
Implementations
Tests whether both halves originate from the same HeaderCrypto
and can be EncrypterHalf::unsplit
.
Unsplits the two halves.
Errors
This will error if the two halfs do not originate from the same
HeaderCrypto::split
.
This is a logic bug and should either lead
to panic or some other highly visible event.
If EncrypterHalf::is_pair_of
returns true
this will not
error.
Trait Implementations
Use either the client
or the server
Write
functions, or
the client
or the server array functions.
Write
wrapper for Encrypter::encrypt_server_header
. Read more
Write
wrapper for Encrypter::encrypt_server_header
. Read more
Convenience function for encrypting client headers. Read more