Wrap (encrypt) key material with a key-encryption key.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static byte[] KeyWrap(
byte[] data,
byte[] kek,
CipherAlgorithm cipherAlg
)
Public Shared Function KeyWrap (
data As Byte(),
kek As Byte(),
cipherAlg As CipherAlgorithm
) As Byte()
Parameters
- data Byte
- Key material to be wrapped
- kek Byte
- Key encryption key
- cipherAlg CipherAlgorithm
- Block cipher to use for wrapping
Return Value
ByteWrapped key (or empty array on error)
See Also