public class TorNTorKeyAgreement extends Object implements TorKeyAgreement
| Modifier and Type | Field and Description |
|---|---|
static int |
CURVE25519_PUBKEY_LEN |
| Constructor and Description |
|---|
TorNTorKeyAgreement(HexDigest peerIdentity,
byte[] peerNTorOnionKey) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
createOnionSkin() |
boolean |
deriveKeysFromHandshakeResponse(byte[] handshakeResponse,
byte[] keyMaterialOut,
byte[] verifyHashOut) |
byte[] |
getNtorCreateMagic() |
public static final int CURVE25519_PUBKEY_LEN
public TorNTorKeyAgreement(HexDigest peerIdentity, byte[] peerNTorOnionKey)
public byte[] createOnionSkin()
createOnionSkin in interface TorKeyAgreementpublic boolean deriveKeysFromHandshakeResponse(byte[] handshakeResponse,
byte[] keyMaterialOut,
byte[] verifyHashOut)
deriveKeysFromHandshakeResponse in interface TorKeyAgreementpublic byte[] getNtorCreateMagic()
Copyright © 2015. All rights reserved.