| 1 |
/* |
| 2 |
* Copyright 2025 The OpenSSL Project Authors. All Rights Reserved. |
| 3 |
* |
| 4 |
* Licensed under the Apache License 2.0 (the "License"). You may not use |
| 5 |
* this file except in compliance with the License. You can obtain a copy |
| 6 |
* in the file LICENSE in the source distribution or at |
| 7 |
* https://www.openssl.org/source/license.html |
| 8 |
*/ |
| 9 |
|
| 10 |
#include <openssl/opensslconf.h> |
| 11 |
#include <openssl/md5.h> |
| 12 |
#include "crypto/riscv_arch.h" |
| 13 |
|
| 14 |
void ossl_md5_block_asm_data_order(MD5_CTX *c, const void *p, size_t num); |
| 15 |
void ossl_md5_block_asm_data_order_zbb(MD5_CTX *c, const void *p, size_t num); |
| 16 |
void ossl_md5_block_asm_data_order_riscv64(MD5_CTX *c, const void *p, size_t num); |
| 17 |
void ossl_md5_block_asm_data_order(MD5_CTX *c, const void *p, size_t num) |
| 18 |
{ |
| 19 |
if (RISCV_HAS_ZBB()) { |
| 20 |
ossl_md5_block_asm_data_order_zbb(c, p, num); |
| 21 |
} else { |
| 22 |
ossl_md5_block_asm_data_order_riscv64(c, p, num); |
| 23 |
} |
| 24 |
} |