/ docs / encrypted_payload.rst
encrypted_payload.rst
 1  +------------+-------------+-----------+--------------------------------------------+
 2  | Field Size | Description | Data type | Comments                                   |
 3  +============+=============+===========+============================================+
 4  | 16         | IV          | uchar[]   | Initialization Vector used for AES-256-CBC |
 5  +------------+-------------+-----------+--------------------------------------------+
 6  | 2          | Curve type  | uint16_t  | Elliptic Curve type 0x02CA (714)           |
 7  +------------+-------------+-----------+--------------------------------------------+
 8  | 2          | X length    | uint16_t  | Length of X component of public key R      |
 9  +------------+-------------+-----------+--------------------------------------------+
10  | X length   | X           | uchar[]   | X component of public key R                |
11  +------------+-------------+-----------+--------------------------------------------+
12  | 2          | Y length    | uint16_t  | Length of Y component of public key R      |
13  +------------+-------------+-----------+--------------------------------------------+
14  | Y length   | Y           | uchar[]   | Y component of public key R                |
15  +------------+-------------+-----------+--------------------------------------------+
16  | ?          | encrypted   | uchar[]   | Cipher text                                |
17  +------------+-------------+-----------+--------------------------------------------+
18  | 32         | MAC         | uchar[]   | HMACSHA256 Message Authentication Code     |
19  +------------+-------------+-----------+--------------------------------------------+