Cryptography.h 665 B

1234567891011121314151617181920212223
  1. #pragma once
  2. namespace il2cpp
  3. {
  4. namespace os
  5. {
  6. class Cryptography
  7. {
  8. public:
  9. /* Returns a handle the cryptography provider to use in other calls on this API. */
  10. static void* GetCryptographyProvider();
  11. /* Open the cryptogrpahy provider. */
  12. static bool OpenCryptographyProvider();
  13. /* Indicate that the cyrptography provider is no longer in use. */
  14. static void ReleaseCryptographyProvider(void* provider);
  15. /* Use the provider to fill the buffer with cryptographically random bytes. */
  16. static bool FillBufferWithRandomBytes(void* provider, uint32_t length, unsigned char* data);
  17. };
  18. }
  19. }