|
Revision 136
(checked in by ben, 8 years ago)
|
Partial signature code, prior to refactor for verification.
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
#include "packet.h" |
|---|
| 5 |
#include "util.h" |
|---|
| 6 |
#include "create.h" |
|---|
| 7 |
|
|---|
| 8 |
ops_boolean_t |
|---|
| 9 |
ops_check_certification_signature(const ops_public_key_t *key, |
|---|
| 10 |
const ops_user_id_t *id, |
|---|
| 11 |
const ops_signature_t *sig, |
|---|
| 12 |
const ops_public_key_t *signer, |
|---|
| 13 |
const unsigned char *raw_packet); |
|---|
| 14 |
ops_boolean_t |
|---|
| 15 |
ops_check_subkey_signature(const ops_public_key_t *key, |
|---|
| 16 |
const ops_public_key_t *subkey, |
|---|
| 17 |
const ops_signature_t *sig, |
|---|
| 18 |
const ops_public_key_t *signer, |
|---|
| 19 |
const unsigned char *raw_packet); |
|---|
| 20 |
void ops_signature_start(ops_create_signature_t *sig, |
|---|
| 21 |
const ops_public_key_t *key, |
|---|
| 22 |
const ops_user_id_t *id); |
|---|
| 23 |
void ops_signature_hashed_subpackets_end(ops_create_signature_t *sig); |
|---|
| 24 |
void ops_signature_end(ops_create_signature_t *sig,ops_public_key_t *key, |
|---|
| 25 |
ops_secret_key_t *skey); |
|---|
| 26 |
void ops_signature_add_creation_time(ops_create_signature_t *sig,time_t when); |
|---|
| 27 |
void ops_signature_add_issuer_key_id(ops_create_signature_t *sig, |
|---|
| 28 |
const unsigned char keyid[OPS_KEY_ID_SIZE]); |
|---|
| 29 |
void ops_signature_add_primary_user_id(ops_create_signature_t *sig, |
|---|
| 30 |
ops_boolean_t primary); |
|---|
| 31 |
|
|---|