Changeset 453
- Timestamp:
- 04/08/07 14:43:23
- Files:
-
- openpgpsdk/trunk/include/openpgpsdk/signature.h (modified) (1 diff)
- openpgpsdk/trunk/src/advanced/adv_signature.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openpgpsdk/trunk/include/openpgpsdk/signature.h
r314 r453 27 27 const unsigned char *raw_packet); 28 28 ops_boolean_t 29 ops_check_direct_signature(const ops_public_key_t *key, 30 const ops_signature_t *sig, 31 const ops_public_key_t *signer, 32 const unsigned char *raw_packet); 33 ops_boolean_t 29 34 ops_check_hash_signature(ops_hash_t *hash, 30 35 const ops_signature_t *sig, openpgpsdk/trunk/src/advanced/adv_signature.c
r426 r453 304 304 * \ingroup Verify 305 305 * 306 * Verify a direct signature. 307 * 308 * \param key The public key which was signed. 309 * \param sig The signature. 310 * \param signer The public key of the signer. 311 * \param raw_packet The raw signature packet. 312 */ 313 ops_boolean_t 314 ops_check_direct_signature(const ops_public_key_t *key, 315 const ops_signature_t *sig, 316 const ops_public_key_t *signer, 317 const unsigned char *raw_packet) 318 { 319 ops_hash_t hash; 320 321 init_signature(&hash,sig,key); 322 hash_add_key(&hash,key); 323 324 return finalise_signature(&hash,sig,signer,raw_packet); 325 } 326 327 /** 328 * \ingroup Verify 329 * 306 330 * Verify a signature on a hash (the hash will have already been fed 307 331 * the material that was being signed, for example signed cleartext).
