From 746ac7eb550cfd870f7122243c65b8dbb2d27a10 Mon Sep 17 00:00:00 2001 From: Emman Date: Thu, 24 Feb 2022 17:42:05 +0800 Subject: [PATCH] Add comment --- sm2/p256_asm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sm2/p256_asm.go b/sm2/p256_asm.go index 078e787..8fe47f7 100644 --- a/sm2/p256_asm.go +++ b/sm2/p256_asm.go @@ -427,7 +427,7 @@ func (p *p256Point) p256StorePoint(r *[16 * 4 * 3]uint64, index int) { // // Reference: // https://github.com/openssl/openssl/blob/master/crypto/ec/ecp_nistputil.c -// +// https://github.com/google/boringssl/blob/master/crypto/fipsmodule/ec/util.c func boothW5(in uint) (int, int) { var s uint = ^((in >> 5) - 1) // sets all bits to MSB(in), 'in' seen as 6-bit value var d uint = (1 << 6) - in - 1 // d = 63 - in, or d = ^in & 0x3f