CryptoSys PKI Pro Manual

Cipher.KeyWrap Method

Wrap (encrypt) 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
Type: CipherAlgorithm
Block cipher to use for wrapping

Return Value

Wrapped key (or empty array on error)

See Also

VB6/C equivalent: CIPHER_KeyWrap

[Contents] [Index]

[PREV: Cipher.KeyUnwrap Method...]   [Contents]   [Index]   
   [NEXT: Cipher.Pad Method (Byte, CipherAlgorithm, Padding)...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.