Class CryptoSTSEngineImpl
java.lang.Object
com.biglybt.core.security.impl.CryptoSTSEngineImpl
- All Implemented Interfaces:
CryptoSTSEngine
STS authentication protocol using a symmetric 4 message ECDH/ECDSA handshake
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate CryptoSTSEngineImpl.InternalDHprivate KeyPairprivate final PrivateKeyprivate final PublicKeyprivate PublicKeyprivate byte[]static final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAuth(ByteBuffer message) protected byte[]getBytes(ByteBuffer buffer, int max_size) protected intgetInt(ByteBuffer buffer, int max_size) voidgetKeys(ByteBuffer message) voidgetMessage(ByteBuffer buffer, boolean keys) byte[]byte[]voidputAuth(ByteBuffer message) protected voidputBytes(ByteBuffer buffer, byte[] value, int max_size) protected voidputInt(ByteBuffer buffer, int value, int max_size) voidputKeys(ByteBuffer message) voidputMessage(ByteBuffer message, boolean keys)
-
Field Details
-
VERSION
public static final int VERSION- See Also:
-
ephemeralKeyPair
-
myPublicKey
-
myPrivateKey
-
remotePubKey
-
ecDH
-
-
Constructor Details
-
CryptoSTSEngineImpl
CryptoSTSEngineImpl(PublicKey _myPub, PrivateKey _myPriv) throws CryptoManagerException - Parameters:
myIdent- keypair representing our current identity- Throws:
CryptoManagerException
-
-
Method Details
-
getKeys
- Specified by:
getKeysin interfaceCryptoSTSEngine- Throws:
CryptoManagerException
-
putKeys
- Specified by:
putKeysin interfaceCryptoSTSEngine- Throws:
CryptoManagerException
-
getAuth
- Specified by:
getAuthin interfaceCryptoSTSEngine- Throws:
CryptoManagerException
-
putAuth
- Specified by:
putAuthin interfaceCryptoSTSEngine- Throws:
CryptoManagerException
-
putMessage
- Throws:
CryptoManagerException
-
getMessage
- Throws:
CryptoManagerException
-
getRemotePublicKey
- Specified by:
getRemotePublicKeyin interfaceCryptoSTSEngine- Throws:
CryptoManagerException
-
getInt
- Throws:
CryptoManagerException
-
getBytes
- Throws:
CryptoManagerException
-
putInt
- Throws:
CryptoManagerException
-
putBytes
protected void putBytes(ByteBuffer buffer, byte[] value, int max_size) throws CryptoManagerException - Throws:
CryptoManagerException
-