diff options
author | Filippo Valsorda <filippo@golang.org> | 2021-10-30 00:27:51 -0400 |
---|---|---|
committer | Filippo Valsorda <filippo@golang.org> | 2022-04-27 14:21:49 +0000 |
commit | 6796a7924c20d2c58b0cf78766b94543abfadc1b (patch) | |
tree | fab1c1c5956a94d6d631175b53df5fe38fba2ab9 /src/crypto/elliptic/p384.go | |
parent | 24b570354caee33d4fb3934ce7ef1cc97fb403fd (diff) | |
download | go-6796a7924c20d2c58b0cf78766b94543abfadc1b.tar.gz go-6796a7924c20d2c58b0cf78766b94543abfadc1b.zip |
crypto/elliptic: refactor package structure
Not quite golang.org/wiki/TargetSpecific compliant, but almost.
The only substantial code change is in randFieldElement: it used to use
Params().BitSize instead of Params().N.BitLen(), which is semantically
incorrect, even if the two values are the same for all named curves.
For #52182
Change-Id: Ibc47450552afe23ea74fcf55d1d799d5d7e5487c
Reviewed-on: https://go-review.googlesource.com/c/go/+/315273
Run-TryBot: Filippo Valsorda <filippo@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/crypto/elliptic/p384.go')
0 files changed, 0 insertions, 0 deletions