Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

ECDSASignatureSigner

Construct an ECDSASignatureSigner object which uses a specified digest to compute the signature.

NOTE: If the digest has any state information in it when it is given to the signature
signer, this information will be incorparated into the signature. If you don't want this
information included, call the reset method for the signature signer to delete it. A newly
created digest, which no update calls have been made too, contains no state information in it by
default.

Parameters:

key - The private key to use.

digest - An instance of the digest algorithm to use.

Throws:

CryptoTokenException - Thrown if an error occurs with the crypto
token or the crypto token is invalid.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:

BlackBerry API 3.6.0

reset

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

offset - The offset, or the initial position to start reading in the data.

length - How much data to read.

Category:

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:

BlackBerry API 3.6.0

getRLength

public int getRLength()

Returns the largest possible value for the size of r, which is the size of the field.
Notice that the "field" refers to the finite field that the elliptic curve is
defined over and the size refers to either the size of the prime or the
degree of the irreducible polynomial that helps define the field.

The reason we return the maximum size is because r is always in the field and hence
can have size less than or equal to the size of the field so we return the maximum to ensure
that there is enough room to hold r. If r turns out to be smaller than the maximum
it will be padded with zeroes to accomodate this fact.

Returns:

An integer that represents the length of r.

Category:

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:

BlackBerry API 3.6.0

getSLength

public int getSLength()

Returns the largest possible value for the size of s, which is the size of the field.
Notice that the "field" refers to the finite field that the elliptic curve is
defined over and the size refers to either the size of the prime or the
degree of the irreducible polynomial that helps define the field.

The reason we return the maximum size is because s is always in the field and hence
can have size less than or equal to the size of the field so we return the maximum to ensure
that there is enough room to hold s. If s turns out to be smaller than the maximum
it will be padded with zeroes to accomodate this fact.

Returns:

An integer that represents the length of r.

Category:

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.