summaryrefslogtreecommitdiff
path: root/libs/libsodium/src/crypto_aead/aegis256/implementations.h
blob: 9efbf38763247fe9493c276409a81e4993e7ad05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef aegis256_implementations_H
#define aegis256_implementations_H

#include <stddef.h>
#include <stdint.h>

#include "crypto_aead_aegis256.h"

typedef struct aegis256_implementation {
    int (*encrypt_detached)(uint8_t *c, uint8_t *mac, size_t maclen, const uint8_t *m, size_t mlen,
                            const uint8_t *ad, size_t adlen, const uint8_t *npub, const uint8_t *k);
    int (*decrypt_detached)(uint8_t *m, const uint8_t *c, size_t clen, const uint8_t *mac,
                            size_t maclen, const uint8_t *ad, size_t adlen, const uint8_t *npub,
                            const uint8_t *k);
} aegis256_implementation;

#endif