Debian Codegraph @

crt/s2n/crypto/s2n_rsa_pss.h

raw symbols SCIP
1 /*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15
16 #pragma once
17
18 #include <openssl/bn.h>
19 #include <stdbool.h>
20 #include <stdint.h>
21
22 #include "crypto/s2n_openssl.h"
23
24 #define RSA_PSS_SIGN_VERIFY_RANDOM_BLOB_SIZE 32
25 #define RSA_PSS_SIGN_VERIFY_SIGNATURE_SIZE 256
26
27 /* OpenSSL 1.1.1d 10 Sep 2019 is broken, so disable on that version. For further info see: crypto/evp/p_lib.c:469
28 *
29 * This feature requires this Openssl commit for Openssl 1.1.x versions: openssl/openssl@4088b92
30 */
31 #if defined(S2N_LIBCRYPTO_SUPPORTS_RSA_PSS_SIGNING) && OPENSSL_VERSION_NUMBER > 0x1010104fL
32 #define RSA_PSS_CERTS_SUPPORTED 1
33 #else
34 #define RSA_PSS_CERTS_SUPPORTED 0
35 #endif
36
37 bool s2n_is_rsa_pss_certs_supported();
38 bool s2n_is_rsa_pss_signing_supported();