/*++ /* NAME /* ossl_digest 3 /* SUMMARY /* OpenSSL message digest wrapper /* SYNOPSIS /* #define USE_TLS /* /* #include <ossl_digest.h> /* /* OSSL_DGST *ossl_digest_new( /* const char *alg_name) /* /* int ossl_digest_data( /* OSSL_DGST *dgst, /* const void *data, /* ssize_t data_len, /* VSTRING *out); /* /* ARGV *ossl_digest_get_errors(void) /* /* ARGV *ossl_digest_log_errors( /* void (*logger)(const char *,...)) /* /* ssize_t ossl_digest_get_size( /* OSSL_DGST *dgst) /* /* void ossl_digest_free( /* OSSL_DGST *dgst) /* DESCRIPTION /* ossl_digest_new() allocates a wrapper for the named message /* digest algorithm. This wrapper can be used in multiple successive /* calls to compute a digest, and can be disposed of with /* ossl_digest_free(). /* /* ossl_digest_data() uses the specified message digest wrapper to /* compute a digest over the specified data. /* /* ossl_digest_get_errors() dumps and clears the OpenSSL error stack. /* Each stack entry is copied to one ARGV element. NOTE: The caller /* should be prepared for the call to return an empty result, /* and always report their own error info. /* /* ossl_digest_log_errors() logs and clears the OpenSSL error stack. /* Each stack entry is logged by the specified function. NOTE: /* The caller should be prepared for the call to return an empty /* result, and log their own error message. /* /* ossl_digest_get_size() returns the output byte count for the /* specified message digest wrapper. /* /* ossl_digest_free() releases storage allocated for or by the /* specified message wrapper. /* DIAGNOSTICS /* Panic: ossl_digest_data() was called with an invalid data_len /* argument; an ossl_digest_free() argument was not created with /* ossl_digest_new(). /* /* ossl_digest_new() returns NULL after error. ossl_digest_data() /* returns 0 after success, -1 after error. /* LICENSE /* .ad /* .fi /* The Secure Mailer license must be distributed with this software. /* AUTHOR(S) /* Wietse Venema /* porcupine.org
/*--*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.