OpenCoverage

m_wp.c

Absolute File Name:/home/opencoverage/opencoverage/guest-scripts/libressl/src/crypto/evp/m_wp.c
Source codeSwitch to Preprocessed file
LineSourceCount
1/* $OpenBSD: m_wp.c,v 1.8 2014/07/13 09:30:02 miod Exp $ */-
2-
3#include <stdio.h>-
4-
5#include <openssl/opensslconf.h>-
6-
7#ifndef OPENSSL_NO_WHIRLPOOL-
8-
9#include <openssl/evp.h>-
10#include <openssl/objects.h>-
11#include <openssl/x509.h>-
12#include <openssl/whrlpool.h>-
13-
14static int-
15init(EVP_MD_CTX *ctx)-
16{-
17 return WHIRLPOOL_Init(ctx->md_data);
never executed: return WHIRLPOOL_Init(ctx->md_data);
0
18}-
19-
20static int-
21update(EVP_MD_CTX *ctx, const void *data, size_t count)-
22{-
23 return WHIRLPOOL_Update(ctx->md_data, data, count);
never executed: return WHIRLPOOL_Update(ctx->md_data, data, count);
0
24}-
25-
26static int-
27final(EVP_MD_CTX *ctx, unsigned char *md)-
28{-
29 return WHIRLPOOL_Final(md, ctx->md_data);
never executed: return WHIRLPOOL_Final(md, ctx->md_data);
0
30}-
31-
32static const EVP_MD whirlpool_md = {-
33 .type = NID_whirlpool,-
34 .pkey_type = 0,-
35 .md_size = WHIRLPOOL_DIGEST_LENGTH,-
36 .flags = 0,-
37 .init = init,-
38 .update = update,-
39 .final = final,-
40 .copy = NULL,-
41 .cleanup = NULL,-
42 .sign = NULL,-
43 .verify = NULL,-
44 .required_pkey_type = {-
45 0, 0, 0, 0,-
46 },-
47 .block_size = WHIRLPOOL_BBLOCK / 8,-
48 .ctx_size = sizeof(EVP_MD *) + sizeof(WHIRLPOOL_CTX),-
49};-
50-
51const EVP_MD *-
52EVP_whirlpool(void)-
53{-
54 return (&whirlpool_md);
executed 292 times by 33 tests: return (&whirlpool_md);
Executed by:
  • asn1test
  • base64test
  • bnaddsub
  • bntest
  • cipher_list
  • cipherstest
  • clienttest
  • configtest
  • dhtest
  • dsatest
  • ecdhtest
  • ecdsatest
  • ectest
  • enginetest
  • evptest
  • exptest
  • gost2814789t
  • hkdftest
  • keypairtest
  • libcrypto.so.44.0.1
  • mont
  • pbkdf2
  • pkcs7test
  • rc4test
  • rsa_test
  • ...
292
55}-
56#endif-
Source codeSwitch to Preprocessed file

Generated by Squish Coco 4.2.2