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