signature.h File Reference

#include "packet.h"
#include "util.h"
#include "create.h"

Go to the source code of this file.

Typedefs

typedef ops_create_signature ops_create_signature_t

Functions

ops_create_signature_t * ops_create_signature_new (void)
 Creates new ops_create_signature_t.
void ops_create_signature_delete (ops_create_signature_t *sig)
 Free signature and memory associated with it.
ops_boolean_t ops_check_user_id_certification_signature (const ops_public_key_t *key, const ops_user_id_t *id, const ops_signature_t *sig, const ops_public_key_t *signer, const unsigned char *raw_packet)
 Verify a certification signature.
ops_boolean_t ops_check_user_attribute_certification_signature (const ops_public_key_t *key, const ops_user_attribute_t *attribute, const ops_signature_t *sig, const ops_public_key_t *signer, const unsigned char *raw_packet)
 Verify a certification signature.
ops_boolean_t ops_check_subkey_signature (const ops_public_key_t *key, const ops_public_key_t *subkey, const ops_signature_t *sig, const ops_public_key_t *signer, const unsigned char *raw_packet)
 Verify a subkey signature.
ops_boolean_t ops_check_direct_signature (const ops_public_key_t *key, const ops_signature_t *sig, const ops_public_key_t *signer, const unsigned char *raw_packet)
 Verify a direct signature.
ops_boolean_t ops_check_hash_signature (ops_hash_t *hash, const ops_signature_t *sig, const ops_public_key_t *signer)
 Verify a signature on a hash (the hash will have already been fed the material that was being signed, for example signed cleartext).
void ops_signature_start_key_signature (ops_create_signature_t *sig, const ops_public_key_t *key, const ops_user_id_t *id, ops_sig_type_t type)
 ops_signature_start() creates a V4 public key signature with a SHA1 hash.
void ops_signature_start_cleartext_signature (ops_create_signature_t *sig, const ops_secret_key_t *key, const ops_hash_algorithm_t hash, const ops_sig_type_t type)
 Setup to start a cleartext's signature.
void ops_signature_start_message_signature (ops_create_signature_t *sig, const ops_secret_key_t *key, const ops_hash_algorithm_t hash, const ops_sig_type_t type)
 Setup to start a message's signature.
void ops_signature_add_data (ops_create_signature_t *sig, const void *buf, size_t length)
 Add plaintext data to a signature-to-be.
ops_hash_tops_signature_get_hash (ops_create_signature_t *sig)
 Get the hash structure in use for the signature.
ops_boolean_t ops_signature_hashed_subpackets_end (ops_create_signature_t *sig)
 Mark the end of the hashed subpackets in the signature.
ops_boolean_t ops_write_signature (ops_create_signature_t *sig, const ops_public_key_t *key, const ops_secret_key_t *skey, ops_create_info_t *opt)
 Write out a signature.
ops_boolean_t ops_signature_add_creation_time (ops_create_signature_t *sig, time_t when)
 ops_signature_add_creation_time() adds a creation time to the signature.
ops_boolean_t ops_signature_add_issuer_key_id (ops_create_signature_t *sig, const unsigned char keyid[OPS_KEY_ID_SIZE])
 Adds issuer's key ID to the signature.
void ops_signature_add_primary_user_id (ops_create_signature_t *sig, ops_boolean_t primary)
 Adds primary user ID to the signature.
ops_boolean_t ops_sign_file_as_cleartext (const char *input_filename, const char *output_filename, const ops_secret_key_t *skey, const ops_boolean_t overwrite)
 Sign a file with a Cleartext Signature.
ops_boolean_t ops_sign_buf_as_cleartext (const char *input, const size_t len, ops_memory_t **output, const ops_secret_key_t *skey)
 Sign a buffer with a Cleartext signature.
ops_boolean_t ops_sign_file (const char *input_filename, const char *output_filename, const ops_secret_key_t *skey, const ops_boolean_t use_armour, const ops_boolean_t overwrite)
 Sign a file.
ops_memory_tops_sign_buf (const void *input, const size_t input_len, const ops_sig_type_t sig_type, const ops_secret_key_t *skey, const ops_boolean_t use_armour, ops_boolean_t include_data)
 Signs a buffer.
ops_boolean_t ops_writer_push_signed (ops_create_info_t *cinfo, const ops_sig_type_t sig_type, const ops_secret_key_t *skey)
 Pushes a signed writer onto the stack.


Detailed Description


Generated on Sat May 25 00:00:02 2013 for OpenPGP:SDK by  doxygen 1.4.6