Lines Matching refs:digest
40 * PKCS#1 RSA signatures with the various message digest algorithms.
42 * a nested static class for each of the message digest algorithms
51 // we sign an ASN.1 SEQUENCE of AlgorithmId and digest
52 // it has the form 30:xx:30:xx:[digestOID]:05:00:04:xx:[digest]
53 // this means the encoded length is (8 + digestOID.length + digest.length)
56 // object identifier for the message digest algorithm used
62 // message digest implementation we use
64 // flag indicating whether the digest is reset
135 * Reset the message digest if it is not already reset.
145 * Return the message digest value.
149 return md.digest();
173 byte[] digest = getDigestValue();
175 byte[] encoded = encodeSignature(digestOID, digest);
193 byte[] digest = getDigestValue();
198 return Arrays.equals(digest, decodedDigest);
213 * Encode the digest, return the to-be-signed data.
216 public static byte[] encodeSignature(ObjectIdentifier oid, byte[] digest)
220 out.putOctetString(digest);
228 * and return the message digest.
245 byte[] digest = values[1].getOctetString();
246 return digest;