Пример #1
0
  public ECDSACryptoSignature build() {

    byte[] bytes = new byte[digest.getDigestSize()];
    digest.doFinal(bytes, 0);
    digest.reset();
    log(meta, bytes);
    ECDSACryptoSignature sig = CryptoFactory.INSTANCE.sign(meta, sKey, bytes);
    for (String ref : references) {
      sig.addDataReference(ref);
    }
    references.clear();
    log(meta, count);
    count = 0;
    return sig;
  }