summaryrefslogtreecommitdiff
path: root/cipher
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2021-09-06 14:24:20 +0900
committerNIIBE Yutaka <gniibe@fsij.org>2021-09-06 14:24:20 +0900
commitcb8d1b68546c8a3cda87a761ea4eb4d9fcf10343 (patch)
tree8d1fed587ededced91ad5d183cc55d984414b6e5 /cipher
parent7bd7773c5020d487574c84fc58165afdd2dc8e82 (diff)
downloadlibgcrypt-cb8d1b68546c8a3cda87a761ea4eb4d9fcf10343.tar.gz
experiment: Add comment and figures.
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'cipher')
-rw-r--r--cipher/pkey.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/cipher/pkey.c b/cipher/pkey.c
index 6cd54fb8..207d60aa 100644
--- a/cipher/pkey.c
+++ b/cipher/pkey.c
@@ -149,7 +149,26 @@ _gcry_pkey_ctl (gcry_pkey_hd_t h, int cmd, void *buffer, size_t buflen)
/* For now, it uses SEXP implementation, because the purpose is
to test the API (but not the implementation).
- Will be rewritten soon. */
+ Will be rewritten soon.
+
+ Currently, it's like:
+
+ [ gcry_pkey_op API (with binary data) ]
+ |
+ [ gcry_pk_ API (with SEXP) ]
+ |
+ [ lower level public key implementations (with SEXP) ]
+
+ It will be like:
+
+ [ gcry_pk_ API with SEXP ] [ gcry_pkey_op API with binary data ]
+ | |
+ [ lower level public key implementations ]
+
+ That is, lower level public key implementations won't have any
+ (direct) handling of SEXP.
+
+ */
gcry_error_t
_gcry_pkey_op (gcry_pkey_hd_t h, int cmd,
int num_in, const unsigned char *const in[],