Teach the RSA implementation about TLS RSA Key Transport
[openssl.git] / include / crypto / rsa.h
1 /*
2  * Copyright 2019 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 #ifndef OSSL_INTERNAL_RSA_H
11 # define OSSL_INTERNAL_RSA_H
12
13 #include <openssl/rsa.h>
14
15 int rsa_set0_all_params(RSA *r, const STACK_OF(BIGNUM) *primes,
16                         const STACK_OF(BIGNUM) *exps,
17                         const STACK_OF(BIGNUM) *coeffs);
18 int rsa_get0_all_params(RSA *r, STACK_OF(BIGNUM_const) *primes,
19                         STACK_OF(BIGNUM_const) *exps,
20                         STACK_OF(BIGNUM_const) *coeffs);
21
22 int rsa_padding_check_PKCS1_type_2_TLS(unsigned char *to, size_t tlen,
23                                        const unsigned char *from, size_t flen,
24                                        int client_version, int alt_version);
25 #endif