From 7f38982c4869c2360a9d9dd1147263ddca3499b2 Mon Sep 17 00:00:00 2001 From: dongin Date: Fri, 1 Jun 2018 14:20:51 +0900 Subject: [PATCH] Fix constant to public key's components in RSA public key's SKI function --- key/rsa.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/key/rsa.go b/key/rsa.go index 4900168..46d7845 100644 --- a/key/rsa.go +++ b/key/rsa.go @@ -112,7 +112,7 @@ func (key *RSAPublicKey) SKI() (ski []byte) { } data, _ := asn1.Marshal(rsaKeyMarshalOpt{ - big.NewInt(123), 57, + key.PubKey.N, key.PubKey.E, }) hash := sha256.New()