2 instantiations of RSASignaturePadding
System.Security.Cryptography (2)
179 references to RSASignaturePadding
dotnet-dev-certs (1)
HttpStress (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
InMemory.FunctionalTests (6)
Microsoft.AspNetCore.Authentication.Test (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (1)
Microsoft.AspNetCore.HttpOverrides.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
Microsoft.AspNetCore.Testing (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Test.Utilities (1)
mscorlib (1)
netstandard (1)
System.Security.Cryptography (97)
System\Security\Cryptography\RSA.cs (22)
93public virtual byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) => throw DerivedClassMustOverride();
94public virtual bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) => throw DerivedClassMustOverride();
341public virtual bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
356public virtual bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding) =>
372public byte[] SignData(byte[] data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
384RSASignaturePadding padding)
401public virtual byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
411public virtual bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
454/// or <see cref="SignHash(byte[], HashAlgorithmName, RSASignaturePadding)" />.
456public byte[] SignData(ReadOnlySpan<byte> data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
465(HashAlgorithmName HashAlgorithm, RSASignaturePadding Padding) state,
513/// or <see cref="SignHash(byte[], HashAlgorithmName, RSASignaturePadding)" />.
519RSASignaturePadding padding)
560/// or <see cref="SignHash(byte[], HashAlgorithmName, RSASignaturePadding)" />.
562public byte[] SignHash(ReadOnlySpan<byte> hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
571(HashAlgorithmName HashAlgorithm, RSASignaturePadding Padding) state,
615/// or <see cref="SignHash(byte[], HashAlgorithmName, RSASignaturePadding)" />.
621RSASignaturePadding padding)
634public bool VerifyData(byte[] data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
647RSASignaturePadding padding)
665public bool VerifyData(Stream data, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
676public virtual bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
System\Security\Cryptography\RSACryptoServiceProvider.Unix.cs (23)
177public override byte[] SignData(Stream data, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
181if (padding != RSASignaturePadding.Pkcs1)
191public override byte[] SignData(byte[] data, int offset, int count, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
195if (padding != RSASignaturePadding.Pkcs1)
205public override bool TrySignData(ReadOnlySpan<byte> data, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
209if (padding != RSASignaturePadding.Pkcs1)
220_impl.SignData(buffer, offset, count, CapiHelper.ObjToHashAlgorithmName(halg), RSASignaturePadding.Pkcs1);
223_impl.SignData(buffer, CapiHelper.ObjToHashAlgorithmName(halg), RSASignaturePadding.Pkcs1);
226_impl.SignData(inputStream, CapiHelper.ObjToHashAlgorithmName(halg), RSASignaturePadding.Pkcs1);
228public override byte[] SignHash(byte[] hash, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
232if (padding != RSASignaturePadding.Pkcs1)
242public override bool TrySignHash(ReadOnlySpan<byte> hash, Span<byte> destination, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding, out int bytesWritten)
246if (padding != RSASignaturePadding.Pkcs1)
264return _impl.SignHash(rgbHash, algName, RSASignaturePadding.Pkcs1);
270_impl.VerifyData(buffer, signature, CapiHelper.ObjToHashAlgorithmName(halg), RSASignaturePadding.Pkcs1);
272public override bool VerifyData(byte[] data, int offset, int count, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
276if (padding != RSASignaturePadding.Pkcs1)
286public override bool VerifyData(ReadOnlySpan<byte> data, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
290if (padding != RSASignaturePadding.Pkcs1)
300public override bool VerifyHash(byte[] hash, byte[] signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
308public override bool VerifyHash(ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, HashAlgorithmName hashAlgorithm, RSASignaturePadding padding)
312if (padding != RSASignaturePadding.Pkcs1)
329CapiHelper.NameOrOidToHashAlgorithmName(str), RSASignaturePadding.Pkcs1);
System.Security.Cryptography.Algorithms (1)
System.Security.Cryptography.Cose (15)
System.Security.Cryptography.Pkcs (31)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)