diff options
Diffstat (limited to 'src/mint/taler-mint-httpd_keys.c')
-rw-r--r-- | src/mint/taler-mint-httpd_keys.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mint/taler-mint-httpd_keys.c b/src/mint/taler-mint-httpd_keys.c index 8db32cd83..01679718e 100644 --- a/src/mint/taler-mint-httpd_keys.c +++ b/src/mint/taler-mint-httpd_keys.c | |||
@@ -512,4 +512,28 @@ read_again: | |||
512 | } | 512 | } |
513 | 513 | ||
514 | 514 | ||
515 | /** | ||
516 | * Sign the message in @a purpose with the mint's signing | ||
517 | * key. | ||
518 | * | ||
519 | * @param purpose the message to sign | ||
520 | * @param[OUT] sig signature over purpose using current signing key | ||
521 | */ | ||
522 | void | ||
523 | TALER_MINT_keys_sign (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpose, | ||
524 | struct GNUNET_CRYPTO_EddsaSignature *sig) | ||
525 | |||
526 | { | ||
527 | struct MintKeyState *key_state; | ||
528 | |||
529 | key_state = TALER_MINT_key_state_acquire (); | ||
530 | GNUNET_assert (GNUNET_OK == | ||
531 | GNUNET_CRYPTO_eddsa_sign (&key_state->current_sign_key_issue.signkey_priv, | ||
532 | purpose, | ||
533 | sig)); | ||
534 | |||
535 | TALER_MINT_key_state_release (key_state); | ||
536 | } | ||
537 | |||
538 | |||
515 | /* end of taler-mint-httpd_keys.c */ | 539 | /* end of taler-mint-httpd_keys.c */ |