| commit | 7f4057ec106c5c2678866b364838cae72e55a9d7 | [log] [tgz] |
|---|---|---|
| author | Adam Langley <alangley@gmail.com> | Fri Mar 18 10:57:09 2022 -0700 |
| committer | Adam Langley <agl@google.com> | Mon Mar 21 19:31:15 2022 +0000 |
| tree | da057a09c527cba18866c31212e900b026610733 | |
| parent | dcba84922c7e2881f7051c85fb5a40165ff29933 [diff] [blame] |
Add a function to tell if an algorithm is FIPS approved. Change-Id: I934376ead1bc3e4e8349540c4a3da99cd0b49181 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/51985 Reviewed-by: David Benjamin <davidben@google.com>
diff --git a/include/openssl/crypto.h b/include/openssl/crypto.h index 0824b93..ce1e5ce 100644 --- a/include/openssl/crypto.h +++ b/include/openssl/crypto.h
@@ -172,6 +172,10 @@ // |BORINGSSL_FIPS| and zero otherwise. OPENSSL_EXPORT int FIPS_mode_set(int on); +// FIPS_query_algorithm_status returns one if |algorithm| is FIPS validated in +// the current BoringSSL and zero otherwise. +OPENSSL_EXPORT int FIPS_query_algorithm_status(const char *algorithm); + #if defined(__cplusplus) } // extern C