ECIESEncryptor is a class used to encrypt messages with the Elliptic Curve Integrated
Encryption Scheme ( ECIES ). It is described in ANSI X9.63.
Elliptic Curve cryptography is defined in various standards including P1363 and ANSI X9.62.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
encrypt(byte[] plaintext,
int plaintextOffset,
int plaintextLength,
byte[] ciphertext)
Encrypts data using the specific implementation of the chosen stream encryptor.
Creates an ECIESEncryptor class. The MAC algorithm used is HMAC with SHA1 and a 20 byte mac key.
Note that the cofactor is used in the shared secret calculation and the digest used in the KDF is
SHA1.
Parameters:
out - The output stream to write too.
recipientPublicKey - The public key of the person this message will go to.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
recipientPublicKey - The public key of the person this message will go to.
macAlgorithm - The MAC algorithm to use. If null, then "HMAC/SHA1" is used.
macKeyLength - The length of the MAC key to use.
additionalMACInfo - Additional mac information to provided to the MAC.
additionalKDFInfo - Additional shared information to provide to the KDF.
kdfDigest - Specifies the digest to use in the KDF. If null, then SHA1 is used.
useCofactor - If this true, a the elliptic curve's cofactor is used in the calculations.
If false, the cofactor is not used. Note, setting this value to TRUE is the most common usage.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Following copied from class: net.rim.device.api.crypto.CryptoOutputStream
Returns:
A String that represents the name of the algorithm.
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
encrypt
protected void encrypt(byte[] plaintext,
int plaintextOffset,
int plaintextLength,
byte[] ciphertext)
throws CryptoTokenException
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved. Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved. Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.