summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-01-27 16:31:18 +0100
committerChristian Grothoff <christian@grothoff.org>2015-01-27 16:31:18 +0100
commit16817ef0d12ee1b51203f96b0dd3708c1dae3509 (patch)
treeb9f9990e00f91b5b2d211416b4a05548cdc5b12d /src/include
parent2cda5ea7ee7e0e87b875ce54b483fdde86ed0dac (diff)
downloadexchange-16817ef0d12ee1b51203f96b0dd3708c1dae3509.tar.gz
exchange-16817ef0d12ee1b51203f96b0dd3708c1dae3509.tar.bz2
exchange-16817ef0d12ee1b51203f96b0dd3708c1dae3509.zip
implementing new link crypto API
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_util.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index f1264d254..3c901b3fa 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -247,19 +247,21 @@ struct TALER_RefreshLinkEncrypted
{
/**
- * Encrypted private key of the coin.
+ * Encrypted blinding key with @e blinding_key_enc_size bytes,
+ * must be allocated at the end of this struct.
*/
- char [sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey)] coin_priv_enc;
+ const char *blinding_key_enc;
/**
- * Encrypted blinding key with @e blinding_key_enc_size bytes.
+ * Number of bytes in @e blinding_key_enc.
*/
- char *blinding_key_enc;
+ size_t blinding_key_enc_size;
/**
- * Number of bytes in @e blinding_key_enc.
+ * Encrypted private key of the coin.
*/
- size_t blinding_key_enc_size;
+ char coin_priv_enc[sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey)];
+
};