17 references to Cryptography_NotValidPublicOrPrivateKey
System.Security.Cryptography (17)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (1)
437throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (1)
305throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (1)
122throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (1)
162throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (4)
53throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 84throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 126throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 154throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (2)
34throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 44throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (1)
87throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (2)
44throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 56throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
System\Security\Cryptography\CngHelpers.cs (1)
293throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
127throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey); 189throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);
System\Security\Cryptography\KeyBlobHelpers.cs (1)
55throw new CryptographicException(SR.Cryptography_NotValidPublicOrPrivateKey);