CryptoSys PKI Pro Manual

Cipher.KeyUnwrap Method

Unwrap (decrypt) key material with a key-encryption key.

Syntax

[C#]
public static byte[] KeyUnwrap(
   byte[] data,
   byte[] kek,
   CipherAlgorithm cipherAlg 
)
[VB]
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

Byte
Unwrapped key material (or empty array on error)

See Also

VB6/C equivalent: CIPHER_KeyUnwrap

[Contents] [Index]

[PREV: Cipher.KeyBytes Method...]   [Contents]   [Index]   
   [NEXT: Cipher.KeyWrap Method...]

Copyright © 2004-26 D.I. Management Services Pty Ltd t/a CryptoSys. All rights reserved. Generated 2026-09-21T05:59:39Z.