diff --git a/src/com/amazon/corretto/crypto/provider/EvpKey.java b/src/com/amazon/corretto/crypto/provider/EvpKey.java index d8078c17..b5ef3811 100644 --- a/src/com/amazon/corretto/crypto/provider/EvpKey.java +++ b/src/com/amazon/corretto/crypto/provider/EvpKey.java @@ -119,7 +119,8 @@ protected T nativeParams(final Class param return params.getParameterSpec(paramSpec); } catch (final GeneralSecurityException | IOException ex) { throw new RuntimeCryptoException( - "Unable to deserialize parameters: " + Base64.getEncoder().encodeToString(encoded), ex); + "Unable to deserialize parameters: " + Base64.getEncoder().encodeToString(encodedParams), + ex); } }