From 16817ef0d12ee1b51203f96b0dd3708c1dae3509 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 27 Jan 2015 16:31:18 +0100 Subject: implementing new link crypto API --- src/include/taler_util.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/include') 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)]; + }; -- cgit v1.2.3