func decryptRSA(privkey []byte, message []byte) []byte {

	rsaPrivKey := bytesToPrivateRSAKey(privkey)

	plainText, err := rsa.DecryptOAEP(sha256.New(), nil, rsaPrivKey, message, nil)
	if err != nil {
		log.Fatalln(err)
	}

	return plainText
}
//DecryptRSA decrypts the given message with RSA-OAEP.
DecryptRSA decrypts the given message with RSA-OAEP.
// DecryptRSA decrypts the given message with RSA - OAEP .
func decryptRSA(privkey []byte, message []byte) []byte {
	rsaPrivKey := bytesToPrivateRSAKey(privkey)
	plainText, err := rsa.DecryptOAEP(sha256.New(), nil, rsaPrivKey, message, nil)
	if err != nil {
		log.Fatalln(err)
	}
	return plainText
}
func decryptRSA ( privkey [ ] byte , message [ ] byte ) [ ] byte { rsaPrivKey := bytesToPrivateRSAKey ( privkey ) plainText , err := rsa . DecryptOAEP ( sha256 . New ( ) , nil , rsaPrivKey , message , nil ) if err != nil { log . Fatalln ( err ) } return plainText }
DecryptRSA decrypts the given message with RSA-OAEP.
DecryptRSA decrypts the given message with RSA - OAEP .