summaryrefslogtreecommitdiff
path: root/src/ltc/headers/tomcrypt_private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ltc/headers/tomcrypt_private.h')
-rw-r--r--src/ltc/headers/tomcrypt_private.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ltc/headers/tomcrypt_private.h b/src/ltc/headers/tomcrypt_private.h
index e536d579..0d4842e4 100644
--- a/src/ltc/headers/tomcrypt_private.h
+++ b/src/ltc/headers/tomcrypt_private.h
@@ -330,6 +330,13 @@ int der_teletex_value_decode(int v);
int der_utf8_valid_char(const wchar_t c);
+typedef int (*public_key_decode_cb)(const unsigned char *in, unsigned long inlen, void *ctx);
+
+int x509_decode_public_key_from_certificate(const unsigned char *in, unsigned long inlen,
+ enum ltc_oid_id algorithm, ltc_asn1_type param_type,
+ ltc_asn1_list* parameters, unsigned long *parameters_len,
+ public_key_decode_cb callback, void *ctx);
+
/* SUBJECT PUBLIC KEY INFO */
int x509_encode_subject_public_key_info(unsigned char *out, unsigned long *outlen,
unsigned int algorithm, const void* public_key, unsigned long public_key_len,