Lines Matching refs:key

54 int rsa_make_key(prng_state *prng, int wprng, int size, long e, rsa_key *key);
56 const unsigned char *e, unsigned long elen, rsa_key *key);
57 int rsa_get_size(const rsa_key *key);
61 const rsa_key *key);
63 void rsa_free(rsa_key *key);
87 const rsa_key *key);
93 int *stat, const rsa_key *key);
100 const rsa_key *key);
106 int *stat, const rsa_key *key);
108 int rsa_sign_saltlen_get_max_ex(int padding, int hash_idx, const rsa_key *key);
111 int rsa_export(unsigned char *out, unsigned long *outlen, int type, const rsa_key *key);
112 int rsa_import(const unsigned char *in, unsigned long inlen, rsa_key *key);
114 int rsa_import_x509(const unsigned char *in, unsigned long inlen, rsa_key *key);
116 const void *passwd, unsigned long passwdlen, rsa_key *key);
121 rsa_key *key);
124 rsa_key *key);
128 rsa_key *key);
142 int dh_get_groupsize(const dh_key *key);
144 int dh_export(unsigned char *out, unsigned long *outlen, int type, const dh_key *key);
145 int dh_import(const unsigned char *in, unsigned long inlen, dh_key *key);
149 dh_key *key);
150 int dh_set_pg_dhparam(const unsigned char *dhparam, unsigned long dhparamlen, dh_key *key);
151 int dh_set_pg_groupsize(int groupsize, dh_key *key);
153 int dh_set_key(const unsigned char *in, unsigned long inlen, int type, dh_key *key);
154 int dh_generate_key(prng_state *prng, int wprng, dh_key *key);
155 int dh_make_key(prng_state *prng, int wprng, void *q, int xbits, dh_key *key); /* OP-TEE */
159 void dh_free(dh_key *key);
161 int dh_export_key(void *out, unsigned long *outlen, int type, const dh_key *key);
265 int ecc_get_size(const ecc_key *key);
268 int ecc_set_curve(const ltc_ecc_curve *cu, ecc_key *key);
269 int ecc_generate_key(prng_state *prng, int wprng, ecc_key *key);
270 int ecc_set_key(const unsigned char *in, unsigned long inlen, int type, ecc_key *key);
271 int ecc_get_key(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key);
272 int ecc_get_oid_str(char *out, unsigned long *outlen, const ecc_key *key);
274 int ecc_make_key(prng_state *prng, int wprng, int keysize, ecc_key *key);
275 int ecc_make_key_ex(prng_state *prng, int wprng, ecc_key *key, const ltc_ecc_curve *cu);
276 void ecc_free(ecc_key *key);
278 int ecc_export(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key);
279 int ecc_import(const unsigned char *in, unsigned long inlen, ecc_key *key);
280 int ecc_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_ecc_curve …
282 int ecc_ansi_x963_export(const ecc_key *key, unsigned char *out, unsigned long *outlen);
283 int ecc_ansi_x963_import(const unsigned char *in, unsigned long inlen, ecc_key *key);
284 int ecc_ansi_x963_import_ex(const unsigned char *in, unsigned long inlen, ecc_key *key, const ltc_e…
286 int ecc_export_openssl(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key);
287 int ecc_import_openssl(const unsigned char *in, unsigned long inlen, ecc_key *key);
288 …const unsigned char *in, unsigned long inlen, const void *pwd, unsigned long pwdlen, ecc_key *key);
289 int ecc_import_x509(const unsigned char *in, unsigned long inlen, ecc_key *key);
297 const ecc_key *key);
301 const ecc_key *key);
318 int *recid, const ecc_key *key);
322 ecc_signature_type sigformat, int *stat, const ecc_key *key);
326 int recid, ecc_signature_type sigformat, ecc_key *key);
352 int ed25519_make_key(prng_state *prng, int wprng, curve25519_key *key);
356 curve25519_key *key);
360 const curve25519_key *key);
362 int ed25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
363 int ed25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key);
366 curve25519_key *key);
377 int x25519_make_key(prng_state *prng, int wprng, curve25519_key *key);
381 curve25519_key *key);
385 const curve25519_key *key);
387 int x25519_import(const unsigned char *in, unsigned long inlen, curve25519_key *key);
388 int x25519_import_x509(const unsigned char *in, unsigned long inlen, curve25519_key *key);
391 curve25519_key *key);
431 int dsa_make_key(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key);
436 dsa_key *key);
437 int dsa_set_pqg_dsaparam(const unsigned char *dsaparam, unsigned long dsaparamlen, dsa_key *key);
438 int dsa_generate_pqg(prng_state *prng, int wprng, int group_size, int modulus_size, dsa_key *key);
440 int dsa_set_key(const unsigned char *in, unsigned long inlen, int type, dsa_key *key);
441 int dsa_generate_key(prng_state *prng, int wprng, dsa_key *key);
443 void dsa_free(dsa_key *key);
447 prng_state *prng, int wprng, const dsa_key *key);
451 prng_state *prng, int wprng, const dsa_key *key);
455 int *stat, const dsa_key *key);
459 int *stat, const dsa_key *key);
464 const dsa_key *key);
468 const dsa_key *key);
470 int dsa_import(const unsigned char *in, unsigned long inlen, dsa_key *key);
471 int dsa_export(unsigned char *out, unsigned long *outlen, int type, const dsa_key *key);
472 int dsa_verify_key(const dsa_key *key, int *stat);