public string ToXmlString(ECKeyXmlFormat format) { if (format != ECKeyXmlFormat.Rfc4050) { throw new ArgumentOutOfRangeException("format"); } return(Rfc4050KeyFormatter.ToXml(this.Key)); }
public override string ToXmlString() { if (this.m_key == null) { this.m_key = this.Import(); } return(Rfc4050KeyFormatter.ToXml(this.m_key)); }
/// <summary> /// Convert the key blob to XML /// /// See code:System.Security.Cryptography.Rfc4050KeyFormatter#RFC4050ECKeyFormat for information /// about the XML format used. /// </summary> public override string ToXmlString() { Contract.Ensures(!String.IsNullOrEmpty(Contract.Result <string>())); ECParameters ecParams = ExportParameters(); return(Rfc4050KeyFormatter.ToXml(ecParams, isEcdh: true)); }
/// <summary> /// Convert the key blob to XML /// /// See code:System.Security.Cryptography.Rfc4050KeyFormatter#RFC4050ECKeyFormat for information /// about the XML format used. /// </summary> public override string ToXmlString() { Contract.Ensures(!String.IsNullOrEmpty(Contract.Result <string>())); if (m_key == null) { m_key = Import(); } return(Rfc4050KeyFormatter.ToXml(m_key)); }
public string ToXmlString(ECKeyXmlFormat format) { Contract.Ensures(Contract.Result <string>() != null); if (format != ECKeyXmlFormat.Rfc4050) { throw new ArgumentOutOfRangeException("format"); } return(Rfc4050KeyFormatter.ToXml(Key)); }
public string ToXmlString(ECKeyXmlFormat format) { Contract.Ensures(Contract.Result <string>() != null); if (format != ECKeyXmlFormat.Rfc4050) { throw new ArgumentOutOfRangeException("format"); } ECParameters ecParams = ExportParameters(false); return(Rfc4050KeyFormatter.ToXml(ecParams, isEcdh: false)); }