byteRanges

Specifies the byte ranges in which the X and Y coordinates of an ECDSA public key appear for the P384 curve. For P384, the public key is typically 97 bytes long: a single byte prefix (usually 0x04 for uncompressed keys), followed by 48 bytes for the X coordinate, and then 48 bytes for the Y coordinate.

P384+CurveType.swift:23
static let byteRanges: (x: Range<Int>, y: Range<Int>)

Thus:

  • The X coordinate spans bytes 1 through 48.

  • The Y coordinate spans bytes 49 through 96.