some cleanups here and there

This commit is contained in:
Martin Willi
2006-09-18 11:37:40 +00:00
parent 4f383c6950
commit a2cf2812c4
4 changed files with 9 additions and 13 deletions
@@ -44,6 +44,12 @@ extern u_int8_t sha384_oid[19];
extern u_int8_t sha512_oid[19];
/**
* defined in rsa_public_key.c
*/
extern chunk_t rsa_public_key_info_to_asn1(const mpz_t n, const mpz_t e);
/**
* Public exponent to use for key generation.
*/
@@ -408,7 +408,8 @@ private_rsa_public_key_t *rsa_public_key_create_empty(void)
}
/**
* Build a DER-encoded publicKeyInfo object from an RSA public key
* Build a DER-encoded publicKeyInfo object from an RSA public key.
* Also used in rsa_private_key.c.
*/
chunk_t rsa_public_key_info_to_asn1(const mpz_t n, const mpz_t e)
{
@@ -163,15 +163,4 @@ rsa_public_key_t *rsa_public_key_create_from_chunk(chunk_t chunk);
*/
rsa_public_key_t *rsa_public_key_create_from_file(char *filename);
/**
* @brief Build a DER-encoded publicKeyInfo object from an RSA public key
*
* @param n modulus n
* @param e public exponent
* @return DER-encoded publicKeyInfo object
*
* @ingroup rsa
*/
chunk_t rsa_public_key_info_to_asn1(const mpz_t n, const mpz_t e);
#endif /*RSA_PUBLIC_KEY_H_*/