Key Property
The key to employ for the crypto operation.
Syntax
public var key: CryptoKey {
get {...}
set {...} }
Remarks
Use this property to specify the key to perform the crypto operation with.
Please note that the key assigned should be of a proper type (a public key, not a symmetric key),have a proper set of capabilities (signing and/or encryption), and include its private partfor signing and decryption operations.