mirror of
https://github.com/rdolbeau/VexRiscvBPluginGenerator.git
synced 2025-04-18 18:44:42 -04:00
33 lines
1.8 KiB
C
33 lines
1.8 KiB
C
#ifndef crypto_stream_chacha20_H
|
|
#define crypto_stream_chacha20_H
|
|
|
|
#define crypto_stream_chacha20_dolbeau_rv32_KEYBYTES 32
|
|
#define crypto_stream_chacha20_dolbeau_rv32_NONCEBYTES 8
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
extern int crypto_stream_chacha20_dolbeau_rv32(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
|
extern int crypto_stream_chacha20_dolbeau_rv32_xor(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
|
extern int crypto_stream_chacha20_dolbeau_rv32_beforenm(unsigned char *,const unsigned char *);
|
|
extern int crypto_stream_chacha20_dolbeau_rv32_afternm(unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
|
extern int crypto_stream_chacha20_dolbeau_rv32_xor_afternm(unsigned char *,const unsigned char *,unsigned long long,const unsigned char *,const unsigned char *);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#define crypto_stream_chacha20 crypto_stream_chacha20_dolbeau_rv32
|
|
#define crypto_stream_chacha20_xor crypto_stream_chacha20_dolbeau_rv32_xor
|
|
#define crypto_stream_chacha20_beforenm crypto_stream_chacha20_dolbeau_rv32_beforenm
|
|
#define crypto_stream_chacha20_afternm crypto_stream_chacha20_dolbeau_rv32_afternm
|
|
#define crypto_stream_chacha20_xor_afternm crypto_stream_chacha20_dolbeau_rv32_xor_afternm
|
|
#define crypto_stream_chacha20_KEYBYTES crypto_stream_chacha20_dolbeau_rv32_KEYBYTES
|
|
#define crypto_stream_chacha20_NONCEBYTES crypto_stream_chacha20_dolbeau_rv32_NONCEBYTES
|
|
#define crypto_stream_chacha20_BEFORENMBYTES crypto_stream_chacha20_dolbeau_rv32_BEFORENMBYTES
|
|
#define crypto_stream_chacha20_IMPLEMENTATION "crypto_stream/chacha20/dolbeau/rv32"
|
|
#ifndef crypto_stream_chacha20_dolbeau_rv32_VERSION
|
|
#define crypto_stream_chacha20_dolbeau_rv32_VERSION "-"
|
|
#endif
|
|
#define crypto_stream_chacha20_VERSION crypto_stream_chacha20_dolbeau_rv32_VERSION
|
|
|
|
#endif
|