7 overrides of KeySize
System.Security.Cryptography (7)
artifacts\obj\System.Security.Cryptography\Debug\net10.0\System.Security.Cryptography.notsupported.cs (7)
95
public override int
KeySize
{ get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
120
public override int
KeySize
{ get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
166
public override int
KeySize
{ get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
2294
public override int
KeySize
{ get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
2370
public override int
KeySize
{ get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
3247
public override int
KeySize
{ get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
3271
public override int
KeySize
{ get { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } set { throw new System.PlatformNotSupportedException(System.SR.SystemSecurityCryptography_PlatformNotSupported); } }
14 writes to KeySize
System.Security.Cryptography.Pkcs (14)
Internal\Cryptography\Pal\AnyOS\ManagedPal.cs (6)
110
alg.
KeySize
= rc2Params.GetEffectiveKeyBits();
148
alg.
KeySize
= algorithmIdentifier.KeyLength;
152
alg.
KeySize
= KeyLengths.Rc2_128Bit;
188
alg.
KeySize
= 128;
192
alg.
KeySize
= 192;
196
alg.
KeySize
= 256;
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (8)
119
cipher.
KeySize
= 128;
125
cipher.
KeySize
= 128;
131
cipher.
KeySize
= 40;
254
cipher.
KeySize
= 128;
259
cipher.
KeySize
= 192;
264
cipher.
KeySize
= 256;
269
cipher.
KeySize
= 192;
611
aes.
KeySize
= correctKeySize * 8;
7 references to KeySize
System.Security.Cryptography.Pkcs (6)
Internal\Cryptography\Pal\AnyOS\ManagedPal.Encrypt.cs (1)
162
Rc2CbcParameters rc2Params = new Rc2CbcParameters(alg.IV, alg.
KeySize
);
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (5)
326
int keySizeBytes = cipher.
KeySize
/ 8;
545
byte[] key = pbkdf2.GetBytes(cipher.
KeySize
/ 8);
872
if (cipher.
KeySize
> 256 || cipher.BlockSize > 256)
875
$"Unexpected cipher characteristics by {cipher.GetType().FullName}, KeySize={cipher.
KeySize
}, BlockSize={cipher.BlockSize}");
886
Span<byte> key = stackalloc byte[cipher.
KeySize
/ 8];
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\EncryptedXml.cs (1)
605
switch (symKey.
KeySize
)