static int partial_hash_sha512(uint8_t *data_in, uint8_t *data_out) { SHA512_CTX ctx; if (!SHA512_Init(&ctx)) return -EFAULT; SHA512_Transform(&ctx, data_in); rte_memcpy(data_out, &ctx, SHA512_DIGEST_LENGTH); return 0; }
static void tls1_sha512_transform(HASH_CTX *ctx, const uint8_t *block) { SHA512_Transform(&ctx->sha512, block); }