Lines Matching defs:digest
38 * PKCS#1 RSA signatures with the various message digest algorithms.
40 * a nested static class for each of the message digest algorithms
49 // we sign an ASN.1 SEQUENCE of AlgorithmId and digest
50 // it has the form 30:xx:30:xx:[digestOID]:05:00:04:xx:[digest]
51 // this means the encoded length is (8 + digestOID.length + digest.length)
54 // object identifier for the message digest algorithm used
60 // message digest implementation we use
62 // flag indicating whether the digest is reset
133 * Reset the message digest if it is not already reset.
143 * Return the message digest value.
147 return md.digest();
171 byte[] digest = getDigestValue();
173 byte[] encoded = encodeSignature(digestOID, digest);
193 byte[] digest = getDigestValue();
197 return MessageDigest.isEqual(digest, decodedDigest);
212 * Encode the digest, return the to-be-signed data.
215 public static byte[] encodeSignature(ObjectIdentifier oid, byte[] digest)
219 out.putOctetString(digest);
227 * and return the message digest.
245 byte[] digest = values[1].getOctetString();
246 return digest;