diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-04 13:46:09 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-04 13:46:09 +0200 |
commit | 7daf5226b74e14a6e0f1a888b0be26f3d246f9f8 (patch) | |
tree | 6436de2e84e7a677ecfb83db4bf44766cc273d9f /src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c | |
parent | 7d1b0304467bc668b592ccd6680fd9615efbb5b2 (diff) | |
download | strongswan-7daf5226b74e14a6e0f1a888b0be26f3d246f9f8.tar.bz2 strongswan-7daf5226b74e14a6e0f1a888b0be26f3d246f9f8.tar.xz |
removed trailing spaces ([[:space:]]+$)
Diffstat (limited to 'src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c')
-rw-r--r-- | src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c b/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c index b7c13defb..0a8da815a 100644 --- a/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c +++ b/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c @@ -25,7 +25,7 @@ bool build_pub(chunk_t *encoding, va_list args) { chunk_t n, e; - + if (key_encoding_args(args, KEY_PART_RSA_MODULUS, &n, KEY_PART_RSA_PUB_EXP, &e, KEY_PART_END)) { @@ -43,7 +43,7 @@ bool build_pub(chunk_t *encoding, va_list args) bool build_pub_info(chunk_t *encoding, va_list args) { chunk_t n, e; - + if (key_encoding_args(args, KEY_PART_RSA_MODULUS, &n, KEY_PART_RSA_PUB_EXP, &e, KEY_PART_END)) { @@ -64,7 +64,7 @@ bool build_pub_info(chunk_t *encoding, va_list args) bool build_priv(chunk_t *encoding, va_list args) { chunk_t n, e, d, p, q, exp1, exp2, coeff; - + if (key_encoding_args(args, KEY_PART_RSA_MODULUS, &n, KEY_PART_RSA_PUB_EXP, &e, KEY_PART_RSA_PRIV_EXP, &d, KEY_PART_RSA_PRIME1, &p, KEY_PART_RSA_PRIME2, &q, @@ -92,7 +92,7 @@ bool build_priv(chunk_t *encoding, va_list args) static bool hash_pubkey(chunk_t pubkey, chunk_t *hash) { hasher_t *hasher; - + hasher = lib->crypto->create_hasher(lib->crypto, HASH_SHA1); if (hasher == NULL) { @@ -112,7 +112,7 @@ static bool hash_pubkey(chunk_t pubkey, chunk_t *hash) static bool build_info_sha1(chunk_t *encoding, va_list args) { chunk_t pubkey; - + if (build_pub_info(&pubkey, args)) { return hash_pubkey(pubkey, encoding); @@ -126,7 +126,7 @@ static bool build_info_sha1(chunk_t *encoding, va_list args) static bool build_sha1(chunk_t *encoding, va_list args) { chunk_t pubkey; - + if (build_pub(&pubkey, args)) { return hash_pubkey(pubkey, encoding); |