]> the.earth.li Git - onak.git/blobdiff - sigcheck.h
Expose more of calculating the packet signature hash
[onak.git] / sigcheck.h
index 394dd65f56b0a44ebe4cefd7d71601dc7a5f7421..756987e2b72745410769be0694f824e26cfd5c55 100644 (file)
@@ -2,8 +2,11 @@
 #define __SIGCHECK_H__
 #include "keystructs.h"
 
-int check_packet_sighash(struct openpgp_publickey *key,
+onak_status_t calculate_packet_sighash(struct openpgp_publickey *key,
                        struct openpgp_packet *packet,
-                       struct openpgp_packet *sig);
+                       struct openpgp_packet *sig,
+                       uint8_t *hashtype,
+                       uint8_t *hash,
+                       uint8_t **sighash);
 
 #endif /* __SIGCHECK_H__ */