29 references to Name
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (1)
3280Debug.Assert(!deterministic || moduleBeingBuilt.PdbChecksumAlgorithm.Name != null);
Compilation\DeterministicKeyBuilder.cs (1)
417writer.Write("pdbChecksumAlgorithm", options.PdbChecksumAlgorithm.Name);
Emit\EmitOptions.cs (1)
369if (PdbChecksumAlgorithm.Name != null)
NativePdbWriter\PdbWriter.cs (1)
41private bool IsDeterministic { get => _hashAlgorithmNameOpt.Name != null; }
PEWriter\PeWriter.cs (3)
204Debug.Assert(!isDeterministic || context.Module.PdbChecksumAlgorithm.Name != null); 206var portablePdbIdProvider = (context.Module.PdbChecksumAlgorithm.Name != null) ? 252debugDirectoryBuilder.AddPdbChecksumEntry(context.Module.PdbChecksumAlgorithm.Name!, portablePdbContentHash);
Microsoft.DotNet.Build.Tasks.Workloads (1)
Utils.cs (1)
26HashAlgorithm algorithm = HashAlgorithm.Create(hashName.Name);
Microsoft.DotNet.SignCheckLibrary (3)
Verification\ArchiveVerifier.cs (3)
167string hashedPath = String.IsNullOrEmpty(directoryName) ? Utils.GetHash(@".\", HashAlgorithmName.SHA256.Name) : 168Utils.GetHash(directoryName, HashAlgorithmName.SHA256.Name); 173Utils.GetHash(archiveEntry.RelativePath, HashAlgorithmName.SHA256.Name) + Path.GetExtension(archiveEntry.RelativePath); // lgtm [cs/zipslip] Archive from trusted source
Roslyn.Test.PdbUtilities (2)
Reader\PdbValidation.cs (2)
607if ((portablePdbStreamOpt != null || hasEmbeddedPdb) && hashAlgorithm.Name != null) 612Assert.Equal(hashAlgorithm.Name, pdbChecksumData.AlgorithmName);
System.Security.Cryptography.Cose (10)
System\Security\Cryptography\Cose\CoseKey.cs (8)
34ArgumentNullException.ThrowIfNull(hashAlgorithm.Name); 48ArgumentNullException.ThrowIfNull(hashAlgorithm.Name); 274return hashAlgorithm.Name switch 279_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithm.Name), nameof(hashAlgorithm)) 285return hashAlgorithm.Name switch 290_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithm.Name), nameof(hashAlgorithm)) 296return hashAlgorithm.Name switch 301_ => throw new ArgumentException(SR.Format(SR.Sign1SignUnsupportedHashAlgorithm, hashAlgorithm.Name), nameof(hashAlgorithm))
System\Security\Cryptography\Cose\CoseSigner.cs (2)
184exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyHashAlgorithmAndPadding, alg.Value, CoseKey.KeyType, HashAlgorithm.Name, RSASignaturePadding); 192exMsg = SR.Format(SR.Sign1SignCoseAlgorithmDoesNotMatchSpecifiedKeyAndHashAlgorithm, alg.Value, CoseKey.KeyType, HashAlgorithm.Name);
System.Security.Cryptography.Pkcs (6)
src\libraries\Common\src\Internal\Cryptography\PkcsHelpers.cs (1)
235throw new CryptographicException(SR.Cryptography_Cms_UnknownAlgorithm, algName.Name);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (3)
48pbeParameters.HashAlgorithm.Name); 148Debug.Assert(digestAlgorithmName.Name != null); 301throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, prf.Name);
src\libraries\Common\src\System\Security\Cryptography\Pkcs12Kdf.cs (1)
101throw new CryptographicException(SR.Cryptography_UnknownHashAlgorithm, hashAlgorithm.Name);
System\Security\Cryptography\Pkcs\CmsSignature.RSA.cs (1)
378Debug.Assert(hashAlgorithmName == HashAlgorithmName.MD5, $"Unsupported digest algorithm '{hashAlgorithmName.Name}'");