Package org.bouncycastle.mls.codec
Class AuthenticatedContent
java.lang.Object
org.bouncycastle.mls.codec.AuthenticatedContent
- All Implemented Interfaces:
MLSInputStream.Readable
,MLSOutputStream.Writable
public class AuthenticatedContent
extends Object
implements MLSInputStream.Readable, MLSOutputStream.Writable
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatedContent
(MLSInputStream stream) AuthenticatedContent
(WireFormat wireFormat, FramedContent content, org.bouncycastle.mls.codec.FramedContentAuthData auth) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
byte[]
void
setConfirmationTag
(byte[] tag) static AuthenticatedContent
sign
(WireFormat wireFormat, FramedContent content, MlsCipherSuite suite, byte[] sigPriv, byte[] groupContext) boolean
verify
(MlsCipherSuite suite, byte[] sigPub, byte[] context) void
writeTo
(MLSOutputStream stream)
-
Constructor Details
-
AuthenticatedContent
public AuthenticatedContent(WireFormat wireFormat, FramedContent content, org.bouncycastle.mls.codec.FramedContentAuthData auth) throws Exception - Throws:
Exception
-
AuthenticatedContent
- Throws:
IOException
-
-
Method Details
-
getContent
-
getWireFormat
-
setConfirmationTag
public void setConfirmationTag(byte[] tag) -
getConfirmationTag
public byte[] getConfirmationTag() -
getConfirmedTranscriptHashInput
- Throws:
IOException
-
getInterimTranscriptHashInput
- Throws:
IOException
-
sign
public static AuthenticatedContent sign(WireFormat wireFormat, FramedContent content, MlsCipherSuite suite, byte[] sigPriv, byte[] groupContext) throws Exception - Throws:
Exception
-
verify
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceMLSOutputStream.Writable
- Throws:
IOException
-