CryptoSys API Library Manual

Cipher.KeyUnwrap Method

Unwraps (decrypts) key material with a key-encryption key

Syntax

[C#]
public static byte[] KeyUnwrap(
	byte[] data,
	byte[] kek,
	CipherAlgorithm cipherAlg
)
[VB.NET]
Public Shared Function KeyUnwrap ( _
	data As Byte(), _
	kek As Byte(), _
	cipherAlg As CipherAlgorithm _
) As Byte()

Parameters

data
Wrapped key
kek
Key encryption key
cipherAlg
Type: CipherAlgorithm
Block cipher to use for wrapping

Return Value

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 © 2001-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-01-07T07:42:00Z.