diff options
Diffstat (limited to 'src/include/taler_rsa.h')
-rw-r--r-- | src/include/taler_rsa.h | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/include/taler_rsa.h b/src/include/taler_rsa.h index 1d263ae09..98be63372 100644 --- a/src/include/taler_rsa.h +++ b/src/include/taler_rsa.h | |||
@@ -229,7 +229,8 @@ TALER_RSA_public_key_from_string (const char *enc, | |||
229 | 229 | ||
230 | 230 | ||
231 | /** | 231 | /** |
232 | * Sign a given block.h | 232 | * Sign a given data block. The size of the message should be less than |
233 | * TALER_RSA_DATA_ENCODING_LENGTH (256) bytes. | ||
233 | * | 234 | * |
234 | * @param key private key to use for the signing | 235 | * @param key private key to use for the signing |
235 | * @param msg the message | 236 | * @param msg the message |
@@ -245,21 +246,8 @@ TALER_RSA_sign (const struct TALER_RSA_PrivateKey *key, | |||
245 | 246 | ||
246 | 247 | ||
247 | /** | 248 | /** |
248 | * Verify signature with the given hash. | 249 | * Verify signature on the given message. The size of the message should be |
249 | * | 250 | * less than TALER_RSA_DATA_ENCODING_LENGTH (256) bytes. |
250 | * @param hash the hash code to verify against the signature | ||
251 | * @param sig signature that is being validated | ||
252 | * @param publicKey public key of the signer | ||
253 | * @returns GNUNET_OK if ok, GNUNET_SYSERR if invalid | ||
254 | */ | ||
255 | int | ||
256 | TALER_RSA_hash_verify (const struct GNUNET_HashCode *hash, | ||
257 | const struct TALER_RSA_Signature *sig, | ||
258 | const struct TALER_RSA_PublicKeyBinaryEncoded *publicKey); | ||
259 | |||
260 | |||
261 | /** | ||
262 | * Verify signature on the given message | ||
263 | * | 251 | * |
264 | * @param msg the message | 252 | * @param msg the message |
265 | * @param size the size of the message | 253 | * @param size the size of the message |