| 72 | #define ACT_TWO_SIZE 50 /* ARM's stupid ABI adds padding. */ |
| 73 | |
| 74 | static inline void check_act_two(const struct act_two *act2) |
| 75 | { |
| 76 | /* BOLT #8: |
| 77 | * 1 byte for the handshake version, |
| 78 | * 33 bytes for the compressed ephemeral public key of the initiator, and |
| 79 | * 16 bytes for the `poly1305` tag. |
| 80 | */ |
| 81 | BUILD_ASSERT(sizeof(act2->v) == 1); |
| 82 | BUILD_ASSERT(sizeof(act2->pubkey) == 33); |
| 83 | BUILD_ASSERT(sizeof(act2->tag) == 16); |
| 84 | } |
| 85 | |
| 86 | /* BOLT #8: |
| 87 | * |