|
@ -19,7 +19,7 @@ |
|
|
|
|
|
|
|
|
template H(x) { |
|
|
template H(x) { |
|
|
signal output out[32]; |
|
|
signal output out[32]; |
|
|
var c = [0x6a09e667, |
|
|
|
|
|
|
|
|
var c[8] = [0x6a09e667, |
|
|
0xbb67ae85, |
|
|
0xbb67ae85, |
|
|
0x3c6ef372, |
|
|
0x3c6ef372, |
|
|
0xa54ff53a, |
|
|
0xa54ff53a, |
|
@ -35,7 +35,7 @@ template H(x) { |
|
|
|
|
|
|
|
|
template K(x) { |
|
|
template K(x) { |
|
|
signal output out[32]; |
|
|
signal output out[32]; |
|
|
var c = [ |
|
|
|
|
|
|
|
|
var c[64] = [ |
|
|
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, |
|
|
0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, |
|
|
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, |
|
|
0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, |
|
|
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, |
|
|
0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, |
|
|