Exemplo n.º 1
0
 private static extern int AppleCryptoNative_RsaGenerateKey(
     int keySizeInBits,
     SafeKeychainHandle keychain,
     out SafeSecKeyRefHandle pPublicKey,
     out SafeSecKeyRefHandle pPrivateKey,
     out int pOSStatus);
Exemplo n.º 2
0
 private static extern int RsaEncryptPkcs(
     SafeSecKeyRefHandle publicKey,
     byte[] pbData,
     int cbData,
     out SafeCFDataHandle pEncryptedOut,
     out SafeCFErrorHandle pErrorOut);
Exemplo n.º 3
0
 internal RSASecurityTransforms(SafeSecKeyRefHandle publicKey, SafeSecKeyRefHandle privateKey)
 {
     SetKey(SecKeyPair.PublicPrivatePair(publicKey, privateKey));
 }
Exemplo n.º 4
0
 internal RSASecurityTransforms(SafeSecKeyRefHandle publicKey)
 {
     SetKey(SecKeyPair.PublicOnly(publicKey));
 }
Exemplo n.º 5
0
 private static extern unsafe int AppleCryptoNative_GenerateSignature(
     SafeSecKeyRefHandle privateKey,
     byte *pbDataHash,
     int cbDataHash,
     out SafeCFDataHandle pSignatureOut,
     out SafeCFErrorHandle pErrorOut);
Exemplo n.º 6
0
 private static extern int AppleCryptoNative_SecKeyImportEphemeral(
     byte[] pbKeyBlob,
     int cbKeyBlob,
     int isPrivateKey,
     out SafeSecKeyRefHandle ppKeyOut,
     out int pOSStatus);
Exemplo n.º 7
0
 private static extern ulong AppleCryptoNative_SecKeyGetSimpleKeySizeInBytes(SafeSecKeyRefHandle publicKey);