guint64 time;
rspamd_inet_addr_t *addr;
struct rspamd_fuzzy_storage_ctx *ctx;
- guchar nm[rspamd_cryptobox_NMBYTES];
+ guchar nm[rspamd_cryptobox_MAX_NMBYTES];
};
static gboolean
RSPAMD_PACKED(rspamd_fuzzy_encrypted_req_hdr) {
guchar magic[4];
guchar reserved[8];
- guchar pubkey[rspamd_cryptobox_PKBYTES];
- guchar nonce[rspamd_cryptobox_NONCEBYTES];
- guchar mac[rspamd_cryptobox_MACBYTES];
+ guchar pubkey[32];
+ guchar nonce[rspamd_cryptobox_MAX_NONCEBYTES];
+ guchar mac[rspamd_cryptobox_MAX_MACBYTES];
};
RSPAMD_PACKED(rspamd_fuzzy_encrypted_cmd) {
};
RSPAMD_PACKED(rspamd_fuzzy_encrypted_rep_hdr) {
- guchar nonce[rspamd_cryptobox_NONCEBYTES];
- guchar mac[rspamd_cryptobox_MACBYTES];
+ guchar nonce[rspamd_cryptobox_MAX_NONCEBYTES];
+ guchar mac[rspamd_cryptobox_MAX_MACBYTES];
};
RSPAMD_PACKED(rspamd_fuzzy_encrypted_reply) {