public SetKey ( |
||
key | ||
Résultat | void |
public void Properties () { RSAPKCS1KeyExchangeFormatter keyex = new RSAPKCS1KeyExchangeFormatter (); keyex.SetKey (key); AssertEquals("RSAPKCS1KeyExchangeFormatter.Parameters", "<enc:KeyEncryptionMethod enc:Algorithm=\"http://www.microsoft.com/xml/security/algorithm/PKCS1-v1.5-KeyEx\" xmlns:enc=\"http://www.microsoft.com/xml/security/encryption/v1.0\" />", keyex.Parameters); // null (default) AssertNull("RSAPKCS1KeyExchangeFormatter.Rng", keyex.Rng); AssertEquals("RSAPKCS1KeyExchangeFormatter.ToString()", "System.Security.Cryptography.RSAPKCS1KeyExchangeFormatter", keyex.ToString ()); }
public void CreateAndSetNullKey () { AsymmetricKeyExchangeFormatter keyex = new RSAPKCS1KeyExchangeFormatter (); keyex.SetKey (null); }