Deleted Added
full compact
aesni-sha1-x86_64.pl (302408) aesni-sha1-x86_64.pl (325335)
1#!/usr/bin/env perl
2#
3# ====================================================================
4# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
5# project. The module is, however, dual licensed under OpenSSL and
6# CRYPTOGAMS licenses depending on where you obtain it. For further
7# details see http://www.openssl.org/~appro/cryptogams/.
8# ====================================================================

--- 1688 unchanged lines hidden (view full) ---

1697$code.=<<___;
1698 movdqu ($ctx),$ABCD
1699 movd 16($ctx),$E
1700 movdqa K_XX_XX+0x50(%rip),$BSWAP # byte-n-word swap
1701
1702 mov 240($key),$rounds
1703 sub $in0,$out
1704 movups ($key),$rndkey0 # $key[0]
1#!/usr/bin/env perl
2#
3# ====================================================================
4# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL
5# project. The module is, however, dual licensed under OpenSSL and
6# CRYPTOGAMS licenses depending on where you obtain it. For further
7# details see http://www.openssl.org/~appro/cryptogams/.
8# ====================================================================

--- 1688 unchanged lines hidden (view full) ---

1697$code.=<<___;
1698 movdqu ($ctx),$ABCD
1699 movd 16($ctx),$E
1700 movdqa K_XX_XX+0x50(%rip),$BSWAP # byte-n-word swap
1701
1702 mov 240($key),$rounds
1703 sub $in0,$out
1704 movups ($key),$rndkey0 # $key[0]
1705 movups ($ivp),$iv # load IV
1705 movups 16($key),$rndkey[0] # forward reference
1706 lea 112($key),$key # size optimization
1707
1708 pshufd \$0b00011011,$ABCD,$ABCD # flip word order
1709 pshufd \$0b00011011,$E,$E # flip word order
1710 jmp .Loop_shaext
1711
1712.align 16

--- 345 unchanged lines hidden ---
1706 movups 16($key),$rndkey[0] # forward reference
1707 lea 112($key),$key # size optimization
1708
1709 pshufd \$0b00011011,$ABCD,$ABCD # flip word order
1710 pshufd \$0b00011011,$E,$E # flip word order
1711 jmp .Loop_shaext
1712
1713.align 16

--- 345 unchanged lines hidden ---