mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-26 15:13:41 +08:00
SM3/SMS4/SM3Sign(modified ECDSA) Supported
This commit is contained in:
BIN
crypto/des/cbc_cksm.o
Normal file
BIN
crypto/des/cbc_cksm.o
Normal file
Binary file not shown.
BIN
crypto/des/cbc_enc.o
Normal file
BIN
crypto/des/cbc_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/cfb64ede.o
Normal file
BIN
crypto/des/cfb64ede.o
Normal file
Binary file not shown.
BIN
crypto/des/cfb64enc.o
Normal file
BIN
crypto/des/cfb64enc.o
Normal file
Binary file not shown.
BIN
crypto/des/cfb_enc.o
Normal file
BIN
crypto/des/cfb_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/crypt586.o
Normal file
BIN
crypto/des/crypt586.o
Normal file
Binary file not shown.
873
crypto/des/crypt586.s
Normal file
873
crypto/des/crypt586.s
Normal file
@@ -0,0 +1,873 @@
|
||||
.file "crypt586.s"
|
||||
.text
|
||||
.globl _fcrypt_body
|
||||
.align 4
|
||||
_fcrypt_body:
|
||||
L_fcrypt_body_begin:
|
||||
pushl %ebp
|
||||
pushl %ebx
|
||||
pushl %esi
|
||||
pushl %edi
|
||||
|
||||
# Load the 2 words
|
||||
xorl %edi,%edi
|
||||
xorl %esi,%esi
|
||||
leal _DES_SPtrans,%edx
|
||||
pushl %edx
|
||||
movl 28(%esp),%ebp
|
||||
pushl $25
|
||||
L000start:
|
||||
|
||||
# Round 0
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl (%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 4(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 1
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 8(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 12(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 2
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 16(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 20(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 3
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 24(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 28(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 4
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 32(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 36(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 5
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 40(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 44(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 6
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 48(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 52(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 7
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 56(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 60(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 8
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 64(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 68(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 9
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 72(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 76(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 10
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 80(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 84(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 11
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 88(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 92(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 12
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 96(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 100(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 13
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 104(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 108(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 14
|
||||
movl 36(%esp),%eax
|
||||
movl %esi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %esi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 112(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 116(%ebp),%ecx
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%edi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%edi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%edi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%edi
|
||||
movl 32(%esp),%ebp
|
||||
|
||||
# Round 15
|
||||
movl 36(%esp),%eax
|
||||
movl %edi,%edx
|
||||
shrl $16,%edx
|
||||
movl 40(%esp),%ecx
|
||||
xorl %edi,%edx
|
||||
andl %edx,%eax
|
||||
andl %ecx,%edx
|
||||
movl %eax,%ebx
|
||||
shll $16,%ebx
|
||||
movl %edx,%ecx
|
||||
shll $16,%ecx
|
||||
xorl %ebx,%eax
|
||||
xorl %ecx,%edx
|
||||
movl 120(%ebp),%ebx
|
||||
xorl %ebx,%eax
|
||||
movl 124(%ebp),%ecx
|
||||
xorl %edi,%eax
|
||||
xorl %edi,%edx
|
||||
xorl %ecx,%edx
|
||||
andl $0xfcfcfcfc,%eax
|
||||
xorl %ebx,%ebx
|
||||
andl $0xcfcfcfcf,%edx
|
||||
xorl %ecx,%ecx
|
||||
movb %al,%bl
|
||||
movb %ah,%cl
|
||||
rorl $4,%edx
|
||||
movl 4(%esp),%ebp
|
||||
xorl (%ebp,%ebx,1),%esi
|
||||
movb %dl,%bl
|
||||
xorl 0x200(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
shrl $16,%eax
|
||||
xorl 0x100(%ebp,%ebx,1),%esi
|
||||
movb %ah,%bl
|
||||
shrl $16,%edx
|
||||
xorl 0x300(%ebp,%ecx,1),%esi
|
||||
movb %dh,%cl
|
||||
andl $0xff,%eax
|
||||
andl $0xff,%edx
|
||||
movl 0x600(%ebp,%ebx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x700(%ebp,%ecx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x400(%ebp,%eax,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 0x500(%ebp,%edx,1),%ebx
|
||||
xorl %ebx,%esi
|
||||
movl 32(%esp),%ebp
|
||||
movl (%esp),%ebx
|
||||
movl %edi,%eax
|
||||
decl %ebx
|
||||
movl %esi,%edi
|
||||
movl %eax,%esi
|
||||
movl %ebx,(%esp)
|
||||
jnz L000start
|
||||
|
||||
# FP
|
||||
movl 28(%esp),%edx
|
||||
rorl $1,%edi
|
||||
movl %esi,%eax
|
||||
xorl %edi,%esi
|
||||
andl $0xaaaaaaaa,%esi
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edi
|
||||
|
||||
roll $23,%eax
|
||||
movl %eax,%esi
|
||||
xorl %edi,%eax
|
||||
andl $0x03fc03fc,%eax
|
||||
xorl %eax,%esi
|
||||
xorl %eax,%edi
|
||||
|
||||
roll $10,%esi
|
||||
movl %esi,%eax
|
||||
xorl %edi,%esi
|
||||
andl $0x33333333,%esi
|
||||
xorl %esi,%eax
|
||||
xorl %esi,%edi
|
||||
|
||||
roll $18,%edi
|
||||
movl %edi,%esi
|
||||
xorl %eax,%edi
|
||||
andl $0xfff0000f,%edi
|
||||
xorl %edi,%esi
|
||||
xorl %edi,%eax
|
||||
|
||||
roll $12,%esi
|
||||
movl %esi,%edi
|
||||
xorl %eax,%esi
|
||||
andl $0xf0f0f0f0,%esi
|
||||
xorl %esi,%edi
|
||||
xorl %esi,%eax
|
||||
|
||||
rorl $4,%eax
|
||||
movl %eax,(%edx)
|
||||
movl %edi,4(%edx)
|
||||
addl $8,%esp
|
||||
popl %edi
|
||||
popl %esi
|
||||
popl %ebx
|
||||
popl %ebp
|
||||
ret
|
||||
BIN
crypto/des/des-586.o
Normal file
BIN
crypto/des/des-586.o
Normal file
Binary file not shown.
1821
crypto/des/des-586.s
Normal file
1821
crypto/des/des-586.s
Normal file
File diff suppressed because it is too large
Load Diff
BIN
crypto/des/des_old.o
Normal file
BIN
crypto/des/des_old.o
Normal file
Binary file not shown.
BIN
crypto/des/des_old2.o
Normal file
BIN
crypto/des/des_old2.o
Normal file
Binary file not shown.
BIN
crypto/des/ecb3_enc.o
Normal file
BIN
crypto/des/ecb3_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/ecb_enc.o
Normal file
BIN
crypto/des/ecb_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/ede_cbcm_enc.o
Normal file
BIN
crypto/des/ede_cbcm_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/enc_read.o
Normal file
BIN
crypto/des/enc_read.o
Normal file
Binary file not shown.
BIN
crypto/des/enc_writ.o
Normal file
BIN
crypto/des/enc_writ.o
Normal file
Binary file not shown.
BIN
crypto/des/fcrypt.o
Normal file
BIN
crypto/des/fcrypt.o
Normal file
Binary file not shown.
0
crypto/des/lib
Normal file
0
crypto/des/lib
Normal file
BIN
crypto/des/ofb64ede.o
Normal file
BIN
crypto/des/ofb64ede.o
Normal file
Binary file not shown.
BIN
crypto/des/ofb64enc.o
Normal file
BIN
crypto/des/ofb64enc.o
Normal file
Binary file not shown.
BIN
crypto/des/ofb_enc.o
Normal file
BIN
crypto/des/ofb_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/pcbc_enc.o
Normal file
BIN
crypto/des/pcbc_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/qud_cksm.o
Normal file
BIN
crypto/des/qud_cksm.o
Normal file
Binary file not shown.
BIN
crypto/des/rand_key.o
Normal file
BIN
crypto/des/rand_key.o
Normal file
Binary file not shown.
BIN
crypto/des/read2pwd.o
Normal file
BIN
crypto/des/read2pwd.o
Normal file
Binary file not shown.
BIN
crypto/des/rpc_enc.o
Normal file
BIN
crypto/des/rpc_enc.o
Normal file
Binary file not shown.
BIN
crypto/des/set_key.o
Normal file
BIN
crypto/des/set_key.o
Normal file
Binary file not shown.
BIN
crypto/des/str2key.o
Normal file
BIN
crypto/des/str2key.o
Normal file
Binary file not shown.
BIN
crypto/des/xcbc_enc.o
Normal file
BIN
crypto/des/xcbc_enc.o
Normal file
Binary file not shown.
Reference in New Issue
Block a user