Struct wow_srp::PublicKey [−][src]
pub struct PublicKey { /* fields omitted */ }
Expand description
Represents a public key for both the client and server.
This is used instead of a raw array in order to move the error of verifying the key out of the proof functions in order to increase readability.
Will return an error if all elements are 0, or the bytes represented as an integer modulus the large safe prime is equal to 0. Since the large safe prime multiplied by 2 results in a 33 byte value it is unrepresentable as a public key and thus the only two failure opportunities are if the key is exactly zero or if it is exactly equal to the large safe prime.
Implementations
Creates the struct from little endian bytes.
Values are stored internally as little endian so no reversal occurs.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl UnwindSafe for PublicKey