Share via


SecKey Class

Definition

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

public class SecKey : CoreFoundation.NativeObject
type SecKey = class
    inherit NativeObject
Inheritance

Properties

Name Description
BlockSize

Gets the block size of the key.

Handle (Inherited from DisposableObject)
Owns (Inherited from DisposableObject)

Methods

Name Description
ClearHandle() (Inherited from DisposableObject)
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, IntPtr, IntPtr, IntPtr)
Dispose() (Inherited from DisposableObject)
Dispose(Boolean) (Inherited from NativeObject)
Encrypt(SecPadding, Byte[], Byte[])
Encrypt(SecPadding, Byte[], Byte[])
Encrypt(SecPadding, IntPtr, IntPtr, IntPtr, IntPtr)
Equals(Object) (Inherited from DisposableObject)
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()
GetCheckedHandle() (Inherited from DisposableObject)
GetExternalRepresentation()
GetExternalRepresentation(NSError)
GetHashCode() (Inherited from DisposableObject)
GetKeyExchangeResult(SecKeyAlgorithm, SecKey, NSDictionary, NSError)
GetKeyExchangeResult(SecKeyAlgorithm, SecKey, SecKeyKeyExchangeParameter, NSError)
GetPublicKey()
GetTypeID()

Type identifier for the Security.SecKey type.

InitializeHandle(NativeHandle) (Inherited from DisposableObject)
IsAlgorithmSupported(SecKeyOperationType, SecKeyAlgorithm)
RawSign(SecPadding, Byte[], Byte[])
RawSign(SecPadding, IntPtr, Int32, Byte[])
RawVerify(SecPadding, Byte[], Byte[])
RawVerify(SecPadding, IntPtr, Int32, IntPtr, Int32)
Release() (Inherited from NativeObject)
Retain() (Inherited from NativeObject)
VerifySignature(SecKeyAlgorithm, NSData, NSData, NSError)

Extension Methods

Name Description
GetHandle(INativeObject)
GetNonNullHandle(INativeObject, String)

Applies to