cryptix.pgp
Class ConvEncryptedData
java.lang.Object
cryptix.pgp.Packet
cryptix.pgp.ConvEncryptedData
- public final class ConvEncryptedData
- extends Packet
Class representing an encrypted Packet.
Copyright © 1995-1997
Systemics Ltd on behalf of the
Cryptix Development Team.
All rights reserved.
$Revision: 1.3 $
- Since:
- Cryptix 2.2 or earlier
- Author:
- unattributed
Field Summary |
protected byte[] |
buffer
|
Fields inherited from class cryptix.pgp.Packet |
COMMENT, COMPRESSED, CONV_ENCRYPTED, MESSAGE_DIGEST, PLAINTEXT, PUBLIC_KEY, PUBLIC_KEY_ENCRYPTED, SECRET_KEY, SIGNATURE, TRUST, USER_ID |
Method Summary |
byte[] |
data(byte[] key)
|
byte[] |
getBuffer()
|
int |
getType()
|
void |
read(java.io.DataInput in,
int length)
|
int |
write(java.io.DataOutput out)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
buffer
protected byte[] buffer
ConvEncryptedData
public ConvEncryptedData(java.io.DataInput in,
int length)
throws java.io.IOException
ConvEncryptedData
public ConvEncryptedData(byte[] data,
byte[] key,
RandomStream rand)
throws java.io.IOException
getBuffer
public byte[] getBuffer()
read
public void read(java.io.DataInput in,
int length)
throws java.io.IOException
- Specified by:
read
in class Packet
- Throws:
java.io.IOException
write
public int write(java.io.DataOutput out)
throws java.io.IOException
- Specified by:
write
in class Packet
- Throws:
java.io.IOException
data
public byte[] data(byte[] key)
throws DecryptException
- Throws:
DecryptException
getType
public int getType()
- Specified by:
getType
in class Packet