|
|||||||||
Home >> All >> cryptix >> openpgp >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |
cryptix.openpgp.util
Class PGPDSAElGamalSignatureParser

java.lang.Objectcryptix.openpgp.util.PGPDSAElGamalSignatureParser
- public class PGPDSAElGamalSignatureParser
- extends java.lang.Object
Reads and writes DER encoded DSA and ElGamal signatures.
DSA and ElGamal signatures are encoded by the JCA as a DER sequence of two ASN.1 INTEGER values like this:
SEQUENCE { r INTEGER; s INTEGER }
Field Summary | |
private java.math.BigInteger |
r
Signature values r and s |
private java.math.BigInteger |
s
Signature values r and s |
Constructor Summary | |
PGPDSAElGamalSignatureParser(java.math.BigInteger r,
java.math.BigInteger s)
Initializes the parser with the two numbers r and s. |
|
PGPDSAElGamalSignatureParser(byte[] data)
Initializes the parser with a DER sequence. |
Method Summary | |
byte[] |
getData()
Returns the encoded DER sequence |
java.math.BigInteger |
getR()
Returns the decoded r |
java.math.BigInteger |
getS()
Returns the decoded s |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
r
private java.math.BigInteger r
- Signature values r and s
s
private java.math.BigInteger s
- Signature values r and s
Constructor Detail |
PGPDSAElGamalSignatureParser
public PGPDSAElGamalSignatureParser(byte[] data) throws cryptix.openpgp.PGPDataFormatException
- Initializes the parser with a DER sequence.
Use getR() and getS() to get the decoded numbers.
PGPDSAElGamalSignatureParser
public PGPDSAElGamalSignatureParser(java.math.BigInteger r, java.math.BigInteger s)
- Initializes the parser with the two numbers r and s.
Use getData() to get the encoded DER sequence.
Method Detail |
getR
public java.math.BigInteger getR()
- Returns the decoded r
getS
public java.math.BigInteger getS()
- Returns the decoded s
getData
public byte[] getData()
- Returns the encoded DER sequence
|
|||||||||
Home >> All >> cryptix >> openpgp >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: ![]() ![]() ![]() |
DETAIL: FIELD | CONSTR | METHOD |