|
112 | 112 | */ |
113 | 113 | #define SBP_MSG_CERTIFICATE_CHAIN_ENCODED_LEN 135u |
114 | 114 |
|
115 | | -#define SBP_MSG_ECDSA_SIGNATURE 0x0C06 |
| 115 | +#define SBP_MSG_ECDSA_SIGNATURE 0x0C07 |
116 | 116 | #define SBP_ECDSA_SIGNATURE_CRC_TYPE_MASK (0x3u) |
117 | 117 | #define SBP_ECDSA_SIGNATURE_CRC_TYPE_SHIFT (0u) |
118 | 118 | #define SBP_ECDSA_SIGNATURE_CRC_TYPE_GET(flags) \ |
|
142 | 142 | * msg_ecdsa_signature_t::signature (legacy API) before the maximum SBP message |
143 | 143 | * size is exceeded |
144 | 144 | */ |
145 | | -#define SBP_MSG_ECDSA_SIGNATURE_SIGNATURE_MAX 64u |
| 145 | +#define SBP_MSG_ECDSA_SIGNATURE_SIGNATURE_MAX 72u |
146 | 146 |
|
147 | 147 | /** |
148 | 148 | * The maximum number of items that can be stored in |
149 | 149 | * sbp_msg_ecdsa_signature_t::signed_messages (V4 API) or |
150 | 150 | * msg_ecdsa_signature_t::signed_messages (legacy API) before the maximum SBP |
151 | 151 | * message size is exceeded |
152 | 152 | */ |
153 | | -#define SBP_MSG_ECDSA_SIGNATURE_SIGNED_MESSAGES_MAX 184u |
| 153 | +#define SBP_MSG_ECDSA_SIGNATURE_SIGNED_MESSAGES_MAX 175u |
154 | 154 |
|
155 | 155 | /** |
156 | 156 | * Encoded length of sbp_msg_ecdsa_signature_t (V4 API) and |
|
165 | 165 | * See the documentation for libsbp for more details regarding the message |
166 | 166 | * structure and its variable length component(s) |
167 | 167 | */ |
168 | | -#define SBP_MSG_ECDSA_SIGNATURE_ENCODED_OVERHEAD 71u |
| 168 | +#define SBP_MSG_ECDSA_SIGNATURE_ENCODED_OVERHEAD 80u |
| 169 | + |
| 170 | +#define SBP_MSG_ECDSA_SIGNATURE_DEP 0x0C06 |
| 171 | +#define SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_MASK (0x3u) |
| 172 | +#define SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_SHIFT (0u) |
| 173 | +#define SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_GET(flags) \ |
| 174 | + ((u8)((u8)((flags) >> SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_SHIFT) & \ |
| 175 | + SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_MASK)) |
| 176 | +#define SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_SET(flags, val) \ |
| 177 | + do { \ |
| 178 | + (flags) = (u8)((flags & (~(SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_MASK \ |
| 179 | + << SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_SHIFT))) | \ |
| 180 | + (((val) & (SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_MASK)) \ |
| 181 | + << (SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_SHIFT))); \ |
| 182 | + } while (0) |
| 183 | + |
| 184 | +#define SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_24_BIT_CRCS_FROM_RTCM_FRAMING (0) |
| 185 | +#define SBP_ECDSA_SIGNATURE_DEP_CRC_TYPE_16_BIT_CRCS_FROM_SBP_FRAMING (1) |
| 186 | +/** |
| 187 | + * The maximum number of items that can be stored in |
| 188 | + * sbp_msg_ecdsa_signature_dep_t::certificate_id (V4 API) or |
| 189 | + * msg_ecdsa_signature_dep_t::certificate_id (legacy API) before the maximum SBP |
| 190 | + * message size is exceeded |
| 191 | + */ |
| 192 | +#define SBP_MSG_ECDSA_SIGNATURE_DEP_CERTIFICATE_ID_MAX 4u |
| 193 | + |
| 194 | +/** |
| 195 | + * The maximum number of items that can be stored in |
| 196 | + * sbp_msg_ecdsa_signature_dep_t::signature (V4 API) or |
| 197 | + * msg_ecdsa_signature_dep_t::signature (legacy API) before the maximum SBP |
| 198 | + * message size is exceeded |
| 199 | + */ |
| 200 | +#define SBP_MSG_ECDSA_SIGNATURE_DEP_SIGNATURE_MAX 64u |
| 201 | + |
| 202 | +/** |
| 203 | + * The maximum number of items that can be stored in |
| 204 | + * sbp_msg_ecdsa_signature_dep_t::signed_messages (V4 API) or |
| 205 | + * msg_ecdsa_signature_dep_t::signed_messages (legacy API) before the maximum |
| 206 | + * SBP message size is exceeded |
| 207 | + */ |
| 208 | +#define SBP_MSG_ECDSA_SIGNATURE_DEP_SIGNED_MESSAGES_MAX 184u |
| 209 | + |
| 210 | +/** |
| 211 | + * Encoded length of sbp_msg_ecdsa_signature_dep_t (V4 API) and |
| 212 | + * msg_ecdsa_signature_dep_t (legacy API) |
| 213 | + * |
| 214 | + * This type is not fixed size and an instance of this message may be longer |
| 215 | + * than the value indicated by this symbol. Users of the V4 API should call |
| 216 | + * #sbp_msg_ecdsa_signature_dep_encoded_len to determine the actual size of an |
| 217 | + * instance of this message. Users of the legacy API are required to track the |
| 218 | + * encoded message length when interacting with the legacy type. |
| 219 | + * |
| 220 | + * See the documentation for libsbp for more details regarding the message |
| 221 | + * structure and its variable length component(s) |
| 222 | + */ |
| 223 | +#define SBP_MSG_ECDSA_SIGNATURE_DEP_ENCODED_OVERHEAD 71u |
169 | 224 |
|
170 | 225 | #define SBP_MSG_ED25519_CERTIFICATE_DEP 0x0C02 |
171 | 226 | /** |
|
0 commit comments