Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssl/lib/libcrypto/arch/arm Use .inst...
details: https://anonhg.NetBSD.org/src/rev/159e90a1571c
branches: trunk
changeset: 336760:159e90a1571c
user: martin <martin%NetBSD.org@localhost>
date: Tue Mar 17 19:41:42 2015 +0000
description:
Use .inst for hard coded instructions (instead of .byte and endian dependend
represenation)
diffstat:
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S | 428 +++++-----
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/armv4cpuid.S | 8 +-
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/ghashv8-armx.S | 10 +-
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha1-armv4-large.S | 144 +-
crypto/external/bsd/openssl/lib/libcrypto/arch/arm/sha256-armv4.S | 112 +-
5 files changed, 351 insertions(+), 351 deletions(-)
diffs (truncated from 1050 to 300 lines):
diff -r fae1ff8f1fa5 -r 159e90a1571c crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S Tue Mar 17 19:39:15 2015 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/arm/aesv8-armx.S Tue Mar 17 19:41:42 2015 +0000
@@ -48,7 +48,7 @@
vtbl.8 d21,{q3},d5
vext.8 q9,q0,q3,#12
vst1.32 {q3},[r2]!
- .byte 0x00,0x43,0xf0,0xf3 @ aese q10,q0
+ .inst 0xf3f04300 @ aese q10,q0
subs r1,r1,#1
veor q3,q3,q9
@@ -67,7 +67,7 @@
vtbl.8 d21,{q3},d5
vext.8 q9,q0,q3,#12
vst1.32 {q3},[r2]!
- .byte 0x00,0x43,0xf0,0xf3 @ aese q10,q0
+ .inst 0xf3f04300 @ aese q10,q0
veor q3,q3,q9
vext.8 q9,q0,q9,#12
@@ -82,7 +82,7 @@
vtbl.8 d21,{q3},d5
vext.8 q9,q0,q3,#12
vst1.32 {q3},[r2]!
- .byte 0x00,0x43,0xf0,0xf3 @ aese q10,q0
+ .inst 0xf3f04300 @ aese q10,q0
veor q3,q3,q9
vext.8 q9,q0,q9,#12
@@ -109,7 +109,7 @@
vtbl.8 d21,{q8},d5
vext.8 q9,q0,q3,#12
vst1.32 {d16},[r2]!
- .byte 0x00,0x43,0xf0,0xf3 @ aese q10,q0
+ .inst 0xf3f04300 @ aese q10,q0
subs r1,r1,#1
veor q3,q3,q9
@@ -145,7 +145,7 @@
vtbl.8 d21,{q8},d5
vext.8 q9,q0,q3,#12
vst1.32 {q8},[r2]!
- .byte 0x00,0x43,0xf0,0xf3 @ aese q10,q0
+ .inst 0xf3f04300 @ aese q10,q0
subs r1,r1,#1
veor q3,q3,q9
@@ -161,7 +161,7 @@
vdup.32 q10,d7[1]
vext.8 q9,q0,q8,#12
- .byte 0x00,0x43,0xf0,0xf3 @ aese q10,q0
+ .inst 0xf3f04300 @ aese q10,q0
veor q8,q8,q9
vext.8 q9,q0,q9,#12
@@ -204,15 +204,15 @@
.Loop_imc:
vld1.32 {q0},[r2]
vld1.32 {q1},[r0]
- .byte 0xc0,0x03,0xb0,0xf3 @ aesimc q0,q0
- .byte 0xc2,0x23,0xb0,0xf3 @ aesimc q1,q1
+ .inst 0xf3b003c0 @ aesimc q0,q0
+ .inst 0xf3b023c2 @ aesimc q1,q1
vst1.32 {q0},[r0],r4
vst1.32 {q1},[r2]!
cmp r0,r2
bhi .Loop_imc
vld1.32 {q0},[r2]
- .byte 0xc0,0x03,0xb0,0xf3 @ aesimc q0,q0
+ .inst 0xf3b003c0 @ aesimc q0,q0
vst1.32 {q0},[r0]
eor r0,r0,r0 @ return value
@@ -230,19 +230,19 @@
vld1.32 {q1},[r2]!
.Loop_enc:
- .byte 0x00,0x43,0xb0,0xf3 @ aese q2,q0
+ .inst 0xf3b04300 @ aese q2,q0
vld1.32 {q0},[r2]!
- .byte 0x84,0x43,0xb0,0xf3 @ aesmc q2,q2
+ .inst 0xf3b04384 @ aesmc q2,q2
subs r3,r3,#2
- .byte 0x02,0x43,0xb0,0xf3 @ aese q2,q1
+ .inst 0xf3b04302 @ aese q2,q1
vld1.32 {q1},[r2]!
- .byte 0x84,0x43,0xb0,0xf3 @ aesmc q2,q2
+ .inst 0xf3b04384 @ aesmc q2,q2
bgt .Loop_enc
- .byte 0x00,0x43,0xb0,0xf3 @ aese q2,q0
+ .inst 0xf3b04300 @ aese q2,q0
vld1.32 {q0},[r2]
- .byte 0x84,0x43,0xb0,0xf3 @ aesmc q2,q2
- .byte 0x02,0x43,0xb0,0xf3 @ aese q2,q1
+ .inst 0xf3b04384 @ aesmc q2,q2
+ .inst 0xf3b04302 @ aese q2,q1
veor q2,q2,q0
vst1.8 {q2},[r1]
@@ -259,19 +259,19 @@
vld1.32 {q1},[r2]!
.Loop_dec:
- .byte 0x40,0x43,0xb0,0xf3 @ aesd q2,q0
+ .inst 0xf3b04340 @ aesd q2,q0
vld1.32 {q0},[r2]!
- .byte 0xc4,0x43,0xb0,0xf3 @ aesimc q2,q2
+ .inst 0xf3b043c4 @ aesimc q2,q2
subs r3,r3,#2
- .byte 0x42,0x43,0xb0,0xf3 @ aesd q2,q1
+ .inst 0xf3b04342 @ aesd q2,q1
vld1.32 {q1},[r2]!
- .byte 0xc4,0x43,0xb0,0xf3 @ aesimc q2,q2
+ .inst 0xf3b043c4 @ aesimc q2,q2
bgt .Loop_dec
- .byte 0x40,0x43,0xb0,0xf3 @ aesd q2,q0
+ .inst 0xf3b04340 @ aesd q2,q0
vld1.32 {q0},[r2]
- .byte 0xc4,0x43,0xb0,0xf3 @ aesimc q2,q2
- .byte 0x42,0x43,0xb0,0xf3 @ aesd q2,q1
+ .inst 0xf3b043c4 @ aesimc q2,q2
+ .inst 0xf3b04342 @ aesd q2,q1
veor q2,q2,q0
vst1.8 {q2},[r1]
@@ -315,36 +315,36 @@
beq .Lcbc_enc128
.Loop_cbc_enc:
- .byte 0x20,0x03,0xb0,0xf3 @ aese q0,q8
+ .inst 0xf3b00320 @ aese q0,q8
vld1.32 {q8},[r7]!
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00380 @ aesmc q0,q0
subs r6,r6,#2
- .byte 0x22,0x03,0xb0,0xf3 @ aese q0,q9
+ .inst 0xf3b00322 @ aese q0,q9
vld1.32 {q9},[r7]!
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00380 @ aesmc q0,q0
bgt .Loop_cbc_enc
- .byte 0x20,0x03,0xb0,0xf3 @ aese q0,q8
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00320 @ aese q0,q8
+ .inst 0xf3b00380 @ aesmc q0,q0
subs r2,r2,#16
- .byte 0x22,0x03,0xb0,0xf3 @ aese q0,q9
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00322 @ aese q0,q9
+ .inst 0xf3b00380 @ aesmc q0,q0
moveq r8,#0
- .byte 0x24,0x03,0xb0,0xf3 @ aese q0,q10
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00324 @ aese q0,q10
+ .inst 0xf3b00380 @ aesmc q0,q0
add r7,r3,#16
- .byte 0x26,0x03,0xb0,0xf3 @ aese q0,q11
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00326 @ aese q0,q11
+ .inst 0xf3b00380 @ aesmc q0,q0
vld1.8 {q8},[r0],r8
- .byte 0x28,0x03,0xb0,0xf3 @ aese q0,q12
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00328 @ aese q0,q12
+ .inst 0xf3b00380 @ aesmc q0,q0
veor q8,q8,q5
- .byte 0x2a,0x03,0xb0,0xf3 @ aese q0,q13
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b0032a @ aese q0,q13
+ .inst 0xf3b00380 @ aesmc q0,q0
vld1.32 {q9},[r7]! @ re-pre-load rndkey[1]
- .byte 0x2c,0x03,0xb0,0xf3 @ aese q0,q14
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
- .byte 0x2e,0x03,0xb0,0xf3 @ aese q0,q15
+ .inst 0xf3b0032c @ aese q0,q14
+ .inst 0xf3b00380 @ aesmc q0,q0
+ .inst 0xf3b0032e @ aese q0,q15
mov r6,r5
veor q6,q0,q7
@@ -356,35 +356,35 @@
.align 5
.Lcbc_enc128:
vld1.32 {q2-q3},[r7]
- .byte 0x20,0x03,0xb0,0xf3 @ aese q0,q8
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00320 @ aese q0,q8
+ .inst 0xf3b00380 @ aesmc q0,q0
b .Lenter_cbc_enc128
.Loop_cbc_enc128:
- .byte 0x20,0x03,0xb0,0xf3 @ aese q0,q8
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00320 @ aese q0,q8
+ .inst 0xf3b00380 @ aesmc q0,q0
vst1.8 {q6},[r1]!
.Lenter_cbc_enc128:
- .byte 0x22,0x03,0xb0,0xf3 @ aese q0,q9
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00322 @ aese q0,q9
+ .inst 0xf3b00380 @ aesmc q0,q0
subs r2,r2,#16
- .byte 0x04,0x03,0xb0,0xf3 @ aese q0,q2
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00304 @ aese q0,q2
+ .inst 0xf3b00380 @ aesmc q0,q0
moveq r8,#0
- .byte 0x06,0x03,0xb0,0xf3 @ aese q0,q3
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
- .byte 0x24,0x03,0xb0,0xf3 @ aese q0,q10
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
- .byte 0x26,0x03,0xb0,0xf3 @ aese q0,q11
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00306 @ aese q0,q3
+ .inst 0xf3b00380 @ aesmc q0,q0
+ .inst 0xf3b00324 @ aese q0,q10
+ .inst 0xf3b00380 @ aesmc q0,q0
+ .inst 0xf3b00326 @ aese q0,q11
+ .inst 0xf3b00380 @ aesmc q0,q0
vld1.8 {q8},[r0],r8
- .byte 0x28,0x03,0xb0,0xf3 @ aese q0,q12
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
- .byte 0x2a,0x03,0xb0,0xf3 @ aese q0,q13
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
- .byte 0x2c,0x03,0xb0,0xf3 @ aese q0,q14
- .byte 0x80,0x03,0xb0,0xf3 @ aesmc q0,q0
+ .inst 0xf3b00328 @ aese q0,q12
+ .inst 0xf3b00380 @ aesmc q0,q0
+ .inst 0xf3b0032a @ aese q0,q13
+ .inst 0xf3b00380 @ aesmc q0,q0
+ .inst 0xf3b0032c @ aese q0,q14
+ .inst 0xf3b00380 @ aesmc q0,q0
veor q8,q8,q5
- .byte 0x2e,0x03,0xb0,0xf3 @ aese q0,q15
+ .inst 0xf3b0032e @ aese q0,q15
veor q6,q0,q7
bhs .Loop_cbc_enc128
@@ -407,70 +407,70 @@
vorr q11,q10,q10
.Loop3x_cbc_dec:
- .byte 0x60,0x03,0xb0,0xf3 @ aesd q0,q8
- .byte 0x60,0x23,0xb0,0xf3 @ aesd q1,q8
- .byte 0x60,0x43,0xf0,0xf3 @ aesd q10,q8
+ .inst 0xf3b00360 @ aesd q0,q8
+ .inst 0xf3b02360 @ aesd q1,q8
+ .inst 0xf3f04360 @ aesd q10,q8
vld1.32 {q8},[r7]!
- .byte 0xc0,0x03,0xb0,0xf3 @ aesimc q0,q0
- .byte 0xc2,0x23,0xb0,0xf3 @ aesimc q1,q1
- .byte 0xe4,0x43,0xf0,0xf3 @ aesimc q10,q10
+ .inst 0xf3b003c0 @ aesimc q0,q0
+ .inst 0xf3b023c2 @ aesimc q1,q1
+ .inst 0xf3f043e4 @ aesimc q10,q10
subs r6,r6,#2
- .byte 0x62,0x03,0xb0,0xf3 @ aesd q0,q9
- .byte 0x62,0x23,0xb0,0xf3 @ aesd q1,q9
- .byte 0x62,0x43,0xf0,0xf3 @ aesd q10,q9
+ .inst 0xf3b00362 @ aesd q0,q9
+ .inst 0xf3b02362 @ aesd q1,q9
+ .inst 0xf3f04362 @ aesd q10,q9
vld1.32 {q9},[r7]!
- .byte 0xc0,0x03,0xb0,0xf3 @ aesimc q0,q0
- .byte 0xc2,0x23,0xb0,0xf3 @ aesimc q1,q1
- .byte 0xe4,0x43,0xf0,0xf3 @ aesimc q10,q10
+ .inst 0xf3b003c0 @ aesimc q0,q0
+ .inst 0xf3b023c2 @ aesimc q1,q1
+ .inst 0xf3f043e4 @ aesimc q10,q10
bgt .Loop3x_cbc_dec
- .byte 0x60,0x03,0xb0,0xf3 @ aesd q0,q8
- .byte 0x60,0x23,0xb0,0xf3 @ aesd q1,q8
- .byte 0x60,0x43,0xf0,0xf3 @ aesd q10,q8
+ .inst 0xf3b00360 @ aesd q0,q8
+ .inst 0xf3b02360 @ aesd q1,q8
+ .inst 0xf3f04360 @ aesd q10,q8
veor q4,q6,q7
- .byte 0xc0,0x03,0xb0,0xf3 @ aesimc q0,q0
- .byte 0xc2,0x23,0xb0,0xf3 @ aesimc q1,q1
- .byte 0xe4,0x43,0xf0,0xf3 @ aesimc q10,q10
+ .inst 0xf3b003c0 @ aesimc q0,q0
+ .inst 0xf3b023c2 @ aesimc q1,q1
+ .inst 0xf3f043e4 @ aesimc q10,q10
veor q5,q2,q7
- .byte 0x62,0x03,0xb0,0xf3 @ aesd q0,q9
- .byte 0x62,0x23,0xb0,0xf3 @ aesd q1,q9
- .byte 0x62,0x43,0xf0,0xf3 @ aesd q10,q9
+ .inst 0xf3b00362 @ aesd q0,q9
+ .inst 0xf3b02362 @ aesd q1,q9
+ .inst 0xf3f04362 @ aesd q10,q9
veor q9,q3,q7
subs r2,r2,#0x30
- .byte 0xc0,0x03,0xb0,0xf3 @ aesimc q0,q0
- .byte 0xc2,0x23,0xb0,0xf3 @ aesimc q1,q1
Home |
Main Index |
Thread Index |
Old Index