rdrand.h 522 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the License); you may
  5. * not use this file except in compliance with the License.
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. */
  9. #ifndef GMSSL_RDRAND_H
  10. #define GMSSL_RDRAND_H
  11. #include <stdint.h>
  12. #include <stdlib.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. int rdrand_bytes(uint8_t *buf, size_t buflen);
  17. int rdseed_bytes(uint8_t *buf, size_t buflen);
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21. #endif