C# Class MonoMac.Security.SecKey

Inheritance: INativeObject, IDisposable
Exibir arquivo Open project: kangaroo/maccore Class Usage Examples

Private Properties

Property Type Description
GetTypeID int
RawSign SecStatusCode
RawSign SecStatusCode
SecKey System
SecKey System
SecKeyDecrypt SecStatusCode
SecKeyEncrypt SecStatusCode
SecKeyGeneratePair SecStatusCode
SecKeyGetBlockSize System.IntPtr
SecKeyRawSign SecStatusCode
SecKeyRawVerify SecStatusCode

Public Methods

Method Description
Decrypt ( SecPadding padding, IntPtr cipherText, int cipherLen, IntPtr plainText, int playLen ) : SecStatusCode
Decrypt ( SecPadding padding, byte cipherText, byte plainText ) : SecStatusCode
Dispose ( ) : void
Dispose ( bool disposing ) : void
Encrypt ( SecPadding padding, IntPtr plainText, int playLen, IntPtr cipherText, int cipherLen ) : SecStatusCode
Encrypt ( SecPadding padding, byte plainText, byte cipherText ) : SecStatusCode
GenerateKeyPair ( NSDictionary parameters, SecKey &publicKey, SecKey &privateKey ) : SecStatusCode
RawVerify ( SecPadding padding, IntPtr signedData, int signedDataLen, IntPtr signature, int signatureLen ) : SecStatusCode
RawVerify ( SecPadding padding, byte signedData, byte signature ) : SecStatusCode

Private Methods

Method Description
GetTypeID ( ) : int
RawSign ( SecPadding padding, IntPtr dataToSign, int dataToSignLen, byte &result ) : SecStatusCode
RawSign ( SecPadding padding, byte dataToSign, byte &result ) : SecStatusCode
SecKey ( IntPtr handle ) : System
SecKey ( IntPtr handle, bool owns ) : System
SecKeyDecrypt ( IntPtr handle, SecPadding padding, IntPtr cipherText, IntPtr cipherLen, IntPtr plainText, IntPtr playLen ) : SecStatusCode
SecKeyEncrypt ( IntPtr handle, SecPadding padding, IntPtr plainText, IntPtr playLen, IntPtr cipherText, IntPtr cipherLen ) : SecStatusCode
SecKeyGeneratePair ( IntPtr dictHandle, IntPtr &pubKey, IntPtr &privKey ) : SecStatusCode
SecKeyGetBlockSize ( IntPtr handle ) : IntPtr
SecKeyRawSign ( IntPtr handle, SecPadding padding, IntPtr dataToSign, IntPtr dataToSignLen, IntPtr sig, IntPtr sigLen ) : SecStatusCode
SecKeyRawVerify ( IntPtr handle, SecPadding padding, IntPtr signedData, IntPtr signedLen, IntPtr sign, IntPtr signLen ) : SecStatusCode

Method Details

Decrypt() public method

public Decrypt ( SecPadding padding, IntPtr cipherText, int cipherLen, IntPtr plainText, int playLen ) : SecStatusCode
padding SecPadding
cipherText System.IntPtr
cipherLen int
plainText System.IntPtr
playLen int
return SecStatusCode

Decrypt() public method

public Decrypt ( SecPadding padding, byte cipherText, byte plainText ) : SecStatusCode
padding SecPadding
cipherText byte
plainText byte
return SecStatusCode

Dispose() public method

public Dispose ( ) : void
return void

Dispose() public method

public Dispose ( bool disposing ) : void
disposing bool
return void

Encrypt() public method

public Encrypt ( SecPadding padding, IntPtr plainText, int playLen, IntPtr cipherText, int cipherLen ) : SecStatusCode
padding SecPadding
plainText System.IntPtr
playLen int
cipherText System.IntPtr
cipherLen int
return SecStatusCode

Encrypt() public method

public Encrypt ( SecPadding padding, byte plainText, byte cipherText ) : SecStatusCode
padding SecPadding
plainText byte
cipherText byte
return SecStatusCode

GenerateKeyPair() public static method

public static GenerateKeyPair ( NSDictionary parameters, SecKey &publicKey, SecKey &privateKey ) : SecStatusCode
parameters NSDictionary
publicKey SecKey
privateKey SecKey
return SecStatusCode

RawVerify() public method

public RawVerify ( SecPadding padding, IntPtr signedData, int signedDataLen, IntPtr signature, int signatureLen ) : SecStatusCode
padding SecPadding
signedData System.IntPtr
signedDataLen int
signature System.IntPtr
signatureLen int
return SecStatusCode

RawVerify() public method

public RawVerify ( SecPadding padding, byte signedData, byte signature ) : SecStatusCode
padding SecPadding
signedData byte
signature byte
return SecStatusCode