1 | default rel
|
---|
2 | %define XMMWORD
|
---|
3 | %define YMMWORD
|
---|
4 | %define ZMMWORD
|
---|
5 | section .text code align=64
|
---|
6 |
|
---|
7 |
|
---|
8 | EXTERN OPENSSL_ia32cap_P
|
---|
9 | global aesni_cbc_sha256_enc
|
---|
10 |
|
---|
11 | ALIGN 16
|
---|
12 | aesni_cbc_sha256_enc:
|
---|
13 | xor eax,eax
|
---|
14 | cmp rcx,0
|
---|
15 | je NEAR $L$probe
|
---|
16 | ud2
|
---|
17 | $L$probe:
|
---|
18 | DB 0F3h,0C3h ;repret
|
---|
19 |
|
---|
20 |
|
---|
21 | ALIGN 64
|
---|
22 |
|
---|
23 | K256:
|
---|
24 | DD 0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5
|
---|
25 | DD 0x428a2f98,0x71374491,0xb5c0fbcf,0xe9b5dba5
|
---|
26 | DD 0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5
|
---|
27 | DD 0x3956c25b,0x59f111f1,0x923f82a4,0xab1c5ed5
|
---|
28 | DD 0xd807aa98,0x12835b01,0x243185be,0x550c7dc3
|
---|
29 | DD 0xd807aa98,0x12835b01,0x243185be,0x550c7dc3
|
---|
30 | DD 0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174
|
---|
31 | DD 0x72be5d74,0x80deb1fe,0x9bdc06a7,0xc19bf174
|
---|
32 | DD 0xe49b69c1,0xefbe4786,0x0fc19dc6,0x240ca1cc
|
---|
33 | DD 0xe49b69c1,0xefbe4786,0x0fc19dc6,0x240ca1cc
|
---|
34 | DD 0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da
|
---|
35 | DD 0x2de92c6f,0x4a7484aa,0x5cb0a9dc,0x76f988da
|
---|
36 | DD 0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7
|
---|
37 | DD 0x983e5152,0xa831c66d,0xb00327c8,0xbf597fc7
|
---|
38 | DD 0xc6e00bf3,0xd5a79147,0x06ca6351,0x14292967
|
---|
39 | DD 0xc6e00bf3,0xd5a79147,0x06ca6351,0x14292967
|
---|
40 | DD 0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13
|
---|
41 | DD 0x27b70a85,0x2e1b2138,0x4d2c6dfc,0x53380d13
|
---|
42 | DD 0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85
|
---|
43 | DD 0x650a7354,0x766a0abb,0x81c2c92e,0x92722c85
|
---|
44 | DD 0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3
|
---|
45 | DD 0xa2bfe8a1,0xa81a664b,0xc24b8b70,0xc76c51a3
|
---|
46 | DD 0xd192e819,0xd6990624,0xf40e3585,0x106aa070
|
---|
47 | DD 0xd192e819,0xd6990624,0xf40e3585,0x106aa070
|
---|
48 | DD 0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5
|
---|
49 | DD 0x19a4c116,0x1e376c08,0x2748774c,0x34b0bcb5
|
---|
50 | DD 0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3
|
---|
51 | DD 0x391c0cb3,0x4ed8aa4a,0x5b9cca4f,0x682e6ff3
|
---|
52 | DD 0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208
|
---|
53 | DD 0x748f82ee,0x78a5636f,0x84c87814,0x8cc70208
|
---|
54 | DD 0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2
|
---|
55 | DD 0x90befffa,0xa4506ceb,0xbef9a3f7,0xc67178f2
|
---|
56 |
|
---|
57 | DD 0x00010203,0x04050607,0x08090a0b,0x0c0d0e0f
|
---|
58 | DD 0x00010203,0x04050607,0x08090a0b,0x0c0d0e0f
|
---|
59 | DD 0,0,0,0,0,0,0,0,-1,-1,-1,-1
|
---|
60 | DD 0,0,0,0,0,0,0,0
|
---|
61 | DB 65,69,83,78,73,45,67,66,67,43,83,72,65,50,53,54
|
---|
62 | DB 32,115,116,105,116,99,104,32,102,111,114,32,120,56,54,95
|
---|
63 | DB 54,52,44,32,67,82,89,80,84,79,71,65,77,83,32,98
|
---|
64 | DB 121,32,60,97,112,112,114,111,64,111,112,101,110,115,115,108
|
---|
65 | DB 46,111,114,103,62,0
|
---|
66 | ALIGN 64
|
---|