diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-08-11 22:19:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-08-11 22:19:14 +0200 |
commit | bcd5a51a7e8b7b7097d6ab4761e2e097a97c9bc6 (patch) | |
tree | 1c620a89e7ca4704e2a352c4503c8204505c5675 | |
parent | 0bfc7bcbf92fb9f9c6a92ab9b217230d490607da (diff) | |
parent | 3115c6acc67f308867eee30569c3340314b7668c (diff) |
Merge branch 'master' of git+ssh://taler.net/var/git/exchange
-rw-r--r-- | src/util/crypto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/crypto.c b/src/util/crypto.c index fb90dfe6c..c63a3d353 100644 --- a/src/util/crypto.c +++ b/src/util/crypto.c @@ -183,7 +183,7 @@ TALER_setup_fresh_coin (const struct TALER_TransferSecretP *secret_seed, struct TALER_FreshCoinP *fc) { uint32_t be_salt = htonl (coin_num_salt); - unsigned char *p; + uint8_t *p; GNUNET_assert (GNUNET_OK == GNUNET_CRYPTO_kdf (fc, @@ -199,7 +199,7 @@ TALER_setup_fresh_coin (const struct TALER_TransferSecretP *secret_seed, /* Taken from like 170-172 of libgcrypt/cipher/ecc.c * We note that libgcrypt stores the private key in the reverse order * from many Ed25519 implementatons. */ - p = (char *) fc->coin_priv; /*->key->bits; */ + p = (uint8_t *) &(fc->coin_priv); p[0] &= 0x7f; /* Clear bit 255. */ p[0] |= 0x40; /* Set bit 254. */ p[31] &= 0xf8; /* Clear bits 2..0 so that d mod 8 == 0 */ |