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