Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/crypto/openssl/providers/common/include/prov/securitycheck.h
48535 views
1
/*
2
* Copyright 2019-2024 The OpenSSL Project Authors. All Rights Reserved.
3
*
4
* Licensed under the Apache License 2.0 (the "License"). You may not use
5
* this file except in compliance with the License. You can obtain a copy
6
* in the file LICENSE in the source distribution or at
7
* https://www.openssl.org/source/license.html
8
*/
9
10
#include "crypto/types.h"
11
#include <openssl/ec.h>
12
13
#include "fips/fipsindicator.h"
14
15
/* Functions that are common */
16
int ossl_rsa_key_op_get_protect(const RSA *rsa, int operation, int *outprotect);
17
int ossl_rsa_check_key_size(const RSA *rsa, int protect);
18
int ossl_kdf_check_key_size(size_t keylen);
19
int ossl_mac_check_key_size(size_t keylen);
20
21
#ifndef OPENSSL_NO_EC
22
int ossl_ec_check_curve_allowed(const EC_GROUP *group);
23
int ossl_ec_check_security_strength(const EC_GROUP *group, int protect);
24
#endif
25
26
#ifndef OPENSSL_NO_DSA
27
int ossl_dsa_check_key(const DSA *dsa, int sign);
28
#endif
29
30
#ifndef OPENSSL_NO_DH
31
int ossl_dh_check_key(const DH *dh);
32
#endif
33
34
int ossl_digest_md_to_nid(const EVP_MD *md, const OSSL_ITEM *it, size_t it_len);
35
int ossl_digest_get_approved_nid(const EVP_MD *md);
36
37
/* Functions that have different implementations for the FIPS_MODULE */
38
int ossl_digest_rsa_sign_get_md_nid(const EVP_MD *md);
39
int ossl_fips_config_securitycheck_enabled(OSSL_LIB_CTX *libctx);
40
41