diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2013-01-19 06:39:31 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2013-01-19 18:16:50 -0500 |
commit | 044438082cf1447e37534b24beff723835464954 (patch) | |
tree | 1beb8a05bcad2064ca3d4311772846ddc0407bad /arch/x86/crypto/salsa20-i586-asm_32.S | |
parent | b05d3f375676e57672ac5a9090cb1068fab8b85f (diff) |
crypto: x86/salsa20 - assembler cleanup, use ENTRY/ENDPROC for assember functions and rename ECRYPT_* to salsa20_*
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/x86/crypto/salsa20-i586-asm_32.S')
-rw-r--r-- | arch/x86/crypto/salsa20-i586-asm_32.S | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/arch/x86/crypto/salsa20-i586-asm_32.S b/arch/x86/crypto/salsa20-i586-asm_32.S index 72eb306680b2..329452b8f794 100644 --- a/arch/x86/crypto/salsa20-i586-asm_32.S +++ b/arch/x86/crypto/salsa20-i586-asm_32.S | |||
@@ -2,11 +2,12 @@ | |||
2 | # D. J. Bernstein | 2 | # D. J. Bernstein |
3 | # Public domain. | 3 | # Public domain. |
4 | 4 | ||
5 | # enter ECRYPT_encrypt_bytes | 5 | #include <linux/linkage.h> |
6 | |||
6 | .text | 7 | .text |
7 | .p2align 5 | 8 | |
8 | .globl ECRYPT_encrypt_bytes | 9 | # enter salsa20_encrypt_bytes |
9 | ECRYPT_encrypt_bytes: | 10 | ENTRY(salsa20_encrypt_bytes) |
10 | mov %esp,%eax | 11 | mov %esp,%eax |
11 | and $31,%eax | 12 | and $31,%eax |
12 | add $256,%eax | 13 | add $256,%eax |
@@ -933,11 +934,10 @@ ECRYPT_encrypt_bytes: | |||
933 | add $64,%esi | 934 | add $64,%esi |
934 | # goto bytesatleast1 | 935 | # goto bytesatleast1 |
935 | jmp ._bytesatleast1 | 936 | jmp ._bytesatleast1 |
936 | # enter ECRYPT_keysetup | 937 | ENDPROC(salsa20_encrypt_bytes) |
937 | .text | 938 | |
938 | .p2align 5 | 939 | # enter salsa20_keysetup |
939 | .globl ECRYPT_keysetup | 940 | ENTRY(salsa20_keysetup) |
940 | ECRYPT_keysetup: | ||
941 | mov %esp,%eax | 941 | mov %esp,%eax |
942 | and $31,%eax | 942 | and $31,%eax |
943 | add $256,%eax | 943 | add $256,%eax |
@@ -1060,11 +1060,10 @@ ECRYPT_keysetup: | |||
1060 | # leave | 1060 | # leave |
1061 | add %eax,%esp | 1061 | add %eax,%esp |
1062 | ret | 1062 | ret |
1063 | # enter ECRYPT_ivsetup | 1063 | ENDPROC(salsa20_keysetup) |
1064 | .text | 1064 | |
1065 | .p2align 5 | 1065 | # enter salsa20_ivsetup |
1066 | .globl ECRYPT_ivsetup | 1066 | ENTRY(salsa20_ivsetup) |
1067 | ECRYPT_ivsetup: | ||
1068 | mov %esp,%eax | 1067 | mov %esp,%eax |
1069 | and $31,%eax | 1068 | and $31,%eax |
1070 | add $256,%eax | 1069 | add $256,%eax |
@@ -1112,3 +1111,4 @@ ECRYPT_ivsetup: | |||
1112 | # leave | 1111 | # leave |
1113 | add %eax,%esp | 1112 | add %eax,%esp |
1114 | ret | 1113 | ret |
1114 | ENDPROC(salsa20_ivsetup) | ||