| Package | Description |
|---|---|
| net.java.otr4j.crypto |
| Modifier and Type | Method and Description |
|---|---|
static int |
SM.checkEqualCoords(BigInteger c,
BigInteger d1,
BigInteger d2,
BigInteger p,
BigInteger q,
SM.SMState state,
int version)
Verify a proof of knowledge of coordinates with first components being equal
|
static int |
SM.checkEqualLogs(BigInteger c,
BigInteger d,
BigInteger r,
SM.SMState state,
int version)
Verify a proof of knowledge of logs with exponents being equal
|
static int |
SM.checkKnowLog(BigInteger c,
BigInteger d,
BigInteger g,
BigInteger x,
int version)
Verify a proof of knowledge of a discrete logarithm.
|
static BigInteger |
SM.hash(int version,
BigInteger a,
BigInteger b)
Hash one or two BigIntegers.
|
static void |
SM.main(String[] args) |
static BigInteger[] |
SM.proofEqualCoords(SM.SMState state,
BigInteger r,
int version)
Proof of knowledge of coordinates with first components being equal
|
static BigInteger[] |
SM.proofEqualLogs(SM.SMState state,
int version)
Proof of knowledge of logs with exponents being equal
|
static BigInteger[] |
SM.proofKnowLog(BigInteger g,
BigInteger x,
int version)
Proof of knowledge of a discrete logarithm.
|
static byte[] |
SM.serialize(BigInteger[] ints) |
static byte[] |
SM.step1(SM.SMState astate,
byte[] secret)
Create first message in SMP exchange.
|
static void |
SM.step2a(SM.SMState bstate,
byte[] input,
int received_question)
Receive the first message in SMP exchange, which was generated by
step1.
|
static byte[] |
SM.step2b(SM.SMState bstate,
byte[] secret)
Create second message in SMP exchange.
|
static byte[] |
SM.step3(SM.SMState astate,
byte[] input)
Create third message in SMP exchange.
|
static byte[] |
SM.step4(SM.SMState bstate,
byte[] input)
Create final message in SMP exchange.
|
static void |
SM.step5(SM.SMState astate,
byte[] input)
Receives the final SMP message, which was generated in otrl_sm_step.
|
static BigInteger[] |
SM.unserialize(byte[] bytes) |
Copyright © 2015. All rights reserved.