]> Cypherpunks repositories - gostls13.git/commit
crypto/elliptic: store P-256 precomputed basepoint table in source
authorRoland Shoemaker <roland@golang.org>
Thu, 29 Apr 2021 17:11:56 +0000 (10:11 -0700)
committerRoland Shoemaker <roland@golang.org>
Thu, 29 Apr 2021 20:23:35 +0000 (20:23 +0000)
commit7b32830f58b7f33b51af0370cfd42ba561c3ca9e
tree18150e4b44190d6a27153c952b5c3d56cca3850c
parent87e4dcd446df2ab1985ef61ce15da329493248a1
crypto/elliptic: store P-256 precomputed basepoint table in source

Store the precomputed P-256 basepoint table in source rather than
computing it at runtime, saving ~88kB from the heap. The flip side
is that this increases binary sizes by ~77kB.

Fixes #44992

Change-Id: Ia5421eae87b41522b0d8cecba051cba1d2ed73db
Reviewed-on: https://go-review.googlesource.com/c/go/+/315189
Run-TryBot: Roland Shoemaker <roland@golang.org>
Trust: Roland Shoemaker <roland@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Filippo Valsorda <filippo@golang.org>
src/crypto/elliptic/p256_asm.go
src/crypto/elliptic/p256_asm_table.go [new file with mode: 0644]
src/crypto/elliptic/p256_asm_table_test.go [new file with mode: 0644]