Lines Matching defs:signature

50  * of a digital signature algorithm. Digital signatures are used for
53 * <p> The signature algorithm can be, among others, the NIST standard
65 * either signing data or verifying a signature:<ol>
71 * <li>a public key, which initializes the signature for
75 * which initializes the signature for signing
87 * <li>Signing or Verifying a signature on all updated bytes. See the
98 * supply their own implementations of digital signature algorithms.
259 Debug.isOn("engine=") && !Debug.isOn("signature");
264 * The algorithm for this signature object.
275 * this signature object has not yet been initialized.
281 * this signature object has been initialized for signing.
287 * this signature object has been initialized for verification.
292 * Current state of this signature object.
309 // name of the special signature alg
327 * Returns a Signature object that implements the specified signature
452 * Returns a Signature object that implements the specified signature
506 * signature algorithm.
570 * Returns the provider of this signature object.
572 * @return the provider of this signature object
588 * @param publicKey the public key of the identity whose signature is
618 * @param certificate the certificate of the identity whose signature is
623 * information or cannot be used for digital signature purposes.
666 * @param privateKey the private key of the identity whose signature
691 * @param privateKey the private key of the identity whose signature
694 * @param random the source of randomness for this signature.
714 * Returns the signature bytes of all the data updated.
715 * The format of the signature depends on the underlying
716 * signature scheme.
718 * <p>A call to this method resets this signature object to the state
721 * reset and available to generate another signature from the same
725 * @return the signature bytes of the signing operation's result.
727 * @exception SignatureException if this signature object is not
728 * initialized properly or if this signature algorithm is unable to
740 * Finishes the signature operation and stores the resulting signature
743 * The format of the signature depends on the underlying
744 * signature scheme.
746 * <p>This signature object is reset to its initial state (the state it
750 * @param outbuf buffer for the signature result.
752 * @param offset offset into {@code outbuf} where the signature is
756 * signature.
760 * @exception SignatureException if this signature object is not
761 * initialized properly, if this signature algorithm is unable to
763 * than the actual signature length.
787 * Verifies the passed-in signature.
789 * <p>A call to this method resets this signature object to the state
792 * reset and available to verify another signature from the identity
795 * @param signature the signature bytes to be verified.
797 * @return true if the signature was verified, false if not.
799 * @exception SignatureException if this signature object is not
800 * initialized properly, the passed-in signature is improperly
801 * encoded or of the wrong type, if this signature algorithm is unable to
804 public final boolean verify(byte[] signature) throws SignatureException {
806 return engineVerify(signature);
813 * Verifies the passed-in signature in the specified array
816 * <p>A call to this method resets this signature object to the state
819 * reset and available to verify another signature from the identity
823 * @param signature the signature bytes to be verified.
827 * @return true if the signature was verified, false if not.
829 * @exception SignatureException if this signature object is not
830 * initialized properly, the passed-in signature is improperly
831 * encoded or of the wrong type, if this signature algorithm is unable to
833 * @exception IllegalArgumentException if the {@code signature}
837 * {@code signature} byte array.
840 public final boolean verify(byte[] signature, int offset, int length)
843 if (signature == null) {
844 throw new IllegalArgumentException("signature is null");
850 if (signature.length - offset < length) {
852 ("signature too small for specified offset and length");
855 return engineVerify(signature, offset, length);
866 * @exception SignatureException if this signature object is not
874 + "signature or verification");
884 * @exception SignatureException if this signature object is not
899 * @exception SignatureException if this signature object is not
918 + "signature or verification");
931 * @exception SignatureException if this signature object is not
938 + "signature or verification");
947 * Returns the name of the algorithm for this signature object.
949 * @return the name of the algorithm for this signature object.
956 * Returns a string representation of this signature object,
960 * @return a string representation of this signature object.
983 * a parameter size, or a source of random bits for signature generation
993 * invalid parameter for this signature algorithm engine,
1010 * Initializes this signature engine with the specified parameter set.
1015 * are inappropriate for this signature engine
1025 * Returns the parameters used with this signature object.
1028 * this signature, or may contain a combination of default and randomly
1029 * generated parameter values used by the underlying signature
1030 * implementation if this signature requires algorithm parameters but
1033 * @return the parameters used with this signature, or null if this
1034 * signature does not use any parameters.
1048 * a source of random bits for signature generation (if appropriate),