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

Function partial_hash_sha384

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

Source from the content-addressed store, hash-verified

197}
198
199static int partial_hash_sha384(uint8_t *data_in, uint8_t *data_out)
200{
201 SHA512_CTX ctx;
202
203 if (!SHA384_Init(&ctx))
204 return -EFAULT;
205 SHA512_Transform(&ctx, data_in);
206 rte_memcpy(data_out, &ctx,
207 SHA512_DIGEST_LENGTH);
208 return 0;
209}
210
211static int partial_hash_sha512(uint8_t *data_in, uint8_t *data_out)
212{

Callers 1

generate_partial_hashFunction · 0.70

Calls 3

SHA384_InitFunction · 0.50
SHA512_TransformFunction · 0.50
rte_memcpyFunction · 0.50

Tested by

no test coverage detected