Skip to content

Commit

Permalink
Fixed bit width in pseudo code for vaeskf1 and vaeskf2
Browse files Browse the repository at this point in the history
  • Loading branch information
kdockser committed Aug 8, 2023
1 parent 3d9dff8 commit 603e231
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/vector/insns/vaeskf1.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function clause execute (VAESKF1(rnd, vd, vs2)) = {
let r : bits(4) = rnd-1;

foreach (i from eg_start to eg_len-1) {
let CurrentRoundKey[3:0] : bits(32) = get_velem(vs2, EGW=128, i);
let CurrentRoundKey[3:0] : bits(128) = get_velem(vs2, EGW=128, i);
let w[0] : bits(32) = aes_subword_fwd(aes_rotword(CurrentRoundKey[3])) XOR
aes_decode_rcon(r) XOR CurrentRoundKey[0]
let w[1] : bits(32) = w[0] XOR CurrentRoundKey[1]
Expand Down
2 changes: 1 addition & 1 deletion doc/vector/insns/vaeskf2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function clause execute (VAESKF2(rnd, vd, vs2)) = {
eg_start = (vstart/EGS)

foreach (i from eg_start to eg_len-1) {
let CurrentRoundKey[3:0] : bits(32) = get_velem(vs2, EGW=128, i);
let CurrentRoundKey[3:0] : bits(128) = get_velem(vs2, EGW=128, i);
let RoundKeyB[3:0] : bits(32) = get_velem(vd, EGW=128, i); // Previous round key

let w[0] : bits(32) = if (rnd[0]==1) then
Expand Down
2 changes: 1 addition & 1 deletion doc/vector/riscv-crypto-spec-vector.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
= RISC-V Cryptography Extensions Volume II: Vector Instructions
:description: The vector cryptography extensions for the RISC-V ISA.
:company: RISC-V.org
:revdate: 04 August 2023
:revdate: 08 August 2023
:revnumber: v1.0.0
:revremark: RC2
:url-riscv: http://riscv.org
Expand Down

0 comments on commit 603e231

Please sign in to comment.