| 1 |
# SPDX-License-Identifier: GPL-2.0 |
| 2 |
|
| 3 |
menu "Accelerated Cryptographic Algorithms for CPU (riscv)" |
| 4 |
|
| 5 |
config CRYPTO_AES_RISCV64 |
| 6 |
tristate "Ciphers: AES, modes: ECB, CBC, CTS, CTR, XTS" |
| 7 |
depends on 64BIT && TOOLCHAIN_HAS_VECTOR_CRYPTO && \ |
| 8 |
RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS |
| 9 |
select CRYPTO_LIB_AES |
| 10 |
select CRYPTO_SKCIPHER |
| 11 |
help |
| 12 |
Length-preserving ciphers: AES with ECB, CBC, CTS, CTR, XTS |
| 13 |
|
| 14 |
Architecture: riscv64 using: |
| 15 |
- Zvkned vector crypto extension |
| 16 |
- Zvbb vector extension (XTS) |
| 17 |
- Zvkb vector crypto extension (CTR) |
| 18 |
- Zvkg vector crypto extension (XTS) |
| 19 |
|
| 20 |
config CRYPTO_SM4_RISCV64 |
| 21 |
tristate "Ciphers: SM4 (ShangMi 4)" |
| 22 |
depends on 64BIT && TOOLCHAIN_HAS_VECTOR_CRYPTO && \ |
| 23 |
RISCV_EFFICIENT_VECTOR_UNALIGNED_ACCESS |
| 24 |
select CRYPTO_ALGAPI |
| 25 |
select CRYPTO_SM4 |
| 26 |
help |
| 27 |
SM4 block cipher algorithm (OSCCA GB/T 32907-2016, |
| 28 |
ISO/IEC 18033-3:2010/Amd 1:2021) |
| 29 |
|
| 30 |
SM4 (GBT.32907-2016) is a cryptographic standard issued by the |
| 31 |
Organization of State Commercial Administration of China (OSCCA) |
| 32 |
as an authorized cryptographic algorithm for use within China. |
| 33 |
|
| 34 |
Architecture: riscv64 using: |
| 35 |
- Zvksed vector crypto extension |
| 36 |
- Zvkb vector crypto extension |
| 37 |
|
| 38 |
endmenu |