Fix shared cipher linkage and transport type includes
This commit is contained in:
1 parent
7cffb15c73
commit
ad7050ad2c
2 files changed
+9
-1
No files matched your search
@@ -6,7 +6,7 @@
|
||||
#include "chat_feedback.h"
|
||||
#include "member_sync.h"
|
||||
#include "../utun_instance.h"
|
||||
#include "../transport_layer/etcp_connections.h"
|
||||
#include "../transport_layer/etcp.h"
|
||||
#include "../routing_layer/etcp_router.h"
|
||||
#include "../routing_layer/topo_node_sqlite.h"
|
||||
#include "../media_delivery/media_index.h"
|
||||
|
||||
@@ -14,6 +14,10 @@
|
||||
#include <stddef.h>
|
||||
#include "../media_async/media_crypto.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
#define DM_CONTENT_KEY_SIZE 32
|
||||
#define DM_NONCE_SIZE 13 /* AES-CCM требует ровно 13 байт */
|
||||
@@ -35,4 +39,8 @@ int dm_derive_content_key(const uint8_t my_priv[32], const uint8_t peer_pub[32],
|
||||
* не пересекается между направлениями (author различается). */
|
||||
void dm_build_nonce(uint64_t conv_id, uint64_t author, uint64_t seq, uint8_t nonce[DM_NONCE_SIZE]);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* DM_CRYPTO_H */
|
||||
Reference in new issue
Block a user