aboutsummaryrefslogtreecommitdiff
path: root/rv_zvkned
diff options
context:
space:
mode:
authorLucas <30680577+Lucas-Wye@users.noreply.github.com>2024-03-02 15:03:14 +0800
committerGitHub <noreply@github.com>2024-03-01 23:03:14 -0800
commitd3fcce5c25ab2ed5343516175182de8357c57f07 (patch)
tree708a006d7f317ee2312d6892beefe7c3c228b70b /rv_zvkned
parentf7c71810cd75d52f5d613d9f752646e82533bf09 (diff)
downloadriscv-opcodes-d3fcce5c25ab2ed5343516175182de8357c57f07.zip
riscv-opcodes-d3fcce5c25ab2ed5343516175182de8357c57f07.tar.gz
riscv-opcodes-d3fcce5c25ab2ed5343516175182de8357c57f07.tar.bz2
move opcode of zvb* (#236)
* move opcode of zvbb * move all zvk* out
Diffstat (limited to 'rv_zvkned')
-rw-r--r--rv_zvkned21
1 files changed, 21 insertions, 0 deletions
diff --git a/rv_zvkned b/rv_zvkned
new file mode 100644
index 0000000..572b465
--- /dev/null
+++ b/rv_zvkned
@@ -0,0 +1,21 @@
+# Zvkned - Vector Crypto AES Encryption & Decryption (Singe Round)
+
+# AES Single Round Decryption
+vaesdf.vv 31..26=0x28 25=1 vs2 19..15=0x1 14..12=0x2 vd 6..0=0x77
+vaesdf.vs 31..26=0x29 25=1 vs2 19..15=0x1 14..12=0x2 vd 6..0=0x77
+vaesdm.vv 31..26=0x28 25=1 vs2 19..15=0x0 14..12=0x2 vd 6..0=0x77
+vaesdm.vs 31..26=0x29 25=1 vs2 19..15=0x0 14..12=0x2 vd 6..0=0x77
+
+# AES Single Round Encryption
+vaesef.vv 31..26=0x28 25=1 vs2 19..15=0x3 14..12=0x2 vd 6..0=0x77
+vaesef.vs 31..26=0x29 25=1 vs2 19..15=0x3 14..12=0x2 vd 6..0=0x77
+vaesem.vv 31..26=0x28 25=1 vs2 19..15=0x2 14..12=0x2 vd 6..0=0x77
+vaesem.vs 31..26=0x29 25=1 vs2 19..15=0x2 14..12=0x2 vd 6..0=0x77
+
+# AES Scalar Round Zero Encryption/Decryption
+vaesz.vs 31..26=0x29 25=1 vs2 19..15=0x7 14..12=0x2 vd 6..0=0x77
+
+# AES-128 Forward Key Schedule
+vaeskf1.vi 31..26=0x22 25=1 vs2 zimm5 14..12=0x2 vd 6..0=0x77
+# AES-256 Forward Key Schedule
+vaeskf2.vi 31..26=0x2A 25=1 vs2 zimm5 14..12=0x2 vd 6..0=0x77