aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c')
-rw-r--r--src/libstrongswan/plugins/pkcs1/pkcs1_encoder.c12
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);