Top Fields Constructors Methods
org.bouncycastle.mls.codec

public Class PublicMessage

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.mls.crypto.MlsCipherSuite, .Secret, org.bouncycastle.util.Arrays

Field Summary

Modifier and TypeField and Description
pack-priv FramedContentAuthData
pack-priv FramedContent
pack-priv byte[]

Constructor Summary

AccessConstructor and Description
public
public
PublicMessage(FramedContent content, FramedContentAuthData auth, byte[] membership_tag)

Method Summary

Modifier and TypeMethod and Description
public byte[]
membershipMac(MlsCipherSuite suite, Secret membershipKey, GroupContext context)

public static PublicMessage
protect(AuthenticatedContent authContent, MlsCipherSuite suite, byte[] membershipKeyBytes, byte[] groupContextBytes)

public AuthenticatedContent
unprotect(MlsCipherSuite suite, Secret membership_key, GroupContext context)

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

authback to summary
pack-priv FramedContentAuthData auth
contentback to summary
pack-priv FramedContent content
membership_tagback to summary
pack-priv byte[] membership_tag

Constructor Detail

PublicMessageback to summary
public PublicMessage(MLSInputStream stream) throws IOException
Annotations
@SuppressWarnings:unused
PublicMessageback to summary
public PublicMessage(FramedContent content, FramedContentAuthData auth, byte[] membership_tag)

Method Detail

membershipMacback to summary
public byte[] membershipMac(MlsCipherSuite suite, Secret membershipKey, GroupContext context) throws IOException
protectback to summary
public static PublicMessage protect(AuthenticatedContent authContent, MlsCipherSuite suite, byte[] membershipKeyBytes, byte[] groupContextBytes) throws IOException
unprotectback to summary
public AuthenticatedContent unprotect(MlsCipherSuite suite, Secret membership_key, GroupContext context) throws Exception
writeToback to summary
public void writeTo(MLSOutputStream stream) throws IOException

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

Annotations
@Override