WrapKey Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Namespace: System.Security.Cryptography
Assembly: Microsoft.SPOT.Security.PKCS11 (in Microsoft.SPOT.Security.PKCS11.dll)
Syntax
'Declaration
Public Shared Function WrapKey ( _
session As Session, _
mechanism As Mechanism, _
wrappingKey As CryptoKey, _
key As CryptoKey _
) As Byte()
public static byte[] WrapKey(
Session session,
Mechanism mechanism,
CryptoKey wrappingKey,
CryptoKey key
)
public:
static array<unsigned char>^ WrapKey(
Session^ session,
Mechanism^ mechanism,
CryptoKey^ wrappingKey,
CryptoKey^ key
)
static member WrapKey :
session:Session *
mechanism:Mechanism *
wrappingKey:CryptoKey *
key:CryptoKey -> byte[]
public static function WrapKey(
session : Session,
mechanism : Mechanism,
wrappingKey : CryptoKey,
key : CryptoKey
) : byte[]
Parameters
- session
Type: Microsoft.SPOT.Cryptoki. . :: . .Session
- mechanism
Type: Microsoft.SPOT.Cryptoki. . :: . .Mechanism
- wrappingKey
Type: System.Security.Cryptography. . :: . .CryptoKey
Return Value
Type: array<System. . :: . .Byte> [] () [] []
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.