diff options
Diffstat (limited to 'src/crypto/curve25519-avx-x86_64.S')
-rw-r--r-- | src/crypto/curve25519-avx-x86_64.S | 227 |
1 files changed, 0 insertions, 227 deletions
diff --git a/src/crypto/curve25519-avx-x86_64.S b/src/crypto/curve25519-avx-x86_64.S index 81d0c74..bd636b5 100644 --- a/src/crypto/curve25519-avx-x86_64.S +++ b/src/crypto/curve25519-avx-x86_64.S @@ -3257,230 +3257,3 @@ ENTRY(curve25519_sandy2x_ladder_base) add %r11,%rsp ret ENDPROC(curve25519_sandy2x_ladder_base) - -ENTRY(curve25519_sandy2x_fe_frombytes) - pushq %r14 - pushq %r13 - pushq %r12 - pushq %rbp - pushq %rbx - movzbl 5(%rsi), %r9d - movzbl 6(%rsi), %eax - movzbl 4(%rsi), %edx - movzbl 11(%rsi), %r10d - movzbl 7(%rsi), %ecx - movzbl 20(%rsi), %r14d - movzbl 23(%rsi), %r11d - salq $8, %r9 - movzbl 27(%rsi), %r12d - movl (%rsi), %r8d - salq $16, %rax - movzbl 29(%rsi), %r13d - movl 16(%rsi), %ebx - orq %rax, %r9 - movzbl 9(%rsi), %eax - salq $8, %r10 - orq %rdx, %r9 - movzbl 8(%rsi), %edx - salq $8, %r12 - salq $6, %r9 - salq $16, %rax - salq $8, %rdx - orq %rax, %rdx - movzbl 12(%rsi), %eax - orq %rcx, %rdx - movzbl 10(%rsi), %ecx - salq $5, %rdx - salq $16, %rax - orq %rax, %r10 - movzbl 14(%rsi), %eax - orq %rcx, %r10 - movzbl 13(%rsi), %ecx - salq $3, %r10 - salq $8, %rax - movq %rax, %rbp - movzbl 15(%rsi), %eax - salq $16, %rax - orq %rax, %rbp - movzbl 22(%rsi), %eax - orq %rcx, %rbp - movzbl 21(%rsi), %ecx - salq $16, %rax - salq $8, %rcx - orq %rax, %rcx - movzbl 24(%rsi), %eax - orq %r14, %rcx - salq $7, %rcx - movq %rcx, %r14 - movzbl 25(%rsi), %ecx - salq $8, %rax - salq $16, %rcx - orq %rcx, %rax - movzbl 28(%rsi), %ecx - orq %r11, %rax - movzbl 26(%rsi), %r11d - salq $5, %rax - salq $16, %rcx - orq %rcx, %r12 - movzbl 30(%rsi), %ecx - orq %r11, %r12 - movzbl 31(%rsi), %r11d - movq %rax, %rsi - salq $4, %r12 - shrq $25, %rsi - andl $33554431, %eax - addq %r12, %rsi - movl %r8d, %r12d - shrq $26, %r8 - salq $8, %rcx - andl $67108863, %r12d - salq $16, %r11 - orq %rcx, %r11 - movq %r9, %rcx - andl $33554431, %r9d - shrq $25, %rcx - orq %r13, %r11 - movq %r10, %r13 - addq %rcx, %rdx - movl %ebx, %ecx - andl $33554431, %r13d - addq %r8, %r9 - shrq $25, %rcx - movq %rdx, %r8 - shrq $26, %rdx - addq %r14, %rcx - shrq $25, %r10 - movl %r12d, %r14d - addq %r13, %rdx - andl $8388607, %r11d - movq %r14, (%rdi) - movq %r9, 8(%rdi) - andl $33554431, %ebx - movq %rdx, 24(%rdi) - leaq (%r10,%rbp,4), %rdx - andl $67108863, %r8d - movq %rbx, 40(%rdi) - movq %r8, 16(%rdi) - movq %rdx, 32(%rdi) - movq %rcx, %rdx - shrq $26, %rcx - addq %rax, %rcx - movq %rsi, %rax - shrq $26, %rsi - andl $67108863, %eax - andl $67108863, %edx - movq %rcx, 56(%rdi) - movq %rax, 64(%rdi) - leaq (%rsi,%r11,4), %rax - movq %rdx, 48(%rdi) - popq %rbx - movq %rax, 72(%rdi) - popq %rbp - popq %r12 - popq %r13 - popq %r14 - ret -ENDPROC(curve25519_sandy2x_fe_frombytes) - -ENTRY(curve25519_sandy2x_fe51_invert) - pushq %rbp - pushq %rbx - movq %rdi, %rbp - movl $1, %edx - movq %rsi, %rbx - subq $440, %rsp - movq %rsp, %rdi - call curve25519_sandy2x_fe51_nsquare - leaq 384(%rsp), %rdi - movq %rsp, %rsi - movl $1, %edx - call curve25519_sandy2x_fe51_nsquare - leaq 384(%rsp), %rsi - movl $1, %edx - movq %rsi, %rdi - call curve25519_sandy2x_fe51_nsquare - leaq 384(%rsp), %rsi - leaq 48(%rsp), %rdi - movq %rbx, %rdx - call curve25519_sandy2x_fe51_mul - leaq 48(%rsp), %rsi - leaq 96(%rsp), %rdi - movq %rsp, %rdx - call curve25519_sandy2x_fe51_mul - leaq 96(%rsp), %rsi - leaq 384(%rsp), %rdi - movl $1, %edx - call curve25519_sandy2x_fe51_nsquare - leaq 48(%rsp), %rdx - leaq 384(%rsp), %rsi - leaq 144(%rsp), %rdi - call curve25519_sandy2x_fe51_mul - leaq 144(%rsp), %rsi - leaq 384(%rsp), %rdi - movl $5, %edx - call curve25519_sandy2x_fe51_nsquare - leaq 144(%rsp), %rdx - leaq 384(%rsp), %rsi - leaq 192(%rsp), %rdi - call curve25519_sandy2x_fe51_mul - leaq 192(%rsp), %rsi - leaq 384(%rsp), %rdi - movl $10, %edx - call curve25519_sandy2x_fe51_nsquare - leaq 192(%rsp), %rdx - leaq 384(%rsp), %rsi - leaq 240(%rsp), %rdi - call curve25519_sandy2x_fe51_mul - leaq 240(%rsp), %rsi - leaq 384(%rsp), %rdi - movl $20, %edx - call curve25519_sandy2x_fe51_nsquare - leaq 384(%rsp), %rsi - leaq 240(%rsp), %rdx - movq %rsi, %rdi - call curve25519_sandy2x_fe51_mul - leaq 384(%rsp), %rsi - movl $10, %edx - movq %rsi, %rdi - call curve25519_sandy2x_fe51_nsquare - leaq 192(%rsp), %rdx - leaq 384(%rsp), %rsi - leaq 288(%rsp), %rdi - call curve25519_sandy2x_fe51_mul - leaq 288(%rsp), %rsi - leaq 384(%rsp), %rdi - movl $50, %edx - call curve25519_sandy2x_fe51_nsquare - leaq 288(%rsp), %rdx - leaq 384(%rsp), %rsi - leaq 336(%rsp), %rdi - call curve25519_sandy2x_fe51_mul - leaq 336(%rsp), %rsi - leaq 384(%rsp), %rdi - movl $100, %edx - call curve25519_sandy2x_fe51_nsquare - leaq 384(%rsp), %rsi - leaq 336(%rsp), %rdx - movq %rsi, %rdi - call curve25519_sandy2x_fe51_mul - leaq 384(%rsp), %rsi - movl $50, %edx - movq %rsi, %rdi - call curve25519_sandy2x_fe51_nsquare - leaq 384(%rsp), %rsi - leaq 288(%rsp), %rdx - movq %rsi, %rdi - call curve25519_sandy2x_fe51_mul - leaq 384(%rsp), %rsi - movl $5, %edx - movq %rsi, %rdi - call curve25519_sandy2x_fe51_nsquare - leaq 96(%rsp), %rdx - leaq 384(%rsp), %rsi - movq %rbp, %rdi - call curve25519_sandy2x_fe51_mul - addq $440, %rsp - popq %rbx - popq %rbp - ret -ENDPROC(curve25519_sandy2x_fe51_invert) |