CryptoSys PKI Toolkit Manual

Cipher.KeyWrap Method

Wraps (encrypts) key material with a key-encryption key

Syntax

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

Parameters

data
Key material to be wrapped
kek
Key encryption key
cipherAlg
Block cipher to use for wrapping

Return Value

Wrapped key (or empty array on error)

[Contents] [Index]


[HOME]   [NEXT: Cms.GetSigDataDigest Method...]

Copyright © 2004-10 D.I. Management Services Pty Ltd. All rights reserved.