summaryrefslogtreecommitdiffstats
path: root/libtomcrypt/headers
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-06 22:02:15 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-09-06 22:02:38 +0200
commita92443718f19ffc36fbe55d85a4785130a4b33c7 (patch)
tree79850bdf3cd559d389b2908d17e0e21bdb893b20 /libtomcrypt/headers
parente6177630198eb1eea2def0374fae1196da0e40ec (diff)
downloadcryptodev-linux-a92443718f19ffc36fbe55d85a4785130a4b33c7.tar.gz
cryptodev-linux-a92443718f19ffc36fbe55d85a4785130a4b33c7.tar.xz
cryptodev-linux-a92443718f19ffc36fbe55d85a4785130a4b33c7.zip
Algorithm to OID discovery moved to a single place.
Diffstat (limited to 'libtomcrypt/headers')
-rw-r--r--libtomcrypt/headers/tomcrypt_pk.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libtomcrypt/headers/tomcrypt_pk.h b/libtomcrypt/headers/tomcrypt_pk.h
index f544e44..687f580 100644
--- a/libtomcrypt/headers/tomcrypt_pk.h
+++ b/libtomcrypt/headers/tomcrypt_pk.h
@@ -18,7 +18,7 @@ typedef struct Oid {
unsigned long OIDlen;
} oid_st;
-int pk_get_oid(int pk, oid_st * st);
+int pk_get_oid(const struct algo_properties_st *pk, oid_st * st);
int rand_prime(mp_int * N, long len);
/* ---- RSA ---- */
@@ -234,7 +234,7 @@ int der_length_sequence(ltc_asn1_list * list, unsigned long inlen,
/* SUBJECT PUBLIC KEY INFO */
int der_encode_subject_public_key_info(unsigned char *out,
unsigned long *outlen,
- unsigned int algorithm, void *public_key,
+ const struct algo_properties_st *algorithm, void *public_key,
unsigned long public_key_len,
unsigned long parameters_type,
void *parameters,
@@ -242,7 +242,7 @@ int der_encode_subject_public_key_info(unsigned char *out,
int der_decode_subject_public_key_info(const unsigned char *in,
unsigned long inlen,
- unsigned int algorithm, void *public_key,
+ const struct algo_properties_st *algorithm, void *public_key,
unsigned long *public_key_len,
unsigned long parameters_type,
ltc_asn1_list * parameters,