iOS Guides | Samples

Security.SecKey Class

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

See Also: SecKey

Syntax

public class SecKey : INativeObject, IDisposable

Requirements

Namespace: Security
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of Security.SecKey are listed below.

See Also: Object

Public Constructors

A constructor used when creating managed representations of unmanaged objects.
A constructor used when creating managed representations of unmanaged objects.

Public Properties

[read-only]
BlockSizeInt32.
[read-only]
HandleIntPtr. Handle (pointer) to the unmanaged object representation.

Public Methods

static
Create(NSData, NSDictionary, out NSError) : SecKey
static
Create(NSData, SecKeyType, SecKeyClass, Int32, NSDictionary, out NSError) : SecKey
CreateDecryptedData(SecKeyAlgorithm, NSData, out NSError) : NSData
CreateEncryptedData(SecKeyAlgorithm, NSData, out NSError) : NSData
static
CreateRandomKey(NSDictionary, out NSError) : SecKey
static
CreateRandomKey(SecKeyType, Int32, NSDictionary, out NSError) : SecKey
CreateSignature(SecKeyAlgorithm, NSData, out NSError) : NSData
Decrypt(SecPadding, Byte[], out Byte[]) : SecStatusCode
Decrypt(SecPadding, IntPtr, IntPtr, nint, ref nint) : SecStatusCode
Dispose()
Releases the resources used by the SecKey object.
Encrypt(SecPadding, Byte[], Byte[]) : SecStatusCode
Encrypt(SecPadding, Byte[], out Byte[]) : SecStatusCode
Encrypt(SecPadding, IntPtr, IntPtr, nint, ref nint) : SecStatusCode
Finalize()
Finalizer for the SecKey object
static
GenerateKeyPair(NSDictionary, out SecKey, out SecKey) : SecStatusCode
GetAttributes() : NSDictionary
GetExternalRepresentation() : NSData
GetExternalRepresentation(out NSError) : NSData
GetKeyExchangeResult(SecKeyAlgorithm, SecKey, NSDictionary, out NSError) : NSData
GetKeyExchangeResult(SecKeyAlgorithm, SecKey, SecKeyKeyExchangeParameter, out NSError) : NSData
GetPublicKey() : SecKey
static
GetTypeID() : nint
Type identifier for the Security.SecKey type.
IsAlgorithmSupported(SecKeyOperationType, SecKeyAlgorithm) : Boolean
RawSign(SecPadding, Byte[], out Byte[]) : SecStatusCode
RawSign(SecPadding, IntPtr, Int32, out Byte[]) : SecStatusCode
RawVerify(SecPadding, Byte[], Byte[]) : SecStatusCode
RawVerify(SecPadding, IntPtr, Int32, IntPtr, Int32) : SecStatusCode
VerifySignature(SecKeyAlgorithm, NSData, NSData, out NSError) : Boolean

Protected Methods

Dispose(Boolean)
Releases the resources used by the SecKey object.