OpenKMIP / PyKMIP

A Python implementation of the KMIP specification.
Apache License 2.0
264 stars 131 forks source link

Wrapping a key with public key id of RSA key #645

Open pkumarex opened 3 years ago

pkumarex commented 3 years ago

Hi,

I am trying to wrap a key (128 bit AES key) during get operation using public key of rsa key pair(length 2048). The rsa key pair is available in pykmip server , Able to do get operation for the rsa key.

Used padding method : OAEP and hashing algorithm as SHA 256 in encryption key information.

The operation fails with the following error message : The wrapping encryption key specified by the encryption key information is not a key.

Can someone provide an example for how to wrap a key with public key of rsa key and unwrap using the private key.

Many Thanks.

PeterHamilton commented 3 years ago

Hi @pkumarex, thanks for filing this issue. Unfortunately the PyKMIP server's implementation of key wrapping only supports wrapping with Symmetric Keys at this time. I'll add wrapping with Asymmetric Keys to the backlog but it may be a while before we are able to implement this.