VirtualBox

source: vbox/trunk/src/libs/openssl-3.1.3/providers/common/include/prov/securitycheck.h@ 101211

Last change on this file since 101211 was 101211, checked in by vboxsync, 19 months ago

openssl-3.1.3: Applied and adjusted our OpenSSL changes to 3.1.2. bugref:10527

File size: 1.4 KB
Line 
1/*
2 * Copyright 2019-2023 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
12/* Functions that are common */
13int ossl_rsa_check_key(OSSL_LIB_CTX *ctx, const RSA *rsa, int operation);
14int ossl_ec_check_key(OSSL_LIB_CTX *ctx, const EC_KEY *ec, int protect);
15int ossl_dsa_check_key(OSSL_LIB_CTX *ctx, const DSA *dsa, int sign);
16int ossl_dh_check_key(OSSL_LIB_CTX *ctx, const DH *dh);
17
18int ossl_digest_is_allowed(OSSL_LIB_CTX *ctx, const EVP_MD *md);
19/* With security check enabled it can return -1 to indicate disallowed md */
20int ossl_digest_get_approved_nid_with_sha1(OSSL_LIB_CTX *ctx, const EVP_MD *md,
21 int sha1_allowed);
22
23/* Functions that are common */
24int ossl_digest_md_to_nid(const EVP_MD *md, const OSSL_ITEM *it, size_t it_len);
25int ossl_digest_get_approved_nid(const EVP_MD *md);
26
27/* Functions that have different implementations for the FIPS_MODULE */
28int ossl_digest_rsa_sign_get_md_nid(OSSL_LIB_CTX *ctx, const EVP_MD *md,
29 int sha1_allowed);
30int ossl_securitycheck_enabled(OSSL_LIB_CTX *libctx);
31int ossl_tls1_prf_ems_check_enabled(OSSL_LIB_CTX *libctx);
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette