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/powerpc64 regen



details:   https://anonhg.NetBSD.org/src/rev/1951e7ef1aa5
branches:  trunk
changeset: 320904:1951e7ef1aa5
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Mar 04 16:45:12 2018 +0000

description:
regen

diffstat:

 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/aesp8-ppc.S      |  1819 ++++++++++
 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/chacha-ppc.S     |  1142 ++++++
 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/chacha.inc       |     5 +
 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ghashp8-ppc.S    |   433 ++-
 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/poly1305-ppc.S   |   195 +
 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/poly1305-ppcfp.S |   606 +++
 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/poly1305.inc     |     6 +
 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/ppccpuid.S       |   167 +-
 8 files changed, 4349 insertions(+), 24 deletions(-)

diffs (truncated from 4512 to 300 lines):

diff -r e97b1cd491bd -r 1951e7ef1aa5 crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/aesp8-ppc.S
--- a/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/aesp8-ppc.S      Sun Mar 04 16:44:11 2018 +0000
+++ b/crypto/external/bsd/openssl/lib/libcrypto/arch/powerpc64/aesp8-ppc.S      Sun Mar 04 16:45:12 2018 +0000
@@ -1868,3 +1868,1822 @@
 .byte  0,12,0x04,0,0x80,6,6,0
 .long  0
 
