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