diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_keystate.c')
-rw-r--r-- | src/mint/taler-mint-httpd_keystate.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_keystate.c b/src/mint/taler-mint-httpd_keystate.c index 41617589a..c35ed15ad 100644 --- a/src/mint/taler-mint-httpd_keystate.c +++ b/src/mint/taler-mint-httpd_keystate.c | |||
@@ -456,4 +456,29 @@ read_again: | |||
456 | } | 456 | } |
457 | 457 | ||
458 | 458 | ||
459 | /** | ||
460 | * Sign the message in @a purpose with the mint's signing | ||
461 | * key. | ||
462 | * | ||
463 | * @param purpose the message to sign | ||
464 | * @param[OUT] sig signature over purpose using current signing key | ||
465 | */ | ||
466 | void | ||
467 | TALER_MINT_keys_sign (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose, | ||
468 | struct GNUNET_CRYPTO_EddsaSignature *sig) | ||
469 | |||
470 | { | ||
471 | struct MintKeyState *key_state; | ||
472 | |||
473 | key_state = TALER_MINT_key_state_acquire (); | ||
474 | GNUNET_assert (GNUNET_OK == | ||
475 | GNUNET_CRYPTO_eddsa_sign (&key_state->current_sign_key_issue.signkey_priv, | ||
476 | purpose, | ||
477 | sig)); | ||
478 | TALER_MINT_key_state_release (key_state); | ||
479 | } | ||
480 | |||
481 | |||
482 | |||
483 | |||
459 | /* end of taler-mint-httpd_keystate.c */ | 484 | /* end of taler-mint-httpd_keystate.c */ |