SecKey Class

Definition

Encapsulates a security key, one half of a public-private key-pair.

public class SecKey : IDisposable, ObjCRuntime.INativeObject
type SecKey = class
    interface INativeObject
    interface IDisposable
Inheritance
SecKey
Implements

Constructors

SecKey(IntPtr)

A constructor used when creating managed representations of unmanaged objects.

SecKey(IntPtr, Boolean)

A constructor used when creating managed representations of unmanaged objects.

Properties

BlockSize

Gets the block size of the key.

Handle

Handle (pointer) to the unmanaged object representation.

Methods

Create(NSData, NSDictionary, NSError)
Create(NSData, SecKeyType, SecKeyClass, Int32, NSDictionary, NSError)
CreateDecryptedData(SecKeyAlgorithm, NSData, NSError)
CreateEncryptedData(SecKeyAlgorithm, NSData, NSError)
CreateRandomKey(NSDictionary, NSError)

Creates and returns a new key pair.

CreateRandomKey(SecKeyGenerationParameters, NSError)

Creates and returns a new key pair.

CreateRandomKey(SecKeyType, Int32, NSDictionary, NSError)

Creates and returns a new key pair.

CreateSignature(SecKeyAlgorithm, NSData, NSError)
Decrypt(SecPadding, Byte[], Byte[])
Decrypt(SecPadding, IntPtr, nint, IntPtr, nint)
Dispose()

Releases the resources used by the SecKey object.

Dispose(Boolean)

Releases the resources used by the SecKey object.

Encrypt(SecPadding, Byte[], Byte[])
Encrypt(SecPadding, Byte[], Byte[])
Encrypt(SecPadding, IntPtr, nint, IntPtr, nint)
Finalize()

Finalizer for the SecKey object

GenerateKeyPair(NSDictionary, SecKey, SecKey)

Generates a key pair from the provided values.

GenerateKeyPair(SecKeyType, Int32, SecPublicPrivateKeyAttrs, SecKey, SecKey)

Generates a key pair from the provided values.

GenerateKeyPair(SecKeyType, Int32, SecPublicPrivateKeyAttrs, SecPublicPrivateKeyAttrs, SecKey, SecKey)

Generates a key pair from the provided values.

GetAttributes()
GetExternalRepresentation()
GetExternalRepresentation(NSError)
GetKeyExchangeResult(SecKeyAlgorithm, SecKey, NSDictionary, NSError)
GetKeyExchangeResult(SecKeyAlgorithm, SecKey, SecKeyKeyExchangeParameter, NSError)
GetPublicKey()
GetTypeID()

Type identifier for the Security.SecKey type.

IsAlgorithmSupported(SecKeyOperationType, SecKeyAlgorithm)
RawSign(SecPadding, Byte[], Byte[])
RawSign(SecPadding, IntPtr, Int32, Byte[])
RawVerify(SecPadding, Byte[], Byte[])
RawVerify(SecPadding, IntPtr, Int32, IntPtr, Int32)
VerifySignature(SecKeyAlgorithm, NSData, NSData, NSError)

Applies to