Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
xoodyak.h
Go to the documentation of this file.
1
12
13#ifndef INFUSE_SDK_INCLUDE_INFUSE_CRYPTO_XOODYAK_H_
14#define INFUSE_SDK_INCLUDE_INFUSE_CRYPTO_XOODYAK_H_
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
26
42int xoodyak_aead_encrypt(unsigned char *c, unsigned long long *clen, const unsigned char *m,
43 unsigned long long mlen, const unsigned char *ad, unsigned long long adlen,
44 unsigned char *tag, const unsigned char *npub, const unsigned char *k);
45
62int xoodyak_aead_decrypt(unsigned char *m, unsigned long long *mlen, const unsigned char *tag,
63 const unsigned char *c, unsigned long long clen, const unsigned char *ad,
64 unsigned long long adlen, const unsigned char *npub,
65 const unsigned char *k);
66
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /* INFUSE_SDK_INCLUDE_INFUSE_CRYPTO_XOODYAK_H_ */
int xoodyak_aead_decrypt(unsigned char *m, unsigned long long *mlen, const unsigned char *tag, const unsigned char *c, unsigned long long clen, const unsigned char *ad, unsigned long long adlen, const unsigned char *npub, const unsigned char *k)
Decrypt ciphertext with ascon-128.
int xoodyak_aead_encrypt(unsigned char *c, unsigned long long *clen, const unsigned char *m, unsigned long long mlen, const unsigned char *ad, unsigned long long adlen, unsigned char *tag, const unsigned char *npub, const unsigned char *k)
Encrypt plaintext with ascon-128.