| 43 | #define ACT_ONE_SIZE 50 /* ARM's stupid ABI adds padding. */ |
| 44 | |
| 45 | static inline void check_act_one(const struct act_one *act1) |
| 46 | { |
| 47 | /* BOLT #8: |
| 48 | * |
| 49 | * : 1 byte for the handshake version, 33 bytes for the compressed |
| 50 | * ephemeral public key of the initiator, and 16 bytes for the |
| 51 | * `poly1305` tag. |
| 52 | */ |
| 53 | BUILD_ASSERT(sizeof(act1->v) == 1); |
| 54 | BUILD_ASSERT(sizeof(act1->pubkey) == 33); |
| 55 | BUILD_ASSERT(sizeof(act1->tag) == 16); |
| 56 | } |
| 57 | |
| 58 | /* BOLT #8: |
| 59 | * |