+.globl aes_p8_xts_encrypt
+.type  aes_p8_xts_encrypt,@function
+.section       ".opd","aw"
+.align 3
+aes_p8_xts_encrypt:
+.quad  .aes_p8_xts_encrypt,.TOC.@tocbase,0
+.previous
+
+.align 5
+.aes_p8_xts_encrypt:
+       mr      10,3
+       li      3,-1
+       cmpldi  5,16
+       bltlr
+
+       lis     0,0xfff0
+       mfspr   12,256
+       li      11,0
+       mtspr   256,0
+
+       vspltisb        9,0x07
+
+
+
+
+       li      3,15
+       lvx     8,0,8
+       lvsl    5,0,8
+       lvx     4,3,8
+
+       vperm   8,8,4,5
+
+       neg     11,10
+       lvsr    5,0,11
+       lvx     2,0,10
+       addi    10,10,15
+
+
+       cmpldi  7,0
+       beq     .Lxts_enc_no_key2
+
+       lvsl    7,0,7
+       lwz     9,240(7)
+       srwi    9,9,1
+       subi    9,9,1
+       li      3,16
+
+       lvx     0,0,7
+       lvx     1,3,7
+       addi    3,3,16
+       vperm   0,0,1,7
+       vxor    8,8,0
+       lvx     0,3,7
+       addi    3,3,16
+       mtctr   9
+
+.Ltweak_xts_enc:
+       vperm   1,1,0,7
+.long  0x11080D08
+       lvx     1,3,7
+       addi    3,3,16
+       vperm   0,0,1,7
+.long  0x11080508
+       lvx     0,3,7
+       addi    3,3,16
+       bc      16,0,.Ltweak_xts_enc
+
+       vperm   1,1,0,7
+.long  0x11080D08
+       lvx     1,3,7
+       vperm   0,0,1,7
+.long  0x11080509
+
+       li      8,0
+       b       .Lxts_enc
+
+.Lxts_enc_no_key2:
+       li      3,-16
+       and     5,5,3
+
+
+.Lxts_enc:
+       lvx     4,0,10
+       addi    10,10,16
+
+       lvsl    7,0,6
+       lwz     9,240(6)
+       srwi    9,9,1
+       subi    9,9,1
+       li      3,16
+
+       vslb    10,9,9
+       vor     10,10,9
+       vspltisb        11,1
+       vsldoi  10,10,11,15
+
+       cmpldi  5,96
+       bge     _aesp8_xts_encrypt6x
+
+       andi.   7,5,15
+       subic   0,5,32
+       subi    7,7,16
+       subfe   0,0,0
+       and     0,0,7
+       add     10,10,0
+
+       lvx     0,0,6
+       lvx     1,3,6
+       addi    3,3,16
+       vperm   2,2,4,5
+       vperm   0,0,1,7
+       vxor    2,2,8
+       vxor    2,2,0
+       lvx     0,3,6
+       addi    3,3,16
+       mtctr   9
+       b       .Loop_xts_enc
+
+.align 5
+.Loop_xts_enc:
+       vperm   1,1,0,7
+.long  0x10420D08
+       lvx     1,3,6
+       addi    3,3,16
+       vperm   0,0,1,7
+.long  0x10420508
+       lvx     0,3,6
+       addi    3,3,16
+       bc      16,0,.Loop_xts_enc
+
+       vperm   1,1,0,7
+.long  0x10420D08
+       lvx     1,3,6
+       li      3,16
+       vperm   0,0,1,7
+       vxor    0,0,8
+.long  0x10620509
+
+
+       nop     
+
+.long  0x7C602799
+       addi    4,4,16
+
+       subic.  5,5,16
+       beq     .Lxts_enc_done
+
+       vor     2,4,4
+       lvx     4,0,10
+       addi    10,10,16
+       lvx     0,0,6
+       lvx     1,3,6
+       addi    3,3,16
+
+       subic   0,5,32
+       subfe   0,0,0
+       and     0,0,7
+       add     10,10,0
+
+       vsrab   11,8,9
+       vaddubm 8,8,8
+       vsldoi  11,11,11,15
+       vand    11,11,10
+       vxor    8,8,11
+
+       vperm   2,2,4,5
+       vperm   0,0,1,7
+       vxor    2,2,8
+       vxor    3,3,0
+       vxor    2,2,0
+       lvx     0,3,6
+       addi    3,3,16
+
+       mtctr   9
+       cmpldi  5,16
+       bge     .Loop_xts_enc
+
+       vxor    3,3,8
+       lvsr    5,0,5
+       vxor    4,4,4
+       vspltisb        11,-1
+       vperm   4,4,11,5
+       vsel    2,2,3,4
+
+       subi    11,4,17
+       subi    4,4,16
+       mtctr   5
+       li      5,16
+.Loop_xts_enc_steal:
+       lbzu    0,1(11)
+       stb     0,16(11)
+       bc      16,0,.Loop_xts_enc_steal
+
+       mtctr   9
+       b       .Loop_xts_enc
+
+.Lxts_enc_done:
+       cmpldi  8,0
+       beq     .Lxts_enc_ret
+
+       vsrab   11,8,9
+       vaddubm 8,8,8
+       vsldoi  11,11,11,15
+       vand    11,11,10
+       vxor    8,8,11
+
+
+.long  0x7D004799
+
+.Lxts_enc_ret:
+       mtspr   256,12
+       li      3,0
+       blr     
+.long  0
+.byte  0,12,0x04,0,0x80,6,6,0
+.long  0
+
+
+.globl aes_p8_xts_decrypt
+.type  aes_p8_xts_decrypt,@function
+.section       ".opd","aw"
+.align 3
+aes_p8_xts_decrypt:
+.quad  .aes_p8_xts_decrypt,.TOC.@tocbase,0
+.previous
+
+.align 5
+.aes_p8_xts_decrypt:
+       mr      10,3
+       li      3,-1
+       cmpldi  5,16
+       bltlr
+
+       lis     0,0xfff8
+       mfspr   12,256
+       li      11,0
+       mtspr   256,0
+
+       andi.   0,5,15
+       neg     0,0
+       andi.   0,0,16
+       sub     5,5,0
+
+       vspltisb        9,0x07
+
+
+
+
+       li      3,15
+       lvx     8,0,8
+       lvsl    5,0,8
+       lvx     4,3,8
+
+       vperm   8,8,4,5
+
+       neg     11,10
+       lvsr    5,0,11
+       lvx     2,0,10
+       addi    10,10,15
+
+
+       cmpldi  7,0
+       beq     .Lxts_dec_no_key2
+
+       lvsl    7,0,7
+       lwz     9,240(7)
+       srwi    9,9,1
+       subi    9,9,1
+       li      3,16
+
+       lvx     0,0,7
+       lvx     1,3,7
+       addi    3,3,16
+       vperm   0,0,1,7
+       vxor    8,8,0
+       lvx     0,3,7
+       addi    3,3,16
+       mtctr   9
+
+.Ltweak_xts_dec:
+       vperm   1,1,0,7
+.long  0x11080D08
+       lvx     1,3,7
+       addi    3,3,16
+       vperm   0,0,1,7
+.long  0x11080508
+       lvx     0,3,7
+       addi    3,3,16
+       bc      16,0,.Ltweak_xts_dec
+
+       vperm   1,1,0,7
+.long  0x11080D08
+       lvx     1,3,7



Home | Main Index | Thread Index | Old Index