Unwraps a key
Namespace:
Cryptware.NCryptokiAssembly: NCryptoki (in NCryptoki.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Function UnwrapKey ( _ mech As Mechanism, _ unwrappingKey As Key, _ wrappedKey As Byte(), _ attList As CryptokiCollection _ ) As Key |
C# |
---|
public Key UnwrapKey( Mechanism mech, Key unwrappingKey, byte[] wrappedKey, CryptokiCollection attList ) |
Visual C++ |
---|
public: virtual Key^ UnwrapKey( Mechanism^ mech, Key^ unwrappingKey, [InAttribute] array<unsigned char>^ wrappedKey, CryptokiCollection^ attList ) sealed |
JavaScript |
---|
function unwrapKey(mech, unwrappingKey, wrappedKey, attList); |
Parameters
- mech
- Type: Cryptware.NCryptoki..::..Mechanism
Mechanism for wrapping
- unwrappingKey
- Type: Cryptware.NCryptoki..::..Key
Key used for unwrapping
- wrappedKey
- Type: array<System..::..Byte>[]()[]
Key to unwrap
- attList
- Type: Cryptware.NCryptoki..::..CryptokiCollection
Attribute of the Key
Return Value
Unwrapped KeyImplements
ISession..::..UnwrapKey(Mechanism, Key, array<Byte>[]()[][], CryptokiCollection)
Remarks
Call C_UnwrapKey
Exceptions
Exception | Condition |
---|---|
Cryptware.NCryptoki..::..CryptokiException | if a PKCS#11 error occurs |