summaryrefslogtreecommitdiff
path: root/ext/openssl/ossl_digest.h
blob: 9c3bb2b149ede9c1f2c255e254a5b1285aec9ad1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
 * 'OpenSSL for Ruby' project
 * Copyright (C) 2001-2002  Michal Rokos <m.rokos@sh.cvut.cz>
 * All rights reserved.
 */
/*
 * This program is licensed under the same licence as Ruby.
 * (See the file 'COPYING'.)
 */
#if !defined(_OSSL_DIGEST_H_)
#define _OSSL_DIGEST_H_

/*
 * Gets EVP_MD from a String or an OpenSSL::Digest instance (discouraged, but
 * still supported for compatibility). A holder object is created if the EVP_MD
 * is a "fetched" algorithm.
 */
const EVP_MD *ossl_evp_md_fetch(VALUE obj, volatile VALUE *holder);
/*
 * This is meant for OpenSSL::Engine#digest. EVP_MD must not be a fetched one.
 */
VALUE ossl_digest_new(const EVP_MD *);
void Init_ossl_digest(void);

#endif /* _OSSL_DIGEST_H_ */