*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: ASN1_item_digest | Section: 3 | Source: OpenBSD | File: ASN1_item_digest.3
ASN1_ITEM_DIGEST(3) FreeBSD Library Functions Manual ASN1_ITEM_DIGEST(3) NAME ASN1_item_digest - DER-encode and hash an ASN.1 value SYNOPSIS #include <openssl/x509.h> int ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *val_in, unsigned char *md, unsigned int *s); DESCRIPTION ASN1_item_digest() assumes that val_in is an ASN1_VALUE of the type specified by it, encodes it into DER format by calling ASN1_item_i2d(3), hashes the resulting byte array using the digest type by calling EVP_Digest(3), places the digest value into *md, and, unless s is NULL, places the length in bytes of the digest into *s. Providing a buffer *md large enough to contain the digest is the responsibility of the caller; providing a buffer of EVP_MAX_MD_SIZE bytes is recommended. RETURN VALUES ASN1_item_digest() returns 1 for success or 0 if encoding or hashing fails. SEE ALSO ASN1_item_i2d(3), ASN1_item_sign(3), EVP_Digest(3) HISTORY ASN1_item_digest() first appeared in OpenSSL 0.9.7 and has been available since OpenBSD 3.1. FreeBSD 14.1-RELEASE-p8 September 11, 2022 FreeBSD 14.1-RELEASE-p8

Navigation Options