decodeEcdhP256Point

fnbool decodeEcdhP256Point(scope const(ubyte)[] encoded, out ubyte[32] x, out ubyte[32] y)

Decodes and validates an RFC 5656 P-256 public point.

Only SEC 1 uncompressed encoding is accepted: 0x04 || x || y, with 32-byte coordinates. Coordinates must be in the field and satisfy the P-256 curve equation.

Parameters

encodedEncoded point from the SSH string.
xReceives the 32-byte x-coordinate.
yReceives the 32-byte y-coordinate.

Returns

true when the encoding is a valid P-256 point.