Package org.bouncycastle.mls.TreeKEM
Class LeafNode
java.lang.Object
org.bouncycastle.mls.TreeKEM.LeafNode
- All Implemented Interfaces:
MLSInputStream.Readable
,MLSOutputStream.Writable
-
Constructor Summary
ConstructorsConstructorDescriptionLeafNode()
LeafNode
(MLSInputStream stream) LeafNode
(MlsCipherSuite suite, byte[] encryption_key, byte[] signature_key, Credential credential, Capabilities capabilities, LifeTime lifeTime, List<Extension> extensions, byte[] sigSk) -
Method Summary
Modifier and TypeMethodDescriptioncopy
(byte[] encKeyIn) copyWithOptions
(byte[] encKeyIn, Group.LeafNodeOptions options) boolean
forCommit
(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, byte[] parentHash, Group.LeafNodeOptions options, byte[] sigPriv) forUpdate
(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, Group.LeafNodeOptions options, byte[] sigPriv) byte[]
byte[]
getSuite()
byte[]
toBeSigned
(byte[] groupId, int leafIndex) boolean
verify
(MlsCipherSuite suite, byte[] tbs) boolean
verifyExtensionSupport
(List<Extension> extensions) boolean
void
writeTo
(MLSOutputStream stream)
-
Constructor Details
-
LeafNode
public LeafNode(MlsCipherSuite suite, byte[] encryption_key, byte[] signature_key, Credential credential, Capabilities capabilities, LifeTime lifeTime, List<Extension> extensions, byte[] sigSk) throws Exception - Throws:
Exception
-
LeafNode
public LeafNode() -
LeafNode
- Throws:
IOException
-
-
Method Details
-
getCapabilities
-
getCredentialType
-
getSuite
-
getLifeTime
-
getEncryptionKey
public byte[] getEncryptionKey() -
getSignatureKey
public byte[] getSignatureKey() -
getExtensions
-
writeTo
- Specified by:
writeTo
in interfaceMLSOutputStream.Writable
- Throws:
IOException
-
getSource
-
getCredential
-
toBeSigned
- Throws:
IOException
-
verifyExtensionSupport
-
verifyLifetime
public boolean verifyLifetime() -
verify
- Throws:
IOException
-
forCommit
public LeafNode forCommit(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, byte[] parentHash, Group.LeafNodeOptions options, byte[] sigPriv) throws Exception - Throws:
Exception
-
forUpdate
public LeafNode forUpdate(MlsCipherSuite suite, byte[] groupId, LeafIndex leafIndex, byte[] encKeyIn, Group.LeafNodeOptions options, byte[] sigPriv) throws Exception - Throws:
Exception
-
copyWithOptions
-
copy
-
equals
-