| 102 | #define ACT_THREE_SIZE 66 /* ARM's stupid ABI adds padding. */ |
| 103 | |
| 104 | static inline void check_act_three(const struct act_three *act3) |
| 105 | { |
| 106 | /* BOLT #8: |
| 107 | * |
| 108 | * 1 byte for the handshake version, 33 bytes for the |
| 109 | * compressed ephemeral public key of the initiator, and 16 |
| 110 | * bytes for the `poly1305` tag. |
| 111 | */ |
| 112 | BUILD_ASSERT(sizeof(act3->v) == 1); |
| 113 | BUILD_ASSERT(sizeof(act3->ciphertext) == 33 + 16); |
| 114 | BUILD_ASSERT(sizeof(act3->tag) == 16); |
| 115 | } |
| 116 | |
| 117 | /* BOLT #8: |
| 118 | * |
no outgoing calls
no test coverage detected