Skip to content

Commit

Permalink
Fix typo: "vaesfk" -> "vaeskf"
Browse files Browse the repository at this point in the history
  • Loading branch information
NaOHCC committed Dec 13, 2023
1 parent e2dd7d9 commit ae384d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/vector/code-samples/zvkned.s
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ zvkned_aes256_expand_key:
addi a1, a1, 16

# v4 and v8 contain the evolving key state during expansion,
# alternating holding key[i] and key[i-1] as inputs to vaesfk.
# alternating holding key[i] and key[i-1] as inputs to vaeskf.

# For the initial 2 4-words, we copy the input key.
# Round 0 expanded key, w[0, 3] (== input key LO).
Expand Down Expand Up @@ -1509,7 +1509,7 @@ zvkned_aes256_encode_vv_lmul1:
# Now that we have the first keys in v10/v11, we can iterate
# to get all subsequent keys

# vaesfk generates w[4*(round+1) .. 4*(round+1)+3] in vd
# vaeskf generates w[4*(round+1) .. 4*(round+1)+3] in vd
# from w[4*round .. 4*round+3] in vs2,
# and w[4*(round-1) .. 4*(round-1)+3] in vd.
vmv.v.v v12, v10
Expand Down
4 changes: 2 additions & 2 deletions doc/vector/riscv-crypto-vector-inst-table.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Crypto Vector instructions except Zvbb and Zvbc

|100000||||| 100000 |V| | vsm3me | 100000 | | |
| 100001 | | | | | 100001 |V| | vsm4k.vi | 100001 | | |
| 100010 | | | | | 100010 |V| | vaesfk1.vi | 100010 | | |
| 100010 | | | | | 100010 |V| | vaeskf1.vi | 100010 | | |
| 100011 | | | | | 100011 | | | | 100011 | | |
| 100100 | | | | | 100100 | | | | 100100 | | |
| 100101 | | | | | 100101 | | | | 100101 | | |
Expand All @@ -33,7 +33,7 @@ Crypto Vector instructions except Zvbb and Zvbc
| | | | | | | | | | | | |
| 101000 | | | | | 101000 |V| | *VAES.vv* | 101000 | | |
| 101001 | | | | | 101001 |V| | *VAES.vs* | 101001 | | |
| 101010 | | | | | 101010 |V| | vaesfk2.vi | 101010 | | |
| 101010 | | | | | 101010 |V| | vaeskf2.vi | 101010 | | |
| 101011 | | | | | 101011 |V| | vsm3c.vi | 101011 | | |
| 101100 | | | | | 101100 |V| | vghsh | 101100 | | |
| 101101 | | | | | 101101 |V| | vsha2ms | 101101 | | |
Expand Down

0 comments on commit ae384d5

Please sign in to comment.