From ac9304aab2999decd4eaf02052c32a19144fd286 Mon Sep 17 00:00:00 2001 From: bhashinee Date: Wed, 29 May 2024 16:10:49 +0530 Subject: [PATCH] Update the change log --- changelog.md | 5 +++++ .../java/io/ballerina/stdlib/crypto/nativeimpl/Decode.java | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 5bc8e032..f4a09171 100644 --- a/changelog.md +++ b/changelog.md @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [Unreleased] +### Added +- [Implement the support for reading private/public keys from the content](https://github.com/ballerina-platform/ballerina-library/issues/6513) + +## [2.7.1] - 2024-05-14 + ### Added - [Introduce new APIs to support ML-DSA (Dilithium) and ML-KEM (Kyber) post-quantum crypto algorithms](https://github.com/ballerina-platform/ballerina-library/issues/6201) diff --git a/native/src/main/java/io/ballerina/stdlib/crypto/nativeimpl/Decode.java b/native/src/main/java/io/ballerina/stdlib/crypto/nativeimpl/Decode.java index 5a4c5826..75f9e5a0 100644 --- a/native/src/main/java/io/ballerina/stdlib/crypto/nativeimpl/Decode.java +++ b/native/src/main/java/io/ballerina/stdlib/crypto/nativeimpl/Decode.java @@ -205,8 +205,7 @@ private static Object getPrivateKey(BString keyFilePath, Object keyPassword) { } } - private static Object getPrivateKeyInfo(Object keyPassword, Object obj) throws - IOException, PKCSException { + private static Object getPrivateKeyInfo(Object keyPassword, Object obj) throws IOException, PKCSException { PrivateKeyInfo privateKeyInfo; JcaPEMKeyConverter converter = new JcaPEMKeyConverter(); if (obj instanceof PEMEncryptedKeyPair) {