aboutsummaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mint/taler-mint-httpd_keys.c')
-rw-r--r--src/mint/taler-mint-httpd_keys.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/mint/taler-mint-httpd_keys.c b/src/mint/taler-mint-httpd_keys.c
index 71d7f077e..a03f5d23c 100644
--- a/src/mint/taler-mint-httpd_keys.c
+++ b/src/mint/taler-mint-httpd_keys.c
@@ -72,30 +72,4 @@ TALER_MINT_handler_keys (struct RequestHandler *rh,
72} 72}
73 73
74 74
75
76
77/**
78 * Sign the message in @a purpose with the mint's signing
79 * key.
80 *
81 * @param purpose the message to sign
82 * @param[OUT] sig signature over purpose using current signing key
83 */
84void
85TALER_MINT_keys_sign (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose,
86 struct GNUNET_CRYPTO_EddsaSignature *sig)
87
88{
89 struct MintKeyState *key_state;
90
91 key_state = TALER_MINT_key_state_acquire ();
92 GNUNET_assert (GNUNET_OK ==
93 GNUNET_CRYPTO_eddsa_sign (&key_state->current_sign_key_issue.signkey_priv,
94 purpose,
95 sig));
96
97 TALER_MINT_key_state_release (key_state);
98}
99
100
101/* end of taler-mint-httpd_keys.c */ 75/* end of taler-mint-httpd_keys.c */