|
|
| version 1.2, 2003/06/17 04:28:20 | version 1.3, 2004/02/13 16:13:44 |
|---|---|
| Line 1 | Line 1 |
| /* $NetBSD: bf_enc_586.S,v 1.1 2001/09/09 11:01:01 tls Exp $ */ | /* $NetBSD: bf_enc_586.S,v 1.1 2001/09/09 11:01:01 tls Exp $ */ |
| /* $FreeBSD: src/sys/crypto/blowfish/arch/i386/bf_enc_586.S,v 1.1.2.1 2002/03/26 10:12:24 ume Exp $ */ | /* $FreeBSD: src/sys/crypto/blowfish/arch/i386/bf_enc_586.S,v 1.1.2.1 2002/03/26 10:12:24 ume Exp $ */ |
| /* $DragonFly: src/sys/crypto/blowfish/arch/i386/bf_enc_586.S,v 1.1 2003/06/16 05:57:11 dillon Exp $ */ | /* $DragonFly$ */ |
| /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| * All rights reserved. | * All rights reserved. |
| Line 400 ENTRY(BF_encrypt) | Line 400 ENTRY(BF_encrypt) |
| xorl %eax, %ebx | xorl %eax, %ebx |
| movl 3144(%ebp,%edx,4),%edx | movl 3144(%ebp,%edx,4),%edx |
| addl %edx, %ebx | addl %edx, %ebx |
| # Load parameter 0 (16) enc=1 | /* Load parameter 0 (16) enc=1 */ |
| movl 20(%esp), %eax | movl 20(%esp), %eax |
| xorl %ebx, %edi | xorl %ebx, %edi |
| movl 68(%ebp), %edx | movl 68(%ebp), %edx |
| Line 422 ENTRY(BF_decrypt) | Line 422 ENTRY(BF_decrypt) |
| movl 16(%esp), %ebp | movl 16(%esp), %ebp |
| pushl %esi | pushl %esi |
| pushl %edi | pushl %edi |
| # Load the 2 words | /* Load the 2 words */ |
| movl (%ebx), %edi | movl (%ebx), %edi |
| movl 4(%ebx), %esi | movl 4(%ebx), %esi |
| xorl %eax, %eax | xorl %eax, %eax |
| Line 747 ENTRY(BF_decrypt) | Line 747 ENTRY(BF_decrypt) |
| xorl %eax, %ebx | xorl %eax, %ebx |
| movl 3144(%ebp,%edx,4),%edx | movl 3144(%ebp,%edx,4),%edx |
| addl %edx, %ebx | addl %edx, %ebx |
| # Load parameter 0 (1) enc=0 | /* Load parameter 0 (1) enc=0 */ |
| movl 20(%esp), %eax | movl 20(%esp), %eax |
| xorl %ebx, %edi | xorl %ebx, %edi |
| movl (%ebp), %edx | movl (%ebp), %edx |