mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-11 10:13:09 +00:00
constants
This commit is contained in:
parent
8dbb653a54
commit
89e5a04029
@ -1,647 +1,66 @@
|
||||
%macro sha2_const_0
|
||||
push 1116352408
|
||||
%endmacro
|
||||
sha2_constants_k:
|
||||
BYTES 66, 138, 47, 152
|
||||
BYTES 113, 55, 68, 145
|
||||
BYTES 181, 192, 251, 207
|
||||
BYTES 233, 181, 219, 165
|
||||
BYTES 57, 86, 194, 91
|
||||
BYTES 89, 241, 17, 241
|
||||
BYTES 146, 63, 130, 164
|
||||
BYTES 171, 28, 94, 213
|
||||
BYTES 216, 7, 170, 152
|
||||
BYTES 18, 131, 91, 1
|
||||
BYTES 36, 49, 133, 190
|
||||
BYTES 85, 12, 125, 195
|
||||
BYTES 114, 190, 93, 116
|
||||
BYTES 128, 222, 177, 254
|
||||
BYTES 155, 220, 6, 167
|
||||
BYTES 193, 155, 241, 116
|
||||
BYTES 228, 155, 105, 193
|
||||
BYTES 239, 190, 71, 134
|
||||
BYTES 15, 193, 157, 198
|
||||
BYTES 36, 12, 161, 204
|
||||
BYTES 45, 233, 44, 111
|
||||
BYTES 74, 116, 132, 170
|
||||
BYTES 92, 176, 169, 220
|
||||
BYTES 118, 249, 136, 218
|
||||
BYTES 152, 62, 81, 82
|
||||
BYTES 168, 49, 198, 109
|
||||
BYTES 176, 3, 39, 200
|
||||
BYTES 191, 89, 127, 199
|
||||
BYTES 198, 224, 11, 243
|
||||
BYTES 213, 167, 145, 71
|
||||
BYTES 6, 202, 99, 81
|
||||
BYTES 20, 41, 41, 103
|
||||
BYTES 39, 183, 10, 133
|
||||
BYTES 46, 27, 33, 56
|
||||
BYTES 77, 44, 109, 252
|
||||
BYTES 83, 56, 13, 19
|
||||
BYTES 101, 10, 115, 84
|
||||
BYTES 118, 106, 10, 187
|
||||
BYTES 129, 194, 201, 46
|
||||
BYTES 146, 114, 44, 133
|
||||
BYTES 162, 191, 232, 161
|
||||
BYTES 168, 26, 102, 75
|
||||
BYTES 194, 75, 139, 112
|
||||
BYTES 199, 108, 81, 163
|
||||
BYTES 209, 146, 232, 25
|
||||
BYTES 214, 153, 6, 36
|
||||
BYTES 244, 14, 53, 133
|
||||
BYTES 16, 106, 160, 112
|
||||
BYTES 25, 164, 193, 22
|
||||
BYTES 30, 55, 108, 8
|
||||
BYTES 39, 72, 119, 76
|
||||
BYTES 52, 176, 188, 181
|
||||
BYTES 57, 28, 12, 179
|
||||
BYTES 78, 216, 170, 74
|
||||
BYTES 91, 156, 202, 79
|
||||
BYTES 104, 46, 111, 243
|
||||
BYTES 116, 143, 130, 238
|
||||
BYTES 120, 165, 99, 111
|
||||
BYTES 132, 200, 120, 20
|
||||
BYTES 140, 199, 2, 8
|
||||
BYTES 144, 190, 255, 250
|
||||
BYTES 164, 80, 108, 235
|
||||
BYTES 190, 249, 163, 247
|
||||
BYTES 198, 113, 120, 242
|
||||
|
||||
%macro sha2_const_1
|
||||
push 1899447441
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_2
|
||||
push 3049323471
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_3
|
||||
push 3921009573
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_4
|
||||
push 961987163
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_5
|
||||
push 1508970993
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_6
|
||||
push 2453635748
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_7
|
||||
push 2870763221
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_8
|
||||
push 3624381080
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_9
|
||||
push 310598401
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_10
|
||||
push 607225278
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_11
|
||||
push 1426881987
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_12
|
||||
push 1925078388
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_13
|
||||
push 2162078206
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_14
|
||||
push 2614888103
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_15
|
||||
push 3248222580
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_16
|
||||
push 3835390401
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_17
|
||||
push 4022224774
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_18
|
||||
push 264347078
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_19
|
||||
push 604807628
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_20
|
||||
push 770255983
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_21
|
||||
push 1249150122
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_22
|
||||
push 1555081692
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_23
|
||||
push 1996064986
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_24
|
||||
push 2554220882
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_25
|
||||
push 2821834349
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_26
|
||||
push 2952996808
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_27
|
||||
push 3210313671
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_28
|
||||
push 3336571891
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_29
|
||||
push 3584528711
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_30
|
||||
push 113926993
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_31
|
||||
push 338241895
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_32
|
||||
push 666307205
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_33
|
||||
push 773529912
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_34
|
||||
push 1294757372
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_35
|
||||
push 1396182291
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_36
|
||||
push 1695183700
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_37
|
||||
push 1986661051
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_38
|
||||
push 2177026350
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_39
|
||||
push 2456956037
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_40
|
||||
push 2730485921
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_41
|
||||
push 2820302411
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_42
|
||||
push 3259730800
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_43
|
||||
push 3345764771
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_44
|
||||
push 3516065817
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_45
|
||||
push 3600352804
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_46
|
||||
push 4094571909
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_47
|
||||
push 275423344
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_48
|
||||
push 430227734
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_49
|
||||
push 506948616
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_50
|
||||
push 659060556
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_51
|
||||
push 883997877
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_52
|
||||
push 958139571
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_53
|
||||
push 1322822218
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_54
|
||||
push 1537002063
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_55
|
||||
push 1747873779
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_56
|
||||
push 1955562222
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_57
|
||||
push 2024104815
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_58
|
||||
push 2227730452
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_59
|
||||
push 2361852424
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_60
|
||||
push 2428436474
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_61
|
||||
push 2756734187
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_62
|
||||
push 3204031479
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const_63
|
||||
push 3329325298
|
||||
%endmacro
|
||||
|
||||
%macro sha2_const
|
||||
// stack: i
|
||||
|
||||
// case 0
|
||||
dup1
|
||||
%eq(0)
|
||||
%jumpi(sha2_const_0)
|
||||
swap1
|
||||
|
||||
// case 1
|
||||
dup1
|
||||
%eq(1)
|
||||
%jumpi(sha2_const_1)
|
||||
swap1
|
||||
|
||||
// case 2
|
||||
dup1
|
||||
%eq(2)
|
||||
%jumpi(sha2_const_2)
|
||||
swap1
|
||||
|
||||
// case 3
|
||||
dup1
|
||||
%eq(3)
|
||||
%jumpi(sha2_const_3)
|
||||
swap1
|
||||
|
||||
// case 4
|
||||
dup1
|
||||
%eq(4)
|
||||
%jumpi(sha2_const_4)
|
||||
swap1
|
||||
|
||||
// case 5
|
||||
dup1
|
||||
%eq(5)
|
||||
%jumpi(sha2_const_5)
|
||||
swap1
|
||||
|
||||
// case 6
|
||||
dup1
|
||||
%eq(6)
|
||||
%jumpi(sha2_const_6)
|
||||
swap1
|
||||
|
||||
// case 7
|
||||
dup1
|
||||
%eq(7)
|
||||
%jumpi(sha2_const_7)
|
||||
swap1
|
||||
|
||||
// case 8
|
||||
dup1
|
||||
%eq(8)
|
||||
%jumpi(sha2_const_8)
|
||||
swap1
|
||||
|
||||
// case 9
|
||||
dup1
|
||||
%eq(9)
|
||||
%jumpi(sha2_const_9)
|
||||
swap1
|
||||
|
||||
// case 10
|
||||
dup1
|
||||
%eq(10)
|
||||
%jumpi(sha2_const_10)
|
||||
swap1
|
||||
|
||||
// case 11
|
||||
dup1
|
||||
%eq(11)
|
||||
%jumpi(sha2_const_11)
|
||||
swap1
|
||||
|
||||
// case 12
|
||||
dup1
|
||||
%eq(12)
|
||||
%jumpi(sha2_const_12)
|
||||
swap1
|
||||
|
||||
// case 13
|
||||
dup1
|
||||
%eq(13)
|
||||
%jumpi(sha2_const_13)
|
||||
swap1
|
||||
|
||||
// case 14
|
||||
dup1
|
||||
%eq(14)
|
||||
%jumpi(sha2_const_14)
|
||||
swap1
|
||||
|
||||
// case 15
|
||||
dup1
|
||||
%eq(15)
|
||||
%jumpi(sha2_const_15)
|
||||
swap1
|
||||
|
||||
// case 16
|
||||
dup1
|
||||
%eq(16)
|
||||
%jumpi(sha2_const_16)
|
||||
swap1
|
||||
|
||||
// case 17
|
||||
dup1
|
||||
%eq(17)
|
||||
%jumpi(sha2_const_17)
|
||||
swap1
|
||||
|
||||
// case 18
|
||||
dup1
|
||||
%eq(18)
|
||||
%jumpi(sha2_const_18)
|
||||
swap1
|
||||
|
||||
// case 19
|
||||
dup1
|
||||
%eq(19)
|
||||
%jumpi(sha2_const_19)
|
||||
swap1
|
||||
|
||||
// case 20
|
||||
dup1
|
||||
%eq(20)
|
||||
%jumpi(sha2_const_20)
|
||||
swap1
|
||||
|
||||
// case 21
|
||||
dup1
|
||||
%eq(21)
|
||||
%jumpi(sha2_const_21)
|
||||
swap1
|
||||
|
||||
// case 22
|
||||
dup1
|
||||
%eq(22)
|
||||
%jumpi(sha2_const_22)
|
||||
swap1
|
||||
|
||||
// case 23
|
||||
dup1
|
||||
%eq(23)
|
||||
%jumpi(sha2_const_23)
|
||||
swap1
|
||||
|
||||
// case 24
|
||||
dup1
|
||||
%eq(24)
|
||||
%jumpi(sha2_const_24)
|
||||
swap1
|
||||
|
||||
// case 25
|
||||
dup1
|
||||
%eq(25)
|
||||
%jumpi(sha2_const_25)
|
||||
swap1
|
||||
|
||||
// case 26
|
||||
dup1
|
||||
%eq(26)
|
||||
%jumpi(sha2_const_26)
|
||||
swap1
|
||||
|
||||
// case 27
|
||||
dup1
|
||||
%eq(27)
|
||||
%jumpi(sha2_const_27)
|
||||
swap1
|
||||
|
||||
// case 28
|
||||
dup1
|
||||
%eq(28)
|
||||
%jumpi(sha2_const_28)
|
||||
swap1
|
||||
|
||||
// case 29
|
||||
dup1
|
||||
%eq(29)
|
||||
%jumpi(sha2_const_29)
|
||||
swap1
|
||||
|
||||
// case 30
|
||||
dup1
|
||||
%eq(30)
|
||||
%jumpi(sha2_const_30)
|
||||
swap1
|
||||
|
||||
// case 31
|
||||
dup1
|
||||
%eq(31)
|
||||
%jumpi(sha2_const_31)
|
||||
swap1
|
||||
|
||||
// case 32
|
||||
dup1
|
||||
%eq(32)
|
||||
%jumpi(sha2_const_32)
|
||||
swap1
|
||||
|
||||
// case 33
|
||||
dup1
|
||||
%eq(33)
|
||||
%jumpi(sha2_const_33)
|
||||
swap1
|
||||
|
||||
// case 34
|
||||
dup1
|
||||
%eq(34)
|
||||
%jumpi(sha2_const_34)
|
||||
swap1
|
||||
|
||||
// case 35
|
||||
dup1
|
||||
%eq(35)
|
||||
%jumpi(sha2_const_35)
|
||||
swap1
|
||||
|
||||
// case 36
|
||||
dup1
|
||||
%eq(36)
|
||||
%jumpi(sha2_const_36)
|
||||
swap1
|
||||
|
||||
// case 37
|
||||
dup1
|
||||
%eq(37)
|
||||
%jumpi(sha2_const_37)
|
||||
swap1
|
||||
|
||||
// case 38
|
||||
dup1
|
||||
%eq(38)
|
||||
%jumpi(sha2_const_38)
|
||||
swap1
|
||||
|
||||
// case 39
|
||||
dup1
|
||||
%eq(39)
|
||||
%jumpi(sha2_const_39)
|
||||
swap1
|
||||
|
||||
// case 40
|
||||
dup1
|
||||
%eq(40)
|
||||
%jumpi(sha2_const_40)
|
||||
swap1
|
||||
|
||||
// case 41
|
||||
dup1
|
||||
%eq(41)
|
||||
%jumpi(sha2_const_41)
|
||||
swap1
|
||||
|
||||
// case 42
|
||||
dup1
|
||||
%eq(42)
|
||||
%jumpi(sha2_const_42)
|
||||
swap1
|
||||
|
||||
// case 43
|
||||
dup1
|
||||
%eq(43)
|
||||
%jumpi(sha2_const_43)
|
||||
swap1
|
||||
|
||||
// case 44
|
||||
dup1
|
||||
%eq(44)
|
||||
%jumpi(sha2_const_44)
|
||||
swap1
|
||||
|
||||
// case 45
|
||||
dup1
|
||||
%eq(45)
|
||||
%jumpi(sha2_const_45)
|
||||
swap1
|
||||
|
||||
// case 46
|
||||
dup1
|
||||
%eq(46)
|
||||
%jumpi(sha2_const_46)
|
||||
swap1
|
||||
|
||||
// case 47
|
||||
dup1
|
||||
%eq(47)
|
||||
%jumpi(sha2_const_47)
|
||||
swap1
|
||||
|
||||
// case 48
|
||||
dup1
|
||||
%eq(48)
|
||||
%jumpi(sha2_const_48)
|
||||
swap1
|
||||
|
||||
// case 49
|
||||
dup1
|
||||
%eq(49)
|
||||
%jumpi(sha2_const_49)
|
||||
swap1
|
||||
|
||||
// case 50
|
||||
dup1
|
||||
%eq(50)
|
||||
%jumpi(sha2_const_50)
|
||||
swap1
|
||||
|
||||
// case 51
|
||||
dup1
|
||||
%eq(51)
|
||||
%jumpi(sha2_const_51)
|
||||
swap1
|
||||
|
||||
// case 52
|
||||
dup1
|
||||
%eq(52)
|
||||
%jumpi(sha2_const_52)
|
||||
swap1
|
||||
|
||||
// case 53
|
||||
dup1
|
||||
%eq(53)
|
||||
%jumpi(sha2_const_53)
|
||||
swap1
|
||||
|
||||
// case 54
|
||||
dup1
|
||||
%eq(54)
|
||||
%jumpi(sha2_const_54)
|
||||
swap1
|
||||
|
||||
// case 55
|
||||
dup1
|
||||
%eq(55)
|
||||
%jumpi(sha2_const_55)
|
||||
swap1
|
||||
|
||||
// case 56
|
||||
dup1
|
||||
%eq(56)
|
||||
%jumpi(sha2_const_56)
|
||||
swap1
|
||||
|
||||
// case 57
|
||||
dup1
|
||||
%eq(57)
|
||||
%jumpi(sha2_const_57)
|
||||
swap1
|
||||
|
||||
// case 58
|
||||
dup1
|
||||
%eq(58)
|
||||
%jumpi(sha2_const_58)
|
||||
swap1
|
||||
|
||||
// case 59
|
||||
dup1
|
||||
%eq(59)
|
||||
%jumpi(sha2_const_59)
|
||||
swap1
|
||||
|
||||
// case 60
|
||||
dup1
|
||||
%eq(60)
|
||||
%jumpi(sha2_const_60)
|
||||
swap1
|
||||
|
||||
// case 61
|
||||
dup1
|
||||
%eq(61)
|
||||
%jumpi(sha2_const_61)
|
||||
swap1
|
||||
|
||||
// case 62
|
||||
dup1
|
||||
%eq(62)
|
||||
%jumpi(sha2_const_62)
|
||||
swap1
|
||||
|
||||
// case 63
|
||||
dup1
|
||||
%eq(63)
|
||||
%jumpi(sha2_const_63)
|
||||
swap1
|
||||
|
||||
// stack i, k[i]
|
||||
pop
|
||||
// stack k[i]
|
||||
%endmacro
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user