MCPcopy Create free account
hub / github.com/TheAlgorithms/Go / GetPublicKey

Method GetPublicKey

cipher/rsa/rsa2.go:98–100  ·  view source on GitHub ↗

GetPublicKey returns the public key and modulus

()

Source from the content-addressed store, hash-verified

96
97// GetPublicKey returns the public key and modulus
98func (rsa *rsa) GetPublicKey() (uint64, uint64) {
99 return rsa.publicKey, rsa.modulus
100}
101
102// GetPrivateKey returns the private key
103func (rsa *rsa) GetPrivateKey() uint64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected