Skip to content

Instantly share code, notes, and snippets.

@FiloSottile
Last active August 10, 2017 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FiloSottile/0d938bc4e8a7f3eab1fa4f672c334842 to your computer and use it in GitHub Desktop.
Save FiloSottile/0d938bc4e8a7f3eab1fa4f672c334842 to your computer and use it in GitHub Desktop.
--- external.txt 2017-08-09 15:28:38.000000000 -0400
+++ internal.txt 2017-08-09 15:29:58.000000000 -0400
@@ -1,31 +1,31 @@
-ed25519-dalek-rustgo`scalar_base_mult:
+ed25519-dalek-rustgo`github.com/FiloSottile/ed25519-dalek-rustgo/edwards25519(.text.scalar_base_mult):
<+0>: pushq %rbp
<+1>: movq %rsp, %rbp
<+4>: pushq %r15
<+6>: pushq %r14
<+8>: pushq %rbx
<+9>: subq $0xc8, %rsp
<+16>: movq %rdi, %r14
<+19>: vmovups (%rsi), %ymm0
<+23>: vmovups %ymm0, -0x40(%rbp)
- <+28>: leaq 0x445c5(%rip), %rsi ; ref.0
+ <+28>: leaq (%rip), %rsi ; <+35>
<+35>: leaq -0xe0(%rbp), %r15
<+42>: leaq -0x40(%rbp), %rdx
<+46>: movq %r15, %rdi
<+49>: vzeroupper
- <+52>: callq 0x4a48e0 ; _$LT$$RF$$u27$a$u20$curve25519_dalek..curve..EdwardsBasepointTable$u20$as$u20$core..ops..arith..Mul$LT$$RF$$u27$b$u20$curve25519_dalek..scalar..Scalar$GT$$GT$::mul::ha71ef43c6e181991
+ <+52>: callq 0x401039 ; <+57>
<+57>: leaq -0x40(%rbp), %rbx
<+61>: movq %rbx, %rdi
<+64>: movq %r15, %rsi
- <+67>: callq 0x4a3870 ; curve25519_dalek::curve::ExtendedPoint::compress_edwards::hd43a2e023bd8f9ce
+ <+67>: callq 0x401048 ; <+72>
<+72>: movq %rbx, %rdi
- <+75>: callq 0x4a3860 ; curve25519_dalek::curve::CompressedEdwardsY::as_bytes::hce31f6c74357c8f7
+ <+75>: callq 0x401050 ; <+80>
<+80>: vmovups (%rax), %ymm0
<+84>: vmovups %ymm0, (%r14)
<+89>: addq $0xc8, %rsp
<+96>: popq %rbx
<+97>: popq %r14
<+99>: popq %r15
<+101>: popq %rbp
<+102>: vzeroupper
<+105>: retq
GOOS=linux godev build
# github.com/FiloSottile/ed25519-dalek-rustgo
### "github.com/FiloSottile/ed25519-dalek-rustgo/edwards25519(.text.scalar_base_mult)" (4)
*** &ld.Reloc{Off:31, Siz:0x4, Done:0x0, Variant:0x0, Type:258, Add:-4, Xadd:0, Sym:(*ld.Symbol)(0xc4217f97f0), Xsym:(*ld.Symbol)(nil)}
-> github.com/FiloSottile/ed25519-dalek-rustgo/edwards25519(.rodata.ref.0)
*** &ld.Reloc{Off:53, Siz:0x4, Done:0x0, Variant:0x0, Type:260, Add:-4, Xadd:0, Sym:(*ld.Symbol)(0xc4217fd4a8), Xsym:(*ld.Symbol)(nil)}
-> _ZN158_$LT$$RF$$u27$a$u20$curve25519_dalek..curve..EdwardsBasepointTable$u20$as$u20$core..ops..arith..Mul$LT$$RF$$u27$b$u20$curve25519_dalek..scalar..Scalar$GT$$GT$3mul17ha71ef43c6e181991E
*** &ld.Reloc{Off:68, Siz:0x4, Done:0x0, Variant:0x0, Type:260, Add:-4, Xadd:0, Sym:(*ld.Symbol)(0xc4217fd930), Xsym:(*ld.Symbol)(nil)}
-> _ZN16curve25519_dalek5curve13ExtendedPoint16compress_edwards17hd43a2e023bd8f9ceE
*** &ld.Reloc{Off:76, Siz:0x4, Done:0x0, Variant:0x0, Type:260, Add:-4, Xadd:0, Sym:(*ld.Symbol)(0xc4217fd3c0), Xsym:(*ld.Symbol)(nil)}
-> _ZN16curve25519_dalek5curve18CompressedEdwardsY8as_bytes17hce31f6c74357c8f7E
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment