| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#include "crypto/s2n_rsa_pss.h" |
| 17 |
|
| 18 |
#include <openssl/evp.h> |
| 19 |
#include <openssl/rsa.h> |
| 20 |
#include <stdint.h> |
| 21 |
|
| 22 |
#include "crypto/s2n_hash.h" |
| 23 |
#include "crypto/s2n_pkey.h" |
| 24 |
#include "crypto/s2n_pkey_evp.h" |
| 25 |
#include "error/s2n_errno.h" |
| 26 |
#include "stuffer/s2n_stuffer.h" |
| 27 |
#include "utils/s2n_blob.h" |
| 28 |
#include "utils/s2n_random.h" |
| 29 |
#include "utils/s2n_safety.h" |
| 30 |
|
| 31 |
|
| 32 |
bool s2n_is_rsa_pss_certs_supported() |
| 33 |
{ |
| 34 |
return RSA_PSS_CERTS_SUPPORTED; |
| 35 |
} |
| 36 |
|
| 37 |
bool s2n_is_rsa_pss_signing_supported() |
| 38 |
{ |
| 39 |
#if defined(S2N_LIBCRYPTO_SUPPORTS_RSA_PSS_SIGNING) |
| 40 |
return true; |
| 41 |
#else |
| 42 |
return false; |
| 43 |
#endif |
| 44 |
} |