summaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-05-07 17:01:47 +0200
committerWerner Koch <wk@gnupg.org>2009-05-07 17:01:47 +0200
commit03aae15a5627bdf532f8c7db1cbf42c6d5210bf2 (patch)
treed9ceaa5070fa087dea2a3c1a65e26f082299020d /common/util.h
parentFix example. (diff)
downloadgnupg2-03aae15a5627bdf532f8c7db1cbf42c6d5210bf2.tar.xz
gnupg2-03aae15a5627bdf532f8c7db1cbf42c6d5210bf2.zip
New helper function factored out of ../scd and equipped with test code.
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index c64db9f6b..816afff0b 100644
--- a/common/util.h
+++ b/common/util.h
@@ -192,6 +192,15 @@ int cmp_simple_canon_sexp (const unsigned char *a, const unsigned char *b);
unsigned char *make_simple_sexp_from_hexstr (const char *line,
size_t *nscanned);
int hash_algo_from_sigval (const unsigned char *sigval);
+unsigned char *make_canon_sexp_from_rsa_pk (const void *m, size_t mlen,
+ const void *e, size_t elen,
+ size_t *r_len);
+gpg_error_t get_rsa_pk_from_canon_sexp (const unsigned char *keydata,
+ size_t keydatalen,
+ unsigned char const **r_n,
+ size_t *r_nlen,
+ unsigned char const **r_e,
+ size_t *r_elen);
/*-- convert.c --*/
int hex2bin (const char *string, void *buffer, size_t length);