Fix salsa20 header not using extern C when using in c++

This commit is contained in:
Jan 2019-10-22 02:39:16 +02:00
parent debb8d481e
commit ed160e841b

View File

@ -8,6 +8,10 @@ Public domain.
#include <stdint.h> #include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct salsa20_ctx typedef struct salsa20_ctx
{ {
uint32_t m_input[16]; uint32_t m_input[16];
@ -53,3 +57,7 @@ void Salsa20_Encrypt_Bytes(salsa20_ctx_t* ctx, const uint8_t* plainText, uint8_t
* msgLen: The amount of bytes to decrypt. * msgLen: The amount of bytes to decrypt.
*/ */
void Salsa20_Decrypt_Bytes(salsa20_ctx_t* ctx, const uint8_t* cipherText, uint8_t* plainText, uint32_t msgLen); void Salsa20_Decrypt_Bytes(salsa20_ctx_t* ctx, const uint8_t* cipherText, uint8_t* plainText, uint32_t msgLen);
#ifdef __cplusplus
}
#endif