1 write to Algorithm
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (1)
67Algorithm = algorithm;
29 references to Algorithm
System.Security.Cryptography (27)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (17)
132int signatureSizeInBytes = Algorithm.SignatureSizeInBytes; 185byte[] destination = new byte[Algorithm.SignatureSizeInBytes]; 228if (signature.Length != Algorithm.SignatureSizeInBytes) 318if (destination.Length != Algorithm.SignatureSizeInBytes) 321SR.Format(SR.Argument_DestinationImprecise, Algorithm.SignatureSizeInBytes), 378byte[] destination = new byte[Algorithm.SignatureSizeInBytes]; 434if (signature.Length != Algorithm.SignatureSizeInBytes) 620Algorithm.PrivateKeySizeInBytes; 654int privateKeySizeInBytes = Algorithm.PrivateKeySizeInBytes; 674writer.WriteObjectIdentifier(Algorithm.Oid); 1077int publicKeySizeInBytes = Algorithm.PublicKeySizeInBytes; 1105byte[] destination = new byte[Algorithm.PublicKeySizeInBytes]; 1128int privateKeySizeInBytes = Algorithm.PrivateKeySizeInBytes; 1158byte[] destination = new byte[Algorithm.PrivateKeySizeInBytes]; 1868int publicKeySizeInBytes = Algorithm.PublicKeySizeInBytes; 1884writer.WriteObjectIdentifier(Algorithm.Oid); 1954int size = Algorithm.PrivateKeySizeInBytes + 32;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\SlhDsaImplementation.cs (3)
26Debug.Assert(key.Algorithm.PrivateKeySizeInBytes <= 128); 28Span<byte> secretKey = (stackalloc byte[128])[..key.Algorithm.PrivateKeySizeInBytes]; 33return ImportPrivateKey(key.Algorithm, secretKey);
System\Security\Cryptography\X509Certificates\SlhDsaX509SignatureGenerator.cs (2)
32writer.WriteObjectIdentifier(_key.Algorithm.Oid); 52Oid oid = new Oid(_key.Algorithm.Oid, null);
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (5)
1058if (publicKey.Algorithm != privateKey.Algorithm) 1064Debug.Assert(publicKey.Algorithm.PublicKeySizeInBytes <= MaxPublicKeySize); 1067Span<byte> pk1 = publicKeysBuffer.Slice(0, publicKey.Algorithm.PublicKeySizeInBytes); 1068Span<byte> pk2 = publicKeysBuffer.Slice(pk1.Length, publicKey.Algorithm.PublicKeySizeInBytes);
System.Security.Cryptography.Pkcs (2)
System\Security\Cryptography\Pkcs\CmsSignature.SlhDsa.cs (2)
74if (publicKey.Algorithm != _parameterSet) 119byte[] signature = new byte[signingKey.Algorithm.SignatureSizeInBytes];