This commit is contained in:
Nicholas Ward 2022-09-14 11:31:58 -07:00
parent 7eba422792
commit 5d7edb33d4

View File

@ -1,3 +1,4 @@
// "T_1" in the SHA-256 spec
%macro sha2_temp_word1 %macro sha2_temp_word1
// stack: e, f, g, h, K[i], W[i] // stack: e, f, g, h, K[i], W[i]
DUP1 DUP1
@ -15,6 +16,7 @@
// stack: Ch(e, f, g) + Sigma_1(e) + h + K[i] + W[i] // stack: Ch(e, f, g) + Sigma_1(e) + h + K[i] + W[i]
%endmacro %endmacro
// "T_2" in the SHA-256 spec
%macro sha2_temp_word2 %macro sha2_temp_word2
// stack: a, b, c // stack: a, b, c
DUP1 DUP1