partial hash using openssl */
| 162 | |
| 163 | /* partial hash using openssl */ |
| 164 | static 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 | |
| 175 | static int partial_hash_sha224(uint8_t *data_in, uint8_t *data_out) |
| 176 | { |
no test coverage detected