Path: blob/main/crypto/openssl/providers/common/include/prov/securitycheck.h
48535 views
/*1* Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#include "crypto/types.h"10#include <openssl/ec.h>1112#include "fips/fipsindicator.h"1314/* Functions that are common */15int ossl_rsa_key_op_get_protect(const RSA *rsa, int operation, int *outprotect);16int ossl_rsa_check_key_size(const RSA *rsa, int protect);17int ossl_kdf_check_key_size(size_t keylen);18int ossl_mac_check_key_size(size_t keylen);1920#ifndef OPENSSL_NO_EC21int ossl_ec_check_curve_allowed(const EC_GROUP *group);22int ossl_ec_check_security_strength(const EC_GROUP *group, int protect);23#endif2425#ifndef OPENSSL_NO_DSA26int ossl_dsa_check_key(const DSA *dsa, int sign);27#endif2829#ifndef OPENSSL_NO_DH30int ossl_dh_check_key(const DH *dh);31#endif3233int ossl_digest_md_to_nid(const EVP_MD *md, const OSSL_ITEM *it, size_t it_len);34int ossl_digest_get_approved_nid(const EVP_MD *md);3536/* Functions that have different implementations for the FIPS_MODULE */37int ossl_digest_rsa_sign_get_md_nid(const EVP_MD *md);38int ossl_fips_config_securitycheck_enabled(OSSL_LIB_CTX *libctx);394041