r15558@tombo: nickm | 2008-05-09 04:35:12 -0400

New (temporary) tool to dump the modulus of a key.  May help with a project of weasel's.


svn:r14580
This commit is contained in:
Nick Mathewson
2008-05-09 08:35:38 +00:00
parent 32065813ac
commit b7a80920e2
4 changed files with 62 additions and 0 deletions
+6
View File
@@ -258,6 +258,12 @@ _crypto_new_pk_env_evp_pkey(EVP_PKEY *pkey)
return _crypto_new_pk_env_rsa(rsa);
}
RSA *
_crypto_pk_env_get_rsa(crypto_pk_env_t *env)
{
return env->key;
}
/** used by tortls.c: get an equivalent EVP_PKEY* for a crypto_pk_env_t. Iff
* private is set, include the private-key portion of the key. */
EVP_PKEY *
+1
View File
@@ -199,6 +199,7 @@ void secret_to_key(char *key_out, size_t key_out_len, const char *secret,
struct rsa_st;
struct evp_pkey_st;
struct dh_st;
struct rsa_st *_crypto_pk_env_get_rsa(crypto_pk_env_t *env);
crypto_pk_env_t *_crypto_new_pk_env_rsa(struct rsa_st *rsa);
crypto_pk_env_t *_crypto_new_pk_env_evp_pkey(struct evp_pkey_st *pkey);
struct evp_pkey_st *_crypto_pk_env_get_evp_pkey(crypto_pk_env_t *env,