summaryrefslogtreecommitdiff
path: root/lib/gnutls_pk.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-29 11:16:02 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-03-29 11:16:02 +0000
commit7a4b822da5cfa5326199b862793d45a2f6141000 (patch)
treeb57d3ee5f6e4641d277734c57b139b3e30b2396f /lib/gnutls_pk.h
parent6ea230526a69dcb83ff1879b6390227f1e56ff80 (diff)
downloadgnutls-7a4b822da5cfa5326199b862793d45a2f6141000.tar.gz
Some cleanups in the certificate authentication. Parameters are
passed together with the length, to avoid abuse.
Diffstat (limited to 'lib/gnutls_pk.h')
-rw-r--r--lib/gnutls_pk.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/gnutls_pk.h b/lib/gnutls_pk.h
index a0ff236095..814800971f 100644
--- a/lib/gnutls_pk.h
+++ b/lib/gnutls_pk.h
@@ -1,16 +1,15 @@
#ifndef GNUTLS_PK_H
# define GNUTLS_PK_H
-int _gnutls_pk_encrypt(int algo, MPI * resarr, MPI data, MPI * pkey);
int _gnutls_pkcs1_rsa_encrypt(gnutls_datum * ciphertext, gnutls_datum plaintext,
- MPI * params, int btype);
+ MPI * params, int params_len, int btype);
int _gnutls_dsa_sign(gnutls_datum * signature, const gnutls_datum *plaintext,
- MPI *params);
+ MPI *params, int params_len);
int _gnutls_pkcs1_rsa_decrypt(gnutls_datum * plaintext, gnutls_datum ciphertext,
- MPI * params, int btype);
+ MPI * params, int params_len, int btype);
int _gnutls_rsa_verify( const gnutls_datum* vdata, const gnutls_datum *ciphertext,
- MPI* params, int btype);
+ MPI* params, int params_len, int btype);
int _gnutls_dsa_verify( const gnutls_datum* vdata, const gnutls_datum *sig_value,
- MPI * params);
+ MPI * params, int params_len);
#endif /* GNUTLS_PK_H */