internal static extern unsafe int CryptorUpdate( SafeAppleCryptorHandle cryptor, byte* pbData, int cbData, byte* pbOutput, int cbOutput, out int cbWritten, out int ccStatus);
protected override void Dispose(bool disposing) { if (disposing) { _cryptor?.Dispose(); _cryptor = null; } base.Dispose(disposing); }
internal static extern unsafe 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);
internal static extern unsafe int CryptorReset(SafeAppleCryptorHandle cryptor, byte* pbIv, out int ccStatus);