1 write to Algorithm
System.Security.Cryptography (1)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (1)
60
Algorithm
= algorithm;
47 references to Algorithm
System.Security.Cryptography (47)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.cs (24)
111
if (ciphertext.Length !=
Algorithm
.CiphertextSizeInBytes)
114
SR.Format(SR.Argument_DestinationImprecise,
Algorithm
.CiphertextSizeInBytes),
118
if (sharedSecret.Length !=
Algorithm
.SharedSecretSizeInBytes)
121
SR.Format(SR.Argument_DestinationImprecise,
Algorithm
.SharedSecretSizeInBytes),
151
byte[] localCiphertext = new byte[
Algorithm
.CiphertextSizeInBytes];
152
byte[] localSharedSecret = new byte[
Algorithm
.SharedSecretSizeInBytes];
203
if (ciphertext.Length !=
Algorithm
.CiphertextSizeInBytes)
208
if (sharedSecret.Length !=
Algorithm
.SharedSecretSizeInBytes)
211
SR.Format(SR.Argument_DestinationImprecise,
Algorithm
.SharedSecretSizeInBytes),
250
if (ciphertext.Length !=
Algorithm
.CiphertextSizeInBytes)
255
byte[] sharedSecret = new byte[
Algorithm
.SharedSecretSizeInBytes];
291
if (destination.Length !=
Algorithm
.PrivateSeedSizeInBytes)
294
SR.Format(SR.Argument_DestinationImprecise,
Algorithm
.PrivateSeedSizeInBytes),
317
byte[] seed = new byte[
Algorithm
.PrivateSeedSizeInBytes];
522
if (destination.Length !=
Algorithm
.DecapsulationKeySizeInBytes)
525
SR.Format(SR.Argument_DestinationImprecise,
Algorithm
.DecapsulationKeySizeInBytes),
548
byte[] decapsulationKey = new byte[
Algorithm
.DecapsulationKeySizeInBytes];
576
if (destination.Length !=
Algorithm
.EncapsulationKeySizeInBytes)
579
SR.Format(SR.Argument_DestinationImprecise,
Algorithm
.EncapsulationKeySizeInBytes),
600
byte[] encapsulationKey = new byte[
Algorithm
.EncapsulationKeySizeInBytes];
1637
int encapsulationKeySize =
Algorithm
.EncapsulationKeySizeInBytes;
1649
Algorithm =
Algorithm
.Oid,
1771
int initialSize =
Algorithm
.DecapsulationKeySizeInBytes + 32;
1801
int size =
Algorithm
.DecapsulationKeySizeInBytes + 32;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (1)
40
ReadOnlySpan<char> expectedParamSet = PqcBlobHelpers.GetMLKemParameterSet(
Algorithm
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (7)
96
Debug.Assert(ciphertext.Length ==
Algorithm
.CiphertextSizeInBytes);
97
Debug.Assert(sharedSecret.Length ==
Algorithm
.SharedSecretSizeInBytes);
110
Debug.Assert(ciphertext.Length ==
Algorithm
.CiphertextSizeInBytes);
111
Debug.Assert(sharedSecret.Length ==
Algorithm
.SharedSecretSizeInBytes);
132
Debug.Assert(destination.Length ==
Algorithm
.PrivateSeedSizeInBytes);
148
Debug.Assert(destination.Length ==
Algorithm
.DecapsulationKeySizeInBytes);
164
Debug.Assert(destination.Length ==
Algorithm
.EncapsulationKeySizeInBytes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.cs (1)
21
MLKemAlgorithm alg = key.
Algorithm
;
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemImplementation.Windows.cs (7)
84
Debug.Assert(ciphertext.Length ==
Algorithm
.CiphertextSizeInBytes);
85
Debug.Assert(sharedSecret.Length ==
Algorithm
.SharedSecretSizeInBytes);
96
Debug.Assert(ciphertext.Length ==
Algorithm
.CiphertextSizeInBytes);
97
Debug.Assert(sharedSecret.Length ==
Algorithm
.SharedSecretSizeInBytes);
111
Debug.Assert(destination.Length ==
Algorithm
.PrivateSeedSizeInBytes);
119
Debug.Assert(destination.Length ==
Algorithm
.DecapsulationKeySizeInBytes);
127
Debug.Assert(destination.Length ==
Algorithm
.EncapsulationKeySizeInBytes);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemPkcs8.cs (3)
20
Algorithm = kem.
Algorithm
.Oid,
31
int seedSize = kem.
Algorithm
.PrivateSeedSizeInBytes;
40
int decapsulationKeySize = kem.
Algorithm
.DecapsulationKeySizeInBytes;
System\Security\Cryptography\X509Certificates\X509Certificate2.cs (4)
860
if (publicKey.
Algorithm
!= privateKey.
Algorithm
)
865
using (CryptoPoolLease pk1 = CryptoPoolLease.Rent(publicKey.
Algorithm
.EncapsulationKeySizeInBytes, skipClear: true))
866
using (CryptoPoolLease pk2 = CryptoPoolLease.Rent(publicKey.
Algorithm
.EncapsulationKeySizeInBytes, skipClear: true))