forked from focus-creative-games/il2cpp_plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCryptography.cpp
More file actions
31 lines (24 loc) · 784 Bytes
/
Cryptography.cpp
File metadata and controls
31 lines (24 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "os/c-api/il2cpp-config-platforms.h"
#if !RUNTIME_TINY
#include "os/c-api/Cryptography-c-api.h"
#include "os/Cryptography.h"
extern "C"
{
void* UnityPalGetCryptographyProvider()
{
return il2cpp::os::Cryptography::GetCryptographyProvider();
}
int32_t UnityPalOpenCryptographyProvider()
{
return il2cpp::os::Cryptography::OpenCryptographyProvider();
}
void UnityPalReleaseCryptographyProvider(void* provider)
{
return il2cpp::os::Cryptography::ReleaseCryptographyProvider(provider);
}
int32_t UnityPalCryptographyFillBufferWithRandomBytes(void* provider, uint32_t length, unsigned char* data)
{
return il2cpp::os::Cryptography::FillBufferWithRandomBytes(provider, length, data);
}
}
#endif