Lines Matching refs:key

42  * functions provided to retrieve key attributes.  If an application needs
72 /*% A buffer of this size is large enough to hold any key */
77 * of any key
82 #define DST_TYPE_KEY 0x1000000 /* KEY key */
124 dst_context_create(dst_key_t *key, isc_mem_t *mctx, dst_context_t **dctxp);
127 dst_context_create2(dst_key_t *key, isc_mem_t *mctx,
134 * \li "key" is a valid key.
177 * Computes a signature using the data and key stored in the context.
195 * Verifies the signature using the data and key stored in the context.
216 * \li "pub" is a valid key that can be used to derive a shared secret
217 * \li "priv" is a valid private key that can be used to derive a shared secret
232 * Reads a key from permanent storage. The key can either be a public or
233 * private key, and is specified by name, algorithm, and id. If a private key
234 * is specified, the public key must also be present. If directory is NULL,
239 * \li "id" is a valid key tag identifier.
240 * \li "alg" is a supported key algorithm.
251 * \li If successful, *keyp will contain a valid key.
258 * Reads a key from permanent storage. The key can either be a public or
259 * key, and is specified by filename. If a private key is specified, the
260 * public key must also be present.
274 * \li If successful, *keyp will contain a valid key.
282 * Reads a public key from permanent storage. The key must be a public key.
292 * \li DST_R_BADKEYTYPE if the key type is not the expected one
293 * \li ISC_R_UNEXPECTEDTOKEN if the file can not be parsed as a public key
297 * \li If successful, *keyp will contain a valid key.
301 dst_key_tofile(const dst_key_t *key, int type, const char *directory);
303 * Writes a key to permanent storage. The key can either be a public or
304 * private key. Public keys are written in DNS format and private keys
309 * \li "key" is a valid key.
321 * Converts a DNS KEY record into a DST key.
334 * \li If successful, *keyp will contain a valid key, and the consumed
339 dst_key_todns(const dst_key_t *key, isc_buffer_t *target);
341 * Converts a DST key into a DNS KEY record.
344 * \li "key" is a valid key.
361 * Converts a buffer containing DNS KEY RDATA into a DST key.
365 *\li "alg" is a supported key algorithm.
375 *\li If successful, *keyp will contain a valid key, and the consumed
380 dst_key_tobuffer(const dst_key_t *key, isc_buffer_t *target);
382 * Converts a DST key into DNS KEY RDATA format.
385 *\li "key" is a valid key.
397 dst_key_privatefrombuffer(dst_key_t *key, isc_buffer_t *buffer);
399 * Converts a public key into a private key, reading the private key
401 * as the .private key file would.
404 *\li "key" is a valid public key.
412 *\li If successful, key will contain a valid private key.
416 dst_key_getgssctx(const dst_key_t *key);
418 * Returns the opaque key data.
422 *\li "key" is not NULL.
425 *\li gssctx key data, possibly NULL.
432 * Converts a GSSAPI opaque context id into a DST key.
445 *\li If successful, *keyp will contain a valid key and be responsible for
462 * Generate a DST key (or keypair) with the supplied parameters. The
487 *\li If successful, *keyp will contain a valid key.
496 *\li "key1" is a valid key.
497 *\li "key2" is a valid key.
511 *\li "key1" is a valid key.
512 *\li "key2" is a valid key.
522 * Attach to a existing key increasing the reference count.
525 *\li 'source' to be a valid key.
532 * Release all memory associated with the key.
535 *\li "keyp" is not NULL and "*keyp" is a valid key.
543 * Accessor functions to obtain key fields.
546 *\li "key" is a valid key.
549 dst_key_name(const dst_key_t *key);
552 dst_key_size(const dst_key_t *key);
555 dst_key_proto(const dst_key_t *key);
558 dst_key_alg(const dst_key_t *key);
561 dst_key_flags(const dst_key_t *key);
564 dst_key_id(const dst_key_t *key);
567 dst_key_class(const dst_key_t *key);
570 dst_key_isprivate(const dst_key_t *key);
573 dst_key_iszonekey(const dst_key_t *key);
576 dst_key_isnullkey(const dst_key_t *key);
579 dst_key_buildfilename(const dst_key_t *key, int type,
582 * Generates the filename used by dst to store the specified key.
586 *\li "key" is a valid key
596 dst_key_sigsize(const dst_key_t *key, unsigned int *n);
598 * Computes the size of a signature generated by the given key.
601 *\li "key" is a valid key.
613 dst_key_secretsize(const dst_key_t *key, unsigned int *n);
615 * Computes the size of a shared secret generated by the given key.
618 *\li "key" is a valid key.
632 * Computes the key id of the key stored in the provided region with the
639 *\li the key id
643 dst_key_getbits(const dst_key_t *key);
648 * "key" is a valid key.
652 dst_key_setbits(dst_key_t *key, isc_uint16_t bits);
657 * "key" is a valid key.