Beispiel #1
0
 internal static unsafe partial int CryptorUpdate(
     SafeAppleCryptorHandle cryptor,
     byte *pbData,
     int cbData,
     byte *pbOutput,
     int cbOutput,
     out int cbWritten,
     out int ccStatus);
Beispiel #2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _cryptor?.Dispose();
                _cryptor = null !;
            }

            base.Dispose(disposing);
        }
Beispiel #3
0
 internal static unsafe partial int CryptorCreate(
     PAL_SymmetricOperation operation,
     PAL_SymmetricAlgorithm algorithm,
     PAL_ChainingMode chainingMode,
     PAL_PaddingMode paddingMode,
     byte *pbKey,
     int cbKey,
     byte *pbIv,
     PAL_SymmetricOptions options,
     out SafeAppleCryptorHandle cryptor,
     out int ccStatus);
Beispiel #4
0
 internal static unsafe partial int CryptorReset(SafeAppleCryptorHandle cryptor, byte *pbIv, out int ccStatus);
 internal static extern unsafe int CryptorReset(SafeAppleCryptorHandle cryptor, byte *pbIv, out int ccStatus);
 internal static extern unsafe int CryptorFinal(
     SafeAppleCryptorHandle cryptor,
     byte *pbOutput,
     int cbOutput,
     out int cbWritten,
     out int ccStatus);