|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.crypto.ECMQVKeyAgreement
Implements the key agreement scheme developed by Menezes, Qu, and Vanstone using elliptic curves (ECMQV).
Elliptic Curve cryptography is defined in various standards including P1363 and ANSI X9.62. ECMQV is defined in P1363 ( we implemented the version from the draft 13 ( "d13" ) document ).
Certicom Contact Information
Phone:613-254-9258
Email: sales@certicom.com
Website: http://www.certicom.com/rim
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.
| Method Summary | ||
|
static byte[] |
generateSharedSecret(ECPrivateKey localStaticPrivateKey,
ECKeyPair localEphemeralKeyPair,
ECPublicKey remoteStaticPublicKey,
ECPublicKey remoteEphemeralPublicKey,
boolean useCofactor)
Generates the shared secret using the elliptic curve key agreement developed by Menezes, Qu, and Vanstone with the option of the cofactor of the elliptic curve being used in the shared secret calculations. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static byte[] generateSharedSecret(ECPrivateKey localStaticPrivateKey, ECKeyPair localEphemeralKeyPair, ECPublicKey remoteStaticPublicKey, ECPublicKey remoteEphemeralPublicKey, boolean useCofactor) throws InvalidCryptoSystemException, CryptoTokenException, CryptoUnsupportedOperationException
localStaticPrivateKey - The local static private key to use.localEphemeralKeyPair - The local ephemeral key pair to use.remoteStaticPublicKey - The remote static public key to use.remoteEphemeralPublicKey - The remote ephemeral public key to use.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.InvalidCryptoSystemException - Thrown if the local and remote crypto systems are different.CryptoTokenException - Thrown if an error occurs with the crypto
token or the crypto token is invalid.CryptoUnsupportedOperationException - Thrown if a call is made to
an unsupported operation.Certicom Contact Information
Phone:613-254-9258
Email: sales@certicom.com
Website: http://www.certicom.com/rim
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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2008 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.