Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357731
b: refs/heads/master
c: 5186e39
h: refs/heads/master
i:
  357729: f5772c4
  357727: 7545dc7
v: v3
  • Loading branch information
Jussi Kivilinna authored and Herbert Xu committed Jan 19, 2013
1 parent ab1c903 commit a410280
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 26 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8309b745bbaf3fe3df7fc67de51d0049b51452c5
refs/heads/master: 5186e395fee266bede96b6906773973ed6fa2278
39 changes: 14 additions & 25 deletions trunk/arch/x86/crypto/blowfish-x86_64-asm_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
*
*/

#include <linux/linkage.h>

.file "blowfish-x86_64-asm.S"
.text

Expand Down Expand Up @@ -116,11 +118,7 @@
bswapq RX0; \
xorq RX0, (RIO);

.align 8
.global __blowfish_enc_blk
.type __blowfish_enc_blk,@function;

__blowfish_enc_blk:
ENTRY(__blowfish_enc_blk)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand Down Expand Up @@ -148,19 +146,16 @@ __blowfish_enc_blk:

movq %r10, RIO;
test %cl, %cl;
jnz __enc_xor;
jnz .L__enc_xor;

write_block();
ret;
__enc_xor:
.L__enc_xor:
xor_block();
ret;
ENDPROC(__blowfish_enc_blk)

.align 8
.global blowfish_dec_blk
.type blowfish_dec_blk,@function;

blowfish_dec_blk:
ENTRY(blowfish_dec_blk)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand Down Expand Up @@ -189,6 +184,7 @@ blowfish_dec_blk:
movq %r11, %rbp;

ret;
ENDPROC(blowfish_dec_blk)

/**********************************************************************
4-way blowfish, four blocks parallel
Expand Down Expand Up @@ -300,11 +296,7 @@ blowfish_dec_blk:
bswapq RX3; \
xorq RX3, 24(RIO);

.align 8
.global __blowfish_enc_blk_4way
.type __blowfish_enc_blk_4way,@function;

__blowfish_enc_blk_4way:
ENTRY(__blowfish_enc_blk_4way)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand Down Expand Up @@ -336,26 +328,23 @@ __blowfish_enc_blk_4way:
movq %r11, RIO;

test %bpl, %bpl;
jnz __enc_xor4;
jnz .L__enc_xor4;

write_block4();

popq %rbx;
popq %rbp;
ret;

__enc_xor4:
.L__enc_xor4:
xor_block4();

popq %rbx;
popq %rbp;
ret;
ENDPROC(__blowfish_enc_blk_4way)

.align 8
.global blowfish_dec_blk_4way
.type blowfish_dec_blk_4way,@function;

blowfish_dec_blk_4way:
ENTRY(blowfish_dec_blk_4way)
/* input:
* %rdi: ctx, CTX
* %rsi: dst
Expand Down Expand Up @@ -387,4 +376,4 @@ blowfish_dec_blk_4way:
popq %rbp;

ret;

ENDPROC(blowfish_dec_blk_4way)

0 comments on commit a410280

Please sign in to comment.