Exemple #1
0
CryptoSha1
crypto_sha1_init(void)
{
	CryptoSha1 sha1 = xmalloc(sizeof(*sha1));
	ssl_sha1_init(&sha1->data);
	return sha1;
}
Exemple #2
0
void
crypto_sha1_init(CRYPTO_SHA1 * sha1)
{
#ifdef CRYPTO_OPENSSL
	SHA1_Init(sha1);
#else /* built-in crypto */
	ssl_sha1_init(sha1);
#endif
}