Unwraps (decrypts) key material with a key-encryption key
Namespace: CryptoSysAPIAssembly: diCrSysAPINet (in diCrSysAPINet.dll) Version: 6.22.2.24248 (6.22.2.0)
Syntaxpublic static byte[] KeyUnwrap(
byte[] data,
byte[] kek,
CipherAlgorithm cipherAlg
)
Public Shared Function KeyUnwrap (
data As Byte(),
kek As Byte(),
cipherAlg As CipherAlgorithm
) As Byte()
Parameters
- data Byte
- Wrapped key
- kek Byte
- Key encryption key
- cipherAlg CipherAlgorithm
- Block cipher to use for wrapping
Return Value
ByteUnwrapped key material (or empty array on error)
See Also