Lines Matching defs:signature

51  * of a digital signature algorithm. Digital signatures are used for
54 * <p> The signature algorithm can be, among others, the NIST standard
66 * either signing data or verifying a signature:<ol>
72 * <li>a public key, which initializes the signature for
76 * which initializes the signature for signing
88 * <li>Signing or Verifying a signature on all updated bytes. See the
99 * supply their own implementations of digital signature algorithms.
125 * The algorithm for this signature object.
136 * this signature object has not yet been initialized.
142 * this signature object has been initialized for signing.
148 * this signature object has been initialized for verification.
153 * Current state of this signature object.
170 // name of the special signature alg
188 * Returns a Signature object that implements the specified signature
308 * Returns a Signature object that implements the specified signature
362 * signature algorithm.
426 * Returns the provider of this signature object.
428 * @return the provider of this signature object
444 * @param publicKey the public key of the identity whose signature is
465 * @param certificate the certificate of the identity whose signature is
470 * information or cannot be used for digital signature purposes.
504 * @param privateKey the private key of the identity whose signature
520 * @param privateKey the private key of the identity whose signature
523 * @param random the source of randomness for this signature.
534 * Returns the signature bytes of all the data updated.
535 * The format of the signature depends on the underlying
536 * signature scheme.
538 * <p>A call to this method resets this signature object to the state
541 * reset and available to generate another signature from the same
545 * @return the signature bytes of the signing operation's result.
547 * @exception SignatureException if this signature object is not
548 * initialized properly or if this signature algorithm is unable to
560 * Finishes the signature operation and stores the resulting signature
563 * The format of the signature depends on the underlying
564 * signature scheme.
566 * <p>This signature object is reset to its initial state (the state it
570 * @param outbuf buffer for the signature result.
572 * @param offset offset into <code>outbuf</code> where the signature is
576 * signature.
580 * @exception SignatureException if this signature object is not
581 * initialized properly, if this signature algorithm is unable to
583 * than the actual signature length.
604 * Verifies the passed-in signature.
606 * <p>A call to this method resets this signature object to the state
609 * reset and available to verify another signature from the identity
612 * @param signature the signature bytes to be verified.
614 * @return true if the signature was verified, false if not.
616 * @exception SignatureException if this signature object is not
617 * initialized properly, the passed-in signature is improperly
618 * encoded or of the wrong type, if this signature algorithm is unable to
621 public final boolean verify(byte[] signature) throws SignatureException {
623 return engineVerify(signature);
630 * Verifies the passed-in signature in the specified array
633 * <p>A call to this method resets this signature object to the state
636 * reset and available to verify another signature from the identity
640 * @param signature the signature bytes to be verified.
644 * @return true if the signature was verified, false if not.
646 * @exception SignatureException if this signature object is not
647 * initialized properly, the passed-in signature is improperly
648 * encoded or of the wrong type, if this signature algorithm is unable to
650 * @exception IllegalArgumentException if the <code>signature</code>
654 * <code>signature</code> byte array.
657 public final boolean verify(byte[] signature, int offset, int length)
660 if ((signature == null) || (offset < 0) || (length < 0) ||
661 (length > signature.length - offset)) {
665 return engineVerify(signature, offset, length);
676 * @exception SignatureException if this signature object is not
684 + "signature or verification");
694 * @exception SignatureException if this signature object is not
709 * @exception SignatureException if this signature object is not
718 + "signature or verification");
731 * @exception SignatureException if this signature object is not
738 + "signature or verification");
747 * Returns the name of the algorithm for this signature object.
749 * @return the name of the algorithm for this signature object.
756 * Returns a string representation of this signature object,
760 * @return a string representation of this signature object.
783 * a parameter size, or a source of random bits for signature generation
793 * invalid parameter for this signature algorithm engine,
810 * Initializes this signature engine with the specified parameter set.
815 * are inappropriate for this signature engine
825 * Returns the parameters used with this signature object.
828 * this signature, or may contain a combination of default and randomly
829 * generated parameter values used by the underlying signature
830 * implementation if this signature requires algorithm parameters but
833 * @return the parameters used with this signature, or null if this
834 * signature does not use any parameters.
848 * a source of random bits for signature generation (if appropriate),