typedef enum GNUTLS_X509_CertificateFmt { GNUTLS_X509_FMT_DER,
GNUTLS_X509_FMT_PEM } GNUTLS_X509_CertificateFmt;
+typedef enum PKAlgorithm { GNUTLS_PK_RSA = 1, GNUTLS_PK_DSA, /* sign only */
+ GNUTLS_PK_UNKNOWN
+} PKAlgorithm;
+
+#define GNUTLS_PKAlgorithm PKAlgorithm
+
/* STATE (stop) */
#ifndef GNUTLS_PK_H
# define GNUTLS_PK_H
-typedef enum PKAlgorithm { GNUTLS_PK_RSA = 1, GNUTLS_PK_DSA, /* sign only */
- GNUTLS_PK_UNKNOWN
-} PKAlgorithm;
-
-#define GNUTLS_PKAlgorithm PKAlgorithm
-
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);
/**
* gnutls_x509_extract_certificate_pk_algorithm - This function returns the certificate's PublicKey algorithm
* @cert: is a DER encoded X.509 certificate
- * @bits: if bits is non-null it will have enough space to hold the
+ * @bits: if bits is non null it should have enough space to hold the
* parameters size in bits.
*
* This function will return the public key algorithm of an X.509