diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2019-03-22 14:52:10 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2021-11-13 12:59:37 +0100 |
commit | 42bff24a6423f45bcfc2d03ed075916bfd6077be (patch) | |
tree | f26f16bd1ec8f93241c7d7f28b181bd66dbc75ee /lib/crypto-backend.h | |
parent | 33988a11e36705e7f376b7fa6747ad06aa673890 (diff) | |
download | gnutls-42bff24a6423f45bcfc2d03ed075916bfd6077be.tar.gz |
Port openconnect TPM2 code
This introduces transparent loading of TPM2 keys which are in PEM
form by gnutls_privkey_import_x509_raw() and higher level functions
which wrap it.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Co-authored-by: David Woodhouse <dwmw2@infradead.org>
Co-authored-by: Daiki Ueno <ueno@gnu.org>
Diffstat (limited to 'lib/crypto-backend.h')
-rw-r--r-- | lib/crypto-backend.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/crypto-backend.h b/lib/crypto-backend.h index 6cc1853cbe..9874033221 100644 --- a/lib/crypto-backend.h +++ b/lib/crypto-backend.h @@ -465,4 +465,15 @@ int _gnutls_gost_key_unwrap(gnutls_gost_paramset_t gost_params, const gnutls_datum_t *imit, gnutls_datum_t *cek); +int +_gnutls_rsa_pkcs1_sign_pad(size_t key_bits, + const gnutls_datum_t *data, + unsigned char *buffer, size_t buffer_size); + +int +_gnutls_rsa_pss_sign_pad(gnutls_x509_spki_st *params, + size_t key_bits, + const gnutls_datum_t *data, + unsigned char *buffer, size_t buffer_size); + #endif /* GNUTLS_LIB_CRYPTO_BACKEND_H */ |