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

Method GetPrivateKey

cipher/rsa/rsa2.go:103–105  ·  view source on GitHub ↗

GetPrivateKey returns the private key

()

Source from the content-addressed store, hash-verified

101
102// GetPrivateKey returns the private key
103func (rsa *rsa) GetPrivateKey() uint64 {
104 return rsa.privateKey
105}
106
107// encryptDecryptInt encrypts or decrypts the data using RSA algorithm
108func encryptDecryptInt(e, n, data uint64) uint64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected