-
Hello, Just to make it clear, I know approximately nothing about EC cryptography and what every notion means. I'm currently implementing a subset of Google UKey2, for an open source project I'm making, to interface with hardware. Basically, I have a keypair and want to store the public key inside this protobuf structure: // A convenience proto for encoding NIST P-256 elliptic curve public keys
message EcP256PublicKey {
// x and y are encoded in big-endian two's complement (slightly wasteful)
// Client MUST verify (x,y) is a valid point on NIST P256
required bytes x = 1;
required bytes y = 2;
} FYI, The issue is, I know nothing about ECC and the
Which one is the one that Google probably expects from their spec? Thank you very much in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
For what you're doing you'll need |
Beta Was this translation helpful? Give feedback.
For what you're doing you'll need
EncodedPoint
, in particularEncodedPoint::coordinates
.