IT. Expert System.

Android Reference

SHA1withDSA_SignatureImpl


org.apache.harmony.security.provider.crypto

Class SHA1withDSA_SignatureImpl



  • public class SHA1withDSA_SignatureImpl
    extends Signature
    • Method Detail

      • engineSign

        protected byte[] engineSign()
                             throws SignatureException
        Returns signature bytes as byte array containing ASN1 representation for two BigInteger objects which is SEQUENCE of two INTEGERS. Length of sequence varies from less than 46 to 48. Resets object to the state it was in when previous call to either "initSign" method was called.
        Specified by:
        engineSign in class SignatureSpi
        Returns:
        byte array containing signature in ASN1 representation
        Throws:
        SignatureException - if object's state is not SIGN or signature algorithm cannot process data
      • engineUpdate

        protected void engineUpdate(byte[] b,
                        int off,
                        int len)
                             throws SignatureException
        Updates data to sign or to verify.
        Specified by:
        engineUpdate in class SignatureSpi
        Parameters:
        b - the byte array to update with.
        off - the start index in b of the data.
        len - the number of bytes to use.
        Throws:
        SignatureException - if object was not initialized for signing or verifying
      • engineVerify

        protected boolean engineVerify(byte[] sigBytes)
                                throws SignatureException
        Verifies the signature bytes.
        Specified by:
        engineVerify in class SignatureSpi
        Parameters:
        sigBytes - the signature to verify.
        Returns:
        true if signature bytes were verified, false otherwise
        Throws:
        SignatureException - if object's state is not VERIFY or signature format is not ASN1 representation or signature algorithm cannot process data
      • engineVerify

        protected boolean engineVerify(byte[] sigBytes,
                           int offset,
                           int length)
                                throws SignatureException
        Verifies the signature bytes.
        Overrides:
        engineVerify in class SignatureSpi
        Parameters:
        sigBytes - the byte[] containing the signature to verify.
        offset - the start index in sigBytes of the signature
        length - the number of bytes allocated for the signature.
        Returns:
        true if signature bytes were verified, false otherwise
        Throws:
        SignatureException - if object's state is not VERIFY or signature format is not ASN1 representation or signature algorithm cannot process data


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 153 / 158782903. Delta: 0.03872 с