Home | History | Annotate | Download | only in src

Lines Matching defs:HASH

25 } HASH;
27 ASN1_SEQUENCE(HASH) = {
28 ASN1_SIMPLE(HASH, hashAlgorithm, X509_ALGOR),
29 ASN1_SIMPLE(HASH, dataHash, ASN1_OCTET_STRING),
30 } ASN1_SEQUENCE_END(HASH)
32 DECLARE_ASN1_FUNCTIONS(HASH)
33 IMPLEMENT_ASN1_FUNCTIONS(HASH)
136 * Creates a x509v3 extension containing a hash
151 * md: hash algorithm
152 * buf: pointer to the buffer that contains the hash
153 * len: size of the hash in bytes
162 HASH *hash;
168 /* OBJECT_IDENTIFIER with hash algorithm */
183 /* OCTET_STRING with the actual hash */
191 /* HASH structure containing algorithm + hash */
192 hash = HASH_new();
193 if (hash == NULL) {
198 hash->hashAlgorithm = x509_algor;
199 hash->dataHash = octet;
201 /* DER encoded HASH */
202 sz = i2d_HASH(hash, &p);
204 HASH_free(hash);
214 HASH_free(hash);