]> the.earth.li Git - onak.git/blob - sigcheck.h
Remove --with-systemd option to dh
[onak.git] / sigcheck.h
1 #ifndef __SIGCHECK_H__
2 #define __SIGCHECK_H__
3 #include "keystructs.h"
4
5 onak_status_t calculate_packet_sighash(struct openpgp_publickey *key,
6                         struct openpgp_packet *packet,
7                         struct openpgp_packet *sig,
8                         uint8_t *hashtype,
9                         uint8_t *hash,
10                         uint8_t **sighash);
11
12 /**
13  * onak_check_hash_sig - check the signature on a hash is valid
14  * @sigkey: The public key that made the signature
15  * @sig: The signature packet
16  * @hash: Hash digest the signature is over
17  * @hashtype: Type of hash (OPENPGP_HASH_*)
18  */
19 onak_status_t onak_check_hash_sig(struct openpgp_publickey *sigkey,
20                 struct openpgp_packet *sig,
21                 uint8_t *hash,
22                 uint8_t hashtype);
23
24 #endif /* __SIGCHECK_H__ */