Go to the source code of this file.
Functions | |
struct ccn_sigc * | ccn_sigc_create (void) |
int | ccn_sigc_init (struct ccn_sigc *ctx, const char *digest) |
void | ccn_sigc_destroy (struct ccn_sigc **) |
int | ccn_sigc_update (struct ccn_sigc *ctx, const void *data, size_t size) |
int | ccn_sigc_final (struct ccn_sigc *ctx, struct ccn_signature *signature, size_t *size, const struct ccn_pkey *priv_key) |
size_t | ccn_sigc_signature_max_size (struct ccn_sigc *ctx, const struct ccn_pkey *priv_key) |
int | ccn_verify_signature (const unsigned char *msg, size_t size, const struct ccn_parsed_ContentObject *co, const struct ccn_pkey *verification_pubkey) |
struct ccn_pkey * | ccn_d2i_pubkey (const unsigned char *p, size_t size) |
void | ccn_pubkey_free (struct ccn_pkey *i_pubkey) |
size_t | ccn_pubkey_size (const struct ccn_pkey *i_pubkey) |
int | ccn_append_pubkey_blob (struct ccn_charbuf *c, const struct ccn_pkey *i_pubkey) |
This is a veneer so that the ccn code can use various underlying implementations of the signature functions without muss and fuss.
Part of the CCNx C Library.
Copyright (C) 2008, 2009 Palo Alto Research Center, Inc.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition in file signing.h.
int ccn_append_pubkey_blob | ( | struct ccn_charbuf * | c, | |
const struct ccn_pkey * | i_pubkey | |||
) |
Definition at line 318 of file ccn_signing.c.
Referenced by ccn_get_public_key(), ccn_sign_content(), and main().
struct ccn_pkey* ccn_d2i_pubkey | ( | const unsigned char * | p, | |
size_t | size | |||
) | [read] |
void ccn_pubkey_free | ( | struct ccn_pkey * | i_pubkey | ) |
size_t ccn_pubkey_size | ( | const struct ccn_pkey * | i_pubkey | ) |
Definition at line 309 of file ccn_signing.c.
struct ccn_sigc* ccn_sigc_create | ( | void | ) | [read] |
void ccn_sigc_destroy | ( | struct ccn_sigc ** | ) |
int ccn_sigc_final | ( | struct ccn_sigc * | ctx, | |
struct ccn_signature * | signature, | |||
size_t * | size, | |||
const struct ccn_pkey * | priv_key | |||
) |
int ccn_sigc_init | ( | struct ccn_sigc * | ctx, | |
const char * | digest | |||
) |
size_t ccn_sigc_signature_max_size | ( | struct ccn_sigc * | ctx, | |
const struct ccn_pkey * | priv_key | |||
) |
int ccn_sigc_update | ( | struct ccn_sigc * | ctx, | |
const void * | data, | |||
size_t | size | |||
) |
int ccn_verify_signature | ( | const unsigned char * | msg, | |
size_t | size, | |||
const struct ccn_parsed_ContentObject * | co, | |||
const struct ccn_pkey * | verification_pubkey | |||
) |
Definition at line 176 of file ccn_signing.c.
Referenced by ccn_dispatch_message(), ccn_verify_content(), decode_message(), and main().