LearnWithTouch/App/LearnWithTouch_ios/Libraries/libil2cpp/include/os/Cryptography.h
2019-07-01 14:33:21 +02:00

24 lines
665 B
C++

#pragma once
namespace il2cpp
{
namespace os
{
class Cryptography
{
public:
/* Returns a handle the cryptography provider to use in other calls on this API. */
static void* GetCryptographyProvider();
/* Open the cryptogrpahy provider. */
static bool OpenCryptographyProvider();
/* Indicate that the cyrptography provider is no longer in use. */
static void ReleaseCryptographyProvider(void* provider);
/* Use the provider to fill the buffer with cryptographically random bytes. */
static bool FillBufferWithRandomBytes(void* provider, uint32_t length, unsigned char* data);
};
}
}