mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 07:42:54 +00:00
Fix salsa20 header not using extern C when using in c++
This commit is contained in:
parent
debb8d481e
commit
ed160e841b
8
thirdparty/salsa20/salsa20.h
vendored
8
thirdparty/salsa20/salsa20.h
vendored
@ -8,6 +8,10 @@ Public domain.
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct salsa20_ctx
|
||||
{
|
||||
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.
|
||||
*/
|
||||
void Salsa20_Decrypt_Bytes(salsa20_ctx_t* ctx, const uint8_t* cipherText, uint8_t* plainText, uint32_t msgLen);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user