Struct rubble::ecdh::PublicKey [−][src]
Expand description
A P-256 public key (point on the curve) in uncompressed format.
The encoding is as specified in SEC 1: Elliptic Curve Cryptography, but without the leading
0x04
byte: The first 32 Bytes are the big-endian encoding of the point’s X coordinate, and the
remaining 32 Bytes are the Y coordinate, encoded the same way.
Note that this type does not provide any validity guarantees (unlike PrivateKey
implementors): It is possible to represent invalid public P-256 keys, such as the point at
infinity, with this type. The other APIs in this module are designed to take that into account.
Tuple Fields
0: [u8; 64]