Made the m and e the PRIVKEY's n and e
This commit is contained in:
parent
606a0f18cc
commit
36123f3eee
4
main.go
4
main.go
|
@ -302,8 +302,8 @@ func main() {
|
||||||
log.Fatal("[ERROR] Failed to convert public key to RSA public key")
|
log.Fatal("[ERROR] Failed to convert public key to RSA public key")
|
||||||
}
|
}
|
||||||
|
|
||||||
modulus = publicKey.N
|
modulus = privateKey.N
|
||||||
exponent = publicKey.E
|
exponent = privateKey.E
|
||||||
|
|
||||||
gin.SetMode(gin.ReleaseMode)
|
gin.SetMode(gin.ReleaseMode)
|
||||||
router := gin.New()
|
router := gin.New()
|
||||||
|
|
Reference in New Issue