diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2021-09-03 15:08:57 +0900 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2021-09-03 15:16:41 +0900 |
commit | bb8db896f43991903b6289bb472598f1ba8cae04 (patch) | |
tree | b306fea7f368468cb1fbefdf797d6fa8e075fced /src/gcrypt.h.in | |
parent | e4217973271f887c5dd39d4391964d13668e87d3 (diff) | |
download | libgcrypt-bb8db896f43991903b6289bb472598f1ba8cae04.tar.gz |
experiment: Write the test, in the beginning.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'src/gcrypt.h.in')
-rw-r--r-- | src/gcrypt.h.in | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/gcrypt.h.in b/src/gcrypt.h.in index b4e23c94..b3772768 100644 --- a/src/gcrypt.h.in +++ b/src/gcrypt.h.in @@ -1226,12 +1226,27 @@ enum gcry_pkey_algos GCRY_PKEY_ELG = 20 }; -gcry_error_t gcry_pkey_open (gcry_pkey_hd_t *h_p, int algo, ...); +#define GCRY_PKEY_FLAG_PREHASH (1 << 0) +#define GCRY_PKEY_FLAG_CONTEXT (1 << 1) + +enum gcry_pkey_curves + { + GCRY_PKEY_CURVE_ED25519 + }; + +enum gcry_pkey_ops + { + GCRY_PKEY_OP_VERIFY, + GCRY_PKEY_OP_SIGN + }; + +gcry_error_t gcry_pkey_open (gcry_pkey_hd_t *h_p, int algo, unsigned int flags, ...); gcry_error_t gcry_pkey_ctl (gcry_pkey_hd_t h, int cmd, void *buffer, size_t buflen); gcry_error_t gcry_pkey_op (gcry_pkey_hd_t h, int cmd, - int num_in, const unsigned char *in[], size_t in_len[], - int num_out, unsigned char *out[], size_t *out_len[]); + int num_in, const unsigned char *const in[], + const size_t in_len[], + int num_out, unsigned char *out[], size_t out_len[]); void gcry_pkey_close (gcry_pkey_hd_t h); /************************************ |