Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ASN1Integer.java « asn1 « bouncycastle « org « java « main « src « core - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 18e89c6dc7d32d3ada8d3861da60d6a4cf06e489 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package org.bouncycastle.asn1;

import java.math.BigInteger;

import org.bouncycastle.util.Arrays;

public class ASN1Integer
    extends DERInteger
{
    ASN1Integer(byte[] bytes, boolean clone)
    {
        super(clone ? Arrays.clone(bytes) : bytes);
    }

    /**
     * Constructor from a byte array containing a signed representation of the number.
     *
     * @param bytes a byte array containing the signed number.A copy is made of the byte array.
     */
    public ASN1Integer(byte[] bytes)
    {
        this(bytes, true);
    }

    public ASN1Integer(BigInteger value)
    {
        super(value);
    }

    public ASN1Integer(long value)
    {
        super(value);
    }
}