RFR: 8325513: Export method for Cipher [v3]

Anthony Scarpino ascarpino at openjdk.org
Fri May 10 20:13:16 UTC 2024


On Fri, 10 May 2024 14:00:55 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> Add `Cipher::export` API.
>
> Weijun Wang has updated the pull request incrementally with one additional commit since the last revision:
> 
>   change new method to non final

Why is the `algorithm` necessary for this new method?   Couldn't the new SecretKey take the algorithm from the original SecretKey stored in the Cipher object?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18409#issuecomment-2105209403



More information about the security-dev mailing list