Browse Source

fixed length #define

master
root 5 years ago
parent
commit
0d1d652253
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      inc/lc6_crypto.h

+ 4
- 0
inc/lc6_crypto.h View File

#ifndef LC6_SSL_H #ifndef LC6_SSL_H
#define LC6_SSL_H #define LC6_SSL_H


#include <sodium.h>
#include "../inc/lc6_common.h" #include "../inc/lc6_common.h"


int lc6crypto_init(void); int lc6crypto_init(void);


void lc6crypto_random(unsigned char*, int); void lc6crypto_random(unsigned char*, int);


#define LC6_CRYPTO_HASHLEN crypto_generichash_BYTES
#define LC6_CRYPTO_HASHSIGNLEN (crypto_secretbox_NONCEBYTES+crypto_box_MACBYTES+crypto_generichash_BYTES)

#endif #endif

Loading…
Cancel
Save