public interface KeyWrap
The interface is somewhat limited. It does not allow additional data during key wrapping. The security guarantees are not including a multi user setting. The reason for these limitations is that it allows to include KWP, with the plan to allow rotation to other algorithms.
| Modifier and Type | Method and Description |
|---|---|
byte[] |
unwrap(byte[] data)
Unwraps a wrapped key.
|
byte[] |
wrap(byte[] data)
Wraps some key material
data. |
byte[] wrap(byte[] data)
throws GeneralSecurityException
data.data - the key to wrap.GeneralSecurityExceptionbyte[] unwrap(byte[] data)
throws GeneralSecurityException
GeneralSecurityException - if data fails the integrity check.