24 references to Cryptography_NotValidPublicOrPrivateKey
System.Security.Cryptography (24)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSACng.ImportExport.cs (1)
437
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.ImportExport.cs (1)
305
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDiffieHellmanCng.ImportExport.cs (1)
122
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECDsaCng.ImportExport.cs (1)
162
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\KeyFormatHelper.cs (4)
53
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
84
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
126
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
154
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKem.Windows.cs (2)
34
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
44
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\RSACng.ImportExport.cs (1)
87
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X25519WindowsHelpers.cs (2)
44
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
56
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
System\Security\Cryptography\AsymmetricAlgorithmHelpers.Ansi.cs (3)
22
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
47
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
53
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
System\Security\Cryptography\CngHelpers.cs (1)
293
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
System\Security\Cryptography\EccKeyFormatHelper.cs (2)
127
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
189
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
System\Security\Cryptography\HpkeECDiffieHellmanKemAdapter.cs (4)
99
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
118
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
, e);
215
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
239
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);
System\Security\Cryptography\KeyBlobHelpers.cs (1)
55
throw new CryptographicException(SR.
Cryptography_NotValidPublicOrPrivateKey
);