ostore.mac
Class STSVerify
java.lang.Object
|
+--ostore.mac.STSVerify
- All Implemented Interfaces:
- QuickSerializable
- public class STSVerify
- extends Object
- implements QuickSerializable
Specifically made for the Station-to-Station Protocol to send
public keys back and forth. Tailored for and used specifically
by HMACDHHandler
.
refer to the 1992 Codes and Cryptography paper by Diffie and Hellman on
STS. (note we've been using the suggestion at the end of the paper:
using a MAC instead of encryption as part of the algorithm)
- Version:
- $Id: STSVerify.java,v 1.13 2002/07/20 19:18:14 srhea Exp $
- Author:
- Gifford Cheung
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STSVerify
public STSVerify(QSDHPublicKey myPu,
QSDHPublicKey otherPu)
- Constructor.
STSVerify
public STSVerify(InputBuffer buffer)
throws QSException
- Note, since STSVerify is only used to transport the digest
, all this will decode is digest and nothing more
The deserialization constructor. See the comments at the top of
QuickSerializable
for details.
getEncoded
public byte[] getEncoded()
to_bytes_helper
public void to_bytes_helper(OutputBuffer buf)
serialize
public void serialize(OutputBuffer buffer)
- Description copied from interface:
QuickSerializable
- Add the object to the
buffer
.
- Specified by:
serialize
in interface QuickSerializable
- Following copied from interface:
ostore.util.QuickSerializable
- Parameters:
buffer
- the output buffer to add the object to