GetEncoded() 공개 메소드

public GetEncoded ( ) : byte[]
리턴 byte[]
 public void SetEmbeddedSignature(bool isCritical, PgpSignature pgpSignature)
 {
     byte[] encoded = pgpSignature.GetEncoded();
     byte[] array   = ((encoded.Length - 1 <= 256) ? new byte[encoded.Length - 2] : new byte[encoded.Length - 3]);
     global::System.Array.Copy((global::System.Array)encoded, encoded.Length - array.Length, (global::System.Array)array, 0, array.Length);
     list.Add((object)new EmbeddedSignature(isCritical, isLongLength: false, array));
 }
예제 #2
0
        public void SetEmbeddedSignature(
            bool isCritical,
            PgpSignature pgpSignature)
        {
            byte[] sig = pgpSignature.GetEncoded();
            byte[] data;

            // TODO Should be >= ?
            if (sig.Length - 1 > 256)
            {
                data = new byte[sig.Length - 3];
            }
            else
            {
                data = new byte[sig.Length - 2];
            }

            Array.Copy(sig, sig.Length - data.Length, data, 0, data.Length);

            list.Add(new EmbeddedSignature(isCritical, data));
        }
		public void SetEmbeddedSignature(
			bool			isCritical,
			PgpSignature	pgpSignature)
		{
			byte[] sig = pgpSignature.GetEncoded();
			byte[] data;

			// TODO Should be >= ?
			if (sig.Length - 1 > 256)
			{
				data = new byte[sig.Length - 3];
			}
			else
			{
				data = new byte[sig.Length - 2];
			}

			Array.Copy(sig, sig.Length - data.Length, data, 0, data.Length);

			list.Add(new EmbeddedSignature(isCritical, data));
		}