diff options
author | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-11-29 15:30:16 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-11-29 15:30:16 +0300 |
commit | 1cde6f37de2c72e2a59738f04243c37be55edc68 (patch) | |
tree | 354c94d5931f5ae63d80e61deff90de29224bdfa /profiles/monotouch | |
parent | 8ea8f48d15cec73e0e90b0ee2712f3e2868e5d1c (diff) |
Apply changes from https://github.com/mono/mono/pull/11794 to API snapshot
Diffstat (limited to 'profiles/monotouch')
-rw-r--r-- | profiles/monotouch/mscorlib.cs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/profiles/monotouch/mscorlib.cs b/profiles/monotouch/mscorlib.cs index 2a5d728..ff843a7 100644 --- a/profiles/monotouch/mscorlib.cs +++ b/profiles/monotouch/mscorlib.cs @@ -19887,6 +19887,11 @@ namespace System.Security.Cryptography public CryptographicException(string message, System.Exception inner) { } public CryptographicException(string format, string insert) { } } + public static partial class CryptographicOperations + { + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining, NoOptimization)]public static bool FixedTimeEquals(System.ReadOnlySpan<byte> left, System.ReadOnlySpan<byte> right) { throw null; } + [System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining, NoOptimization)]public static void ZeroMemory(System.Span<byte> buffer) { } + } [System.Runtime.InteropServices.ComVisibleAttribute(true)] [System.SerializableAttribute] public partial class CryptographicUnexpectedOperationException : System.Security.Cryptography.CryptographicException @@ -20117,7 +20122,6 @@ namespace System.Security.Cryptography DoNotIgnoreWhiteSpaces = 1, IgnoreWhiteSpaces = 0, } - [System.Runtime.InteropServices.ComVisibleAttribute(true)] public abstract partial class HashAlgorithm : System.IDisposable, System.Security.Cryptography.ICryptoTransform { protected int HashSizeValue; @@ -20139,10 +20143,13 @@ namespace System.Security.Cryptography public void Dispose() { } protected virtual void Dispose(bool disposing) { } protected abstract void HashCore(byte[] array, int ibStart, int cbSize); + protected virtual void HashCore(System.ReadOnlySpan<byte> source) { } protected abstract byte[] HashFinal(); public abstract void Initialize(); public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset) { throw null; } public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount) { throw null; } + public bool TryComputeHash(System.ReadOnlySpan<byte> source, System.Span<byte> destination, out int bytesWritten) { throw null; } + protected virtual bool TryHashFinal(System.Span<byte> destination, out int bytesWritten) { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public partial struct HashAlgorithmName : System.IEquatable<System.Security.Cryptography.HashAlgorithmName> |