oqs_sys

Module common

source

Enums§

Constants§

Functions§

  • Checks if the CPU supports a given extension
  • Internal implementation of C11 aligned_alloc to work around compiler quirks.
  • Free memory allocated with OQS_MEM_aligned_alloc.
  • Zeros out len bytes of memory starting at ptr.
  • Frees ptr.
  • Constant time comparison of byte sequences a and b of length len. Returns 0 if the byte sequences are equal or if len=0. Returns 1 otherwise.
  • Zeros out len bytes of memory starting at ptr, then frees ptr.
  • This function frees prefetched OpenSSL objects
  • This currently sets the values in the OQS_CPU_EXTENSIONS and prefetches the OpenSSL objects if necessary.
  • This function stops OpenSSL threads, which allows resources to be cleaned up in the correct order. @note When liboqs is used in a multithreaded application, each thread should call this function prior to stopping.
  • Return library version string.