Top Fields Constructors Methods
org.bouncycastle.mls.codec

public Class PrivateMessage

extends Object
implements Readable, Writable
Class Inheritance
All Implemented Interfaces
org.bouncycastle.mls.codec.MLSOutputStream.Writable, org.bouncycastle.mls.codec.MLSInputStream.Readable
Imports
java.io.IOException, org.bouncycastle.crypto.InvalidCipherTextException, org.bouncycastle.mls.GroupKeySet, .KeyGeneration, .KeyScheduleEpoch, org.bouncycastle.mls.TreeKEM.LeafIndex, org.bouncycastle.mls.crypto.MlsCipherSuite, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
pack-priv byte[]
pack-priv byte[]
pack-priv ContentType
pack-priv byte[]
pack-priv long
pack-priv byte[]

Constructor Summary

AccessConstructor and Description
public
PrivateMessage(byte[] group_id, long epoch, ContentType content_type, byte[] authenticated_data, byte[] encrypted_sender_data, byte[] ciphertext)

pack-priv

Method Summary

Modifier and TypeMethod and Description
private void
deserializeContentPt(byte[] contentPt, FramedContent content, FramedContentAuthData auth)

public static PrivateMessage
protect(AuthenticatedContent auth, MlsCipherSuite suite, GroupKeySet keys, byte[] senderDataSecretBytes, int paddingSize)

private static byte[]
serializeContentPt(FramedContent content, FramedContentAuthData auth, int paddingSize)

public AuthenticatedContent
unprotect(MlsCipherSuite suite, GroupKeySet keys, byte[] senderDataSecretBytes)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authenticated_databack to summary
pack-priv byte[] authenticated_data
ciphertextback to summary
pack-priv byte[] ciphertext
content_typeback to summary
pack-priv ContentType content_type
encrypted_sender_databack to summary
pack-priv byte[] encrypted_sender_data
epochback to summary
pack-priv long epoch
group_idback to summary
pack-priv byte[] group_id

Constructor Detail

PrivateMessageback to summary
public PrivateMessage(byte[] group_id, long epoch, ContentType content_type, byte[] authenticated_data, byte[] encrypted_sender_data, byte[] ciphertext)
PrivateMessageback to summary
pack-priv PrivateMessage(MLSInputStream stream) throws IOException
Annotations
@SuppressWarnings:unused

Method Detail

deserializeContentPtback to summary
private void deserializeContentPt(byte[] contentPt, FramedContent content, FramedContentAuthData auth) throws IOException
protectback to summary
public static PrivateMessage protect(AuthenticatedContent auth, MlsCipherSuite suite, GroupKeySet keys, byte[] senderDataSecretBytes, int paddingSize) throws IOException, IllegalAccessException, InvalidCipherTextException
serializeContentPtback to summary
private static byte[] serializeContentPt(FramedContent content, FramedContentAuthData auth, int paddingSize) throws IOException
unprotectback to summary
public AuthenticatedContent unprotect(MlsCipherSuite suite, GroupKeySet keys, byte[] senderDataSecretBytes) throws Exception
writeToback to summary
public void writeTo(MLSOutputStream stream) throws IOException

Implements org.bouncycastle.mls.codec.MLSOutputStream.Writable.writeTo.

Annotations
@Override