diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-15 18:34:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-15 18:34:14 +0200 |
commit | 0a0feeea8679d96cf2b5679562654512d467f0c2 (patch) | |
tree | 550c28424dac2eaf6581c03468ed6124ed8fca1c /src/include/taler_crypto_lib.h | |
parent | 97e403bb665ccf736a840c28c717fa7b3dc8de30 (diff) |
finish #3777 including testing
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index dedeef5b0..752d2bfd8 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -442,6 +442,24 @@ TALER_link_decrypt_secret (const struct TALER_EncryptedLinkSecretP *secret_enc, /** + * Decrypt the shared @a secret from the information in the + * encrypted link secret @e secret_enc using the transfer + * public key and the coin's private key. + * + * @param secret_enc encrypted link secret + * @param transfer_pub transfer public key + * @param coin_priv coin private key + * @param[out] secret set to the shared secret + * @return #GNUNET_OK on success, #GNUNET_SYSERR on error + */ +int +TALER_link_decrypt_secret2 (const struct TALER_EncryptedLinkSecretP *secret_enc, + const struct TALER_TransferPublicKeyP *trans_pub, + const union TALER_CoinSpendPrivateKeyP *coin_priv, + struct TALER_LinkSecretP *secret); + + +/** * Encrypt the shared @a secret to generate the encrypted link secret. * Also creates the transfer key. * |