diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-07 00:28:07 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-07 00:28:07 +0100 |
commit | ffcadbff8c678c495af05428de21761cf3956f3b (patch) | |
tree | 28587c91a063b2d97972bb7ba1eac0803580035b /src/util/crypto.c | |
parent | 82d7b63ff5c8fc86d5146333943eb4a03a2e6e08 (diff) | |
download | exchange-ffcadbff8c678c495af05428de21761cf3956f3b.tar.xz |
code cleanup (comments, scoping, naming, indentation)
Diffstat (limited to 'src/util/crypto.c')
-rw-r--r-- | src/util/crypto.c | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c index 3544fdcc4..e650f1902 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -121,11 +121,10 @@ TALER_test_coin_valid (const struct TALER_CoinPublicInfo *coin_public_info, * @param[out] ts computed transfer secret */ void -TALER_link_derive_transfer_secret (const struct - TALER_CoinSpendPrivateKeyP *coin_priv, - const struct - TALER_TransferPrivateKeyP *trans_priv, - struct TALER_TransferSecretP *ts) +TALER_link_derive_transfer_secret ( + const struct TALER_CoinSpendPrivateKeyP *coin_priv, + const struct TALER_TransferPrivateKeyP *trans_priv, + struct TALER_TransferSecretP *ts) { struct TALER_CoinSpendPublicKeyP coin_pub; @@ -148,11 +147,10 @@ TALER_link_derive_transfer_secret (const struct * @param[out] transfer_secret set to the shared secret */ void -TALER_link_reveal_transfer_secret (const struct - TALER_TransferPrivateKeyP *trans_priv, - const struct - TALER_CoinSpendPublicKeyP *coin_pub, - struct TALER_TransferSecretP *transfer_secret) +TALER_link_reveal_transfer_secret ( + const struct TALER_TransferPrivateKeyP *trans_priv, + const struct TALER_CoinSpendPublicKeyP *coin_pub, + struct TALER_TransferSecretP *transfer_secret) { GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_ecdh_eddsa (&trans_priv->ecdhe_priv, @@ -170,12 +168,10 @@ TALER_link_reveal_transfer_secret (const struct * @param[out] transfer_secret set to the shared secret */ void -TALER_link_recover_transfer_secret (const struct - TALER_TransferPublicKeyP *trans_pub, - const struct - TALER_CoinSpendPrivateKeyP *coin_priv, - struct TALER_TransferSecretP * - transfer_secret) +TALER_link_recover_transfer_secret ( + const struct TALER_TransferPublicKeyP *trans_pub, + const struct TALER_CoinSpendPrivateKeyP *coin_priv, + struct TALER_TransferSecretP *transfer_secret) { GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_eddsa_ecdh (&coin_priv->eddsa_priv, |