Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class ECCUtils

    Object
       |
       +--ECCUtils

class ECCUtils

Defined in eccutils.js

Field Summary
`<static> Object` | `brainpoolP160r1`
`<static> Object` | `brainpoolP160t1`
`<static> Object` | `brainpoolP192r1`
`<static> Object` | `brainpoolP192t1`
`<static> Object` | `brainpoolP224r1`
`<static> Object` | `brainpoolP224t1`
`<static> Object` | `brainpoolP256r1`
`<static> Object` | `brainpoolP256t1`
`<static> Object` | `brainpoolP320r1`
`<static> Object` | `brainpoolP320t1`
`<static> Object` | `brainpoolP384r1`
`<static> Object` | `brainpoolP384t1`
`<static> Object` | `brainpoolP512r1`
`<static> Object` | `brainpoolP512t1`
`<static> Object` | `c2pnb163v1`
`<static> Object` | `c2pnb163v2`
`<static> Object` | `c2pnb163v3`
`<static> Object` | `c2pnb176w1`
`<static> Object` | `c2pnb208w1`
`<static> Object` | `c2pnb272w1`
`<static> Object` | `c2pnb304w1`
`<static> Object` | `c2pnb368w1`
`<static> Object` | `c2tnb191v1`
`<static> Object` | `c2tnb191v2`
`<static> Object` | `c2tnb191v3`
`<static> Object` | `c2tnb239v1`
`<static> Object` | `c2tnb239v2`
`<static> Object` | `c2tnb239v3`
`<static> Object` | `c2tnb359v1`
`<static> Object` | `c2tnb431r1`
`<static> Object` | `PAD`
`<static> Object` | `prime192v1`
`<static> Object` | `prime192v2`
`<static> Object` | `prime192v3`
`<static> Object` | `prime239v1`
`<static> Object` | `prime239v2`
`<static> Object` | `prime239v3`
`<static> Object` | `prime256v1`
`<static> Object` | `secp224r1`
`<static> Object` | `secp256r1`
`<static> Object` | `secp384r1`
`<static> Object` | `secp521r1`
`<static> Object` | `sect163r2`
`<static> Object` | `sect233r1`
`<static> Object` | `sect283r1`
`<static> Object` | `sect409r1`
`<static> Object` | `sect571r1`

Constructor Summary
`ECCUtils()`

Method Summary
`<static> Object` | `decodeECParameters(tlv)` Decode domain parameter from ECParameters
`<static> Object` | `ECParametersToString(key)`
`<static> Object` | `I2O(value, length)` Integer to octet string conversion
`<static> Object` | `unwrapSignature(signature, keylen)` Unwrap a ECDSA signature from the TLV encoding according to RFC3279 into the concatenation of the unsigned integer r and s
`<static> Object` | `wrapSignature(signature)` Wrap a ECDSA signature in the format r || s into a TLV encoding as defined by RFC 3279

Field Detail

### brainpoolP160r1

    <static> Object brainpoolP160r1

### brainpoolP160t1

    <static> Object brainpoolP160t1

### brainpoolP192r1

    <static> Object brainpoolP192r1

### brainpoolP192t1

    <static> Object brainpoolP192t1

### brainpoolP224r1

    <static> Object brainpoolP224r1

### brainpoolP224t1

    <static> Object brainpoolP224t1

### brainpoolP256r1

    <static> Object brainpoolP256r1

### brainpoolP256t1

    <static> Object brainpoolP256t1

### brainpoolP320r1

    <static> Object brainpoolP320r1

### brainpoolP320t1

    <static> Object brainpoolP320t1

### brainpoolP384r1

    <static> Object brainpoolP384r1

### brainpoolP384t1

    <static> Object brainpoolP384t1

### brainpoolP512r1

    <static> Object brainpoolP512r1

### brainpoolP512t1

    <static> Object brainpoolP512t1

### c2pnb163v1

    <static> Object c2pnb163v1

### c2pnb163v2

    <static> Object c2pnb163v2

### c2pnb163v3

    <static> Object c2pnb163v3

### c2pnb176w1

    <static> Object c2pnb176w1

### c2pnb208w1

    <static> Object c2pnb208w1

### c2pnb272w1

    <static> Object c2pnb272w1

### c2pnb304w1

    <static> Object c2pnb304w1

### c2pnb368w1

    <static> Object c2pnb368w1

### c2tnb191v1

    <static> Object c2tnb191v1

### c2tnb191v2

    <static> Object c2tnb191v2

### c2tnb191v3

    <static> Object c2tnb191v3

### c2tnb239v1

    <static> Object c2tnb239v1

### c2tnb239v2

    <static> Object c2tnb239v2

### c2tnb239v3

    <static> Object c2tnb239v3

### c2tnb359v1

    <static> Object c2tnb359v1

### c2tnb431r1

    <static> Object c2tnb431r1

### PAD

    <static> Object PAD

### prime192v1

    <static> Object prime192v1

### prime192v2

    <static> Object prime192v2

### prime192v3

    <static> Object prime192v3

### prime239v1

    <static> Object prime239v1

### prime239v2

    <static> Object prime239v2

### prime239v3

    <static> Object prime239v3

### prime256v1

    <static> Object prime256v1

### secp224r1

    <static> Object secp224r1

### secp256r1

    <static> Object secp256r1

### secp384r1

    <static> Object secp384r1

### secp521r1

    <static> Object secp521r1

### sect163r2

    <static> Object sect163r2

### sect233r1

    <static> Object sect233r1

### sect283r1

    <static> Object sect283r1

### sect409r1

    <static> Object sect409r1

### sect571r1

    <static> Object sect571r1

Constructor Detail

### ECCUtils

    ECCUtils()

Method Detail

### decodeECParameters

    <static> Object decodeECParameters(tlv)

Decode domain parameter from ECParameters

    	ECParameters ::= SEQUENCE {
    		version INTEGER{ecpVer1(1)} (ecpVer1),
    		fieldID FieldID,
    		curve Curve,
    		base ECPoint,
    		order INTEGER,
    		cofactor INTEGER OPTIONAL,
    		...
    	}

    	Curve ::= SEQUENCE {
    		a FieldElement,
    		b FieldElement,
    		seed BIT STRING OPTIONAL
    	}

    	FieldElement ::= OCTET STRING
    	ECPoint ::= OCTET STRING
    	FieldID ::= SEQUENCE {
    		fieldType OBJECT IDENTIFIER,
    		parameters ANY DEFINED BY fieldType
    	}
    	prime-field OBJECT IDENTIFIER ::= { ansi-x9-62 fieldType(1) 1 }
    	Prime-p ::= INTEGER

### ECParametersToString

    <static> Object ECParametersToString(key)

### I2O

    <static> Object I2O(value, length)

Integer to octet string conversion

### unwrapSignature

    <static> Object unwrapSignature(signature, keylen)

Unwrap a ECDSA signature from the TLV encoding according to RFC3279 into the concatenation of the unsigned integer r and s

Parameters:

`signature` - TLV encoded signature

Returns:

concatenation of r and s

### wrapSignature

    <static> Object wrapSignature(signature)

Wrap a ECDSA signature in the format r || s into a TLV encoding as defined by RFC 3279

Parameters:

`signature` - ByteString containing the concatenation of r and s as unsigned integer values

Returns:

ASN.1 SEQUENCE objects containing two signed integer r and s

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Fri Mar 27 16:43:57 2026