Integrated: 8264849: Add KW and KWP support to PKCS11 provider

Valerie Peng valeriep at openjdk.java.net
Tue Oct 19 20:55:40 UTC 2021


On Fri, 17 Sep 2021 23:22:21 GMT, Valerie Peng <valeriep at openjdk.org> wrote:

> Anyone has time to review this RFE for adding AES cipher with KW, KWP modes support to SunPKCS11 provider?
> 
> The main changes are in only one new class, i.e. P11KeyWrapCipher.java, which is the CipherSpi impl for the native PKCS11 key wrap mechanisms. When testing against NSS library, it seems that they only support the single part enc/dec PKCS11 APIs, so have to use a new class as existing P11Cipher class relies on the multi part enc/dec PKCS11 APIs and do not support key wrapping/unwrapping.
> 
> The rest are minor code refactoring and updates for the PKCS11 Exception class.
> The new regression tests are adapted from existing key wrap regression tests for SunJCE provider.
> 
> Thanks,
> Valerie

This pull request has now been integrated.

Changeset: e63c1486
Author:    Valerie Peng <valeriep at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/e63c1486dc00ee64dea1a76b5a44e34f06eb144f
Stats:     2135 lines in 17 files changed: 2036 ins; 46 del; 53 mod

8264849: Add KW and KWP support to PKCS11 provider

Reviewed-by: ascarpino

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

PR: https://git.openjdk.java.net/jdk/pull/5569


More information about the security-dev mailing list