add cpp guard
This commit is contained in:
parent
16fca77ff1
commit
8d81a6d123
@ -1,6 +1,10 @@
|
|||||||
#ifndef P2PRNG_H
|
#ifndef P2PRNG_H
|
||||||
#define P2PRNG_H
|
#define P2PRNG_H
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
// # generate random number and mac
|
// # generate random number and mac
|
||||||
@ -47,4 +51,8 @@ int p2prng_combine_update(uint8_t out_hash[P2PRNG_COMBINE_LEN], const uint8_t pr
|
|||||||
// - calls p2prng_auth_create()
|
// - calls p2prng_auth_create()
|
||||||
int p2prng_gen_and_auth(uint8_t out_rng[P2PRNG_LEN], uint8_t out_key[P2PRNG_MAC_KEY_LEN], uint8_t out_mac[P2PRNG_MAC_LEN], const uint8_t* is, uint32_t is_len);
|
int p2prng_gen_and_auth(uint8_t out_rng[P2PRNG_LEN], uint8_t out_key[P2PRNG_MAC_KEY_LEN], uint8_t out_mac[P2PRNG_MAC_LEN], const uint8_t* is, uint32_t is_len);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // P2PRNG_H
|
#endif // P2PRNG_H
|
||||||
|
Loading…
Reference in New Issue
Block a user