public SignatureFormat(KeyFormat keyFormat, string hashAlgorithm)
		{
			Debug.Assert(keyFormat.serialize().IndexOf(':') == -1);
			KeyFormat = keyFormat;
			HashAlgorithm = hashAlgorithm;
		}
示例#2
0
		public Key(KeyFormat format, byte[] data)
		{
			Debug.Assert(format.serialize().IndexOf(':') == -1);
			Format = format;
			Data = data;
		}
		public bool Equals(KeyFormat other)
		{
			return Equals(other.Algorithm, Algorithm) && other.BitSize == BitSize;
		}