diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-12-14 20:40:40 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-12-14 20:40:40 +0000 |
commit | 1af630d32c6f48d825f95cc258b95f18492192c0 (patch) | |
tree | 20cf316c42280d7944174ca1d4904b1ca7073c9c /src/common/crypto.h | |
parent | 7e632a75645c22efe7b1f122816e63839b119f8d (diff) | |
download | tor-1af630d32c6f48d825f95cc258b95f18492192c0.tar.gz tor-1af630d32c6f48d825f95cc258b95f18492192c0.zip |
Bite the bullet and limit all our source lines to 80 characters, the way IBM intended.
svn:r5582
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 4c91462878..be53b964bb 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -61,7 +61,8 @@ crypto_pk_env_t *crypto_new_pk_env(void); void crypto_free_pk_env(crypto_pk_env_t *env); /* convenience function: wraps crypto_create_crypto_env, set_key, and init. */ -crypto_cipher_env_t *crypto_create_init_cipher(const char *key, int encrypt_mode); +crypto_cipher_env_t *crypto_create_init_cipher(const char *key, + int encrypt_mode); crypto_cipher_env_t *crypto_new_cipher_env(void); void crypto_free_cipher_env(crypto_cipher_env_t *env); @@ -69,10 +70,14 @@ void crypto_free_cipher_env(crypto_cipher_env_t *env); /* public key crypto */ int crypto_pk_generate_key(crypto_pk_env_t *env); -int crypto_pk_read_private_key_from_filename(crypto_pk_env_t *env, const char *keyfile); -int crypto_pk_write_public_key_to_string(crypto_pk_env_t *env, char **dest, size_t *len); -int crypto_pk_read_public_key_from_string(crypto_pk_env_t *env, const char *src, size_t len); -int crypto_pk_write_private_key_to_filename(crypto_pk_env_t *env, const char *fname); +int crypto_pk_read_private_key_from_filename(crypto_pk_env_t *env, + const char *keyfile); +int crypto_pk_write_public_key_to_string(crypto_pk_env_t *env, + char **dest, size_t *len); +int crypto_pk_read_public_key_from_string(crypto_pk_env_t *env, + const char *src, size_t len); +int crypto_pk_write_private_key_to_filename(crypto_pk_env_t *env, + const char *fname); int crypto_pk_DER64_encode_public_key(crypto_pk_env_t *env, char **dest); crypto_pk_env_t *crypto_pk_DER64_decode_public_key(const char *in); |