aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/taler_util.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 3c901b3fa..db6f22e68 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -285,6 +285,22 @@ struct TALER_RefreshLinkDecrypted
/**
+ * Use the @a trans_sec (from ECDHE) to decrypt the @a secret_enc
+ * to obtain the @a secret to decrypt the linkage data.
+ *
+ * @param secret_enc encrypted secret (FIXME: use different type!)
+ * @param trans_sec transfer secret (FIXME: use different type?)
+ * @param secret shared secret for refresh link decryption
+ * (FIXME: use different type?)
+ * @return #GNUNET_OK on success
+ */
+int
+TALER_transfer_decrypt (const struct GNUNET_HashCode *secret_enc,
+ const struct GNUNET_HashCode *trans_sec,
+ struct GNUNET_HashCode *secret);
+
+
+/**
* Decrypt refresh link information.
*
* @param input encrypted refresh link data