Пример #1
0
  @Override
  boolean asn1Equals(ASN1Primitive o) {
    if (!(o instanceof ASN1Integer)) {
      return false;
    }

    ASN1Integer other = (ASN1Integer) o;

    return Arrays.areEqual(bytes, other.bytes);
  }
Пример #2
0
 ASN1Integer(byte[] bytes, boolean clone) {
   this.bytes = (clone) ? Arrays.clone(bytes) : bytes;
 }