MCPcopy Create free account
hub / github.com/F-Stack/f-stack / partial_hash_sha1

Function partial_hash_sha1

dpdk/drivers/crypto/ccp/ccp_crypto.c:164–173  ·  view source on GitHub ↗

partial hash using openssl */

Source from the content-addressed store, hash-verified

162
163/* partial hash using openssl */
164static int partial_hash_sha1(uint8_t *data_in, uint8_t *data_out)
165{
166 SHA_CTX ctx;
167
168 if (!SHA1_Init(&ctx))
169 return -EFAULT;
170 SHA1_Transform(&ctx, data_in);
171 rte_memcpy(data_out, &ctx, SHA_DIGEST_LENGTH);
172 return 0;
173}
174
175static int partial_hash_sha224(uint8_t *data_in, uint8_t *data_out)
176{

Callers 1

generate_partial_hashFunction · 0.70

Calls 1

rte_memcpyFunction · 0.50

Tested by

no test coverage detected