Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
xoodyak API More...
Functions | |
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. | |
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. | |
xoodyak API
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 ) |
#include <infuse/crypto/xoodyak.h>
Decrypt ciphertext with ascon-128.
m | Message (Decrypted output) |
mlen | Length of output message |
tag | 16 byte ciphertext tag |
c | Ciphertext (Encrypted input) |
clen | Ciphertext length |
ad | Associated data |
adlen | Associated data length |
npub | 16 byte nonce (Initialisation vector) |
k | 16 byte key |
0 | on success |
-1 | on error |
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 ) |
#include <infuse/crypto/xoodyak.h>
Encrypt plaintext with ascon-128.
c | Ciphertext (Encrypted output of m) |
clen | Length of output ciphertext |
m | Message (Input payload to encrypt) |
mlen | Message length |
ad | Associated data |
adlen | Associated data length |
tag | 16 byte ciphertext tag |
npub | 16 byte nonce (Initialisation vector) |
k | 16 byte key |
0 | on success |