|
@@ -64,7 +64,7 @@ int crypto_pk_read_private_key_from_string(crypto_pk_t *env,
|
|
int crypto_pk_write_private_key_to_filename(crypto_pk_t *env,
|
|
int crypto_pk_write_private_key_to_filename(crypto_pk_t *env,
|
|
const char *fname);
|
|
const char *fname);
|
|
|
|
|
|
-int crypto_pk_is_valid_private_key(crypto_pk_t *env);
|
|
|
|
|
|
+int crypto_pk_is_valid_private_key(const crypto_pk_t *env);
|
|
int crypto_pk_cmp_keys(const crypto_pk_t *a, const crypto_pk_t *b);
|
|
int crypto_pk_cmp_keys(const crypto_pk_t *a, const crypto_pk_t *b);
|
|
int crypto_pk_eq_keys(const crypto_pk_t *a, const crypto_pk_t *b);
|
|
int crypto_pk_eq_keys(const crypto_pk_t *a, const crypto_pk_t *b);
|
|
size_t crypto_pk_keysize(const crypto_pk_t *env);
|
|
size_t crypto_pk_keysize(const crypto_pk_t *env);
|
|
@@ -72,7 +72,7 @@ int crypto_pk_num_bits(crypto_pk_t *env);
|
|
crypto_pk_t *crypto_pk_dup_key(crypto_pk_t *orig);
|
|
crypto_pk_t *crypto_pk_dup_key(crypto_pk_t *orig);
|
|
crypto_pk_t *crypto_pk_copy_full(crypto_pk_t *orig);
|
|
crypto_pk_t *crypto_pk_copy_full(crypto_pk_t *orig);
|
|
int crypto_pk_key_is_private(const crypto_pk_t *key);
|
|
int crypto_pk_key_is_private(const crypto_pk_t *key);
|
|
-int crypto_pk_public_exponent_ok(crypto_pk_t *env);
|
|
|
|
|
|
+int crypto_pk_public_exponent_ok(const crypto_pk_t *env);
|
|
int crypto_pk_obsolete_public_hybrid_encrypt(crypto_pk_t *env, char *to,
|
|
int crypto_pk_obsolete_public_hybrid_encrypt(crypto_pk_t *env, char *to,
|
|
size_t tolen,
|
|
size_t tolen,
|
|
const char *from, size_t fromlen,
|
|
const char *from, size_t fromlen,
|