예제 #1
0
 protected virtual DerBitString CorruptSignature(DerBitString bs)
 {
     return(new DerBitString(CorruptBit(bs.GetOctets())));
 }
예제 #2
0
 public byte[] GetSignatureOctets()
 {
     return signatureValue.GetOctets();
 }
예제 #3
0
 /// <summary>For when the public key is an ASN.1 encoding.</summary>
 public virtual Asn1Object ParsePublicKey()
 {
     return(publicKey == null ? null : Asn1Object.FromByteArray(publicKey.GetOctets()));
 }
예제 #4
0
 public byte[] GetSignatureOctets()
 {
     return(sig.GetOctets());
 }
예제 #5
0
 /**
  * for when the public key is an encoded object - if the bitstring
  * can't be decoded this routine raises an IOException.
  *
  * @exception IOException - if the bit string doesn't represent a Der
  * encoded object.
  */
 public Asn1Object GetPublicKey()
 {
     return(Asn1Object.FromByteArray(keyData.GetOctets()));
 }