fipskey.h.in 798 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * {- join("\n * ", @autowarntext) -}
  3. *
  4. * Copyright 2020-2021 The OpenSSL Project Authors. All Rights Reserved.
  5. *
  6. * Licensed under the Apache License 2.0 (the "License"). You may not use
  7. * this file except in compliance with the License. You can obtain a copy
  8. * in the file LICENSE in the source distribution or at
  9. * https://www.openssl.org/source/license.html
  10. */
  11. #ifndef OPENSSL_FIPSKEY_H
  12. # define OPENSSL_FIPSKEY_H
  13. # pragma once
  14. # ifdef __cplusplus
  15. extern "C" {
  16. # endif
  17. /*
  18. * The FIPS validation HMAC key, usable as an array initializer.
  19. */
  20. #define FIPS_KEY_ELEMENTS \
  21. {- join(', ', map { "0x$_" } unpack("(A2)*", $config{FIPSKEY})) -}
  22. /*
  23. * The FIPS validation key, as a string.
  24. */
  25. #define FIPS_KEY_STRING "{- $config{FIPSKEY} -}"
  26. # ifdef __cplusplus
  27. }
  28. # endif
  29. #endif