config: Don't log the private key on error in rsadecrypt

This commit is contained in:
Borys Pierov 2018-06-26 18:19:37 -04:00 committed by Martin Atkins
parent a914ee3371
commit c811440188
1 changed files with 1 additions and 1 deletions

View File

@ -1698,7 +1698,7 @@ func interpolationFuncRsaDecrypt() ast.Function {
b, err := base64.StdEncoding.DecodeString(s)
if err != nil {
return "", fmt.Errorf("Failed to decode input %q: cipher text must be base64-encoded", key)
return "", fmt.Errorf("Failed to decode input %q: cipher text must be base64-encoded", s)
}
block, _ := pem.Decode([]byte(key))