(payload *EncryptedPayload)
| 353 | } |
| 354 | |
| 355 | func (cs *CryptoService) DecryptSensitiveData(payload *EncryptedPayload) (string, error) { |
| 356 | plaintext, err := cs.DecryptPayload(payload) |
| 357 | if err != nil { |
| 358 | return "", err |
| 359 | } |
| 360 | return string(plaintext), nil |
| 361 | } |
| 362 | |
| 363 | // GenerateKeyPair generates RSA key pair (for key generation during initialization) |
| 364 | // Returns PEM format private key and public key |
no test coverage detected