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

Function partial_hash_sha224

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

Source from the content-addressed store, hash-verified

173}
174
175static int partial_hash_sha224(uint8_t *data_in, uint8_t *data_out)
176{
177 SHA256_CTX ctx;
178
179 if (!SHA224_Init(&ctx))
180 return -EFAULT;
181 SHA256_Transform(&ctx, data_in);
182 rte_memcpy(data_out, &ctx,
183 SHA256_DIGEST_LENGTH);
184 return 0;
185}
186
187static int partial_hash_sha256(uint8_t *data_in, uint8_t *data_out)
188{

Callers 1

generate_partial_hashFunction · 0.70

Calls 3

SHA224_InitFunction · 0.50
SHA256_TransformFunction · 0.50
rte_memcpyFunction · 0.50

Tested by

no test coverage detected