Package org.bouncycastle.mls.TreeKEM
Class TreeKEMPublicKey
java.lang.Object
org.bouncycastle.mls.TreeKEM.TreeKEMPublicKey
- All Implemented Interfaces:
MLSInputStream.Readable
,MLSOutputStream.Writable
public class TreeKEMPublicKey
extends Object
implements MLSInputStream.Readable, MLSOutputStream.Writable
-
Constructor Summary
ConstructorsConstructorDescriptionTreeKEMPublicKey
(MLSInputStream stream) TreeKEMPublicKey
(MlsCipherSuite suite) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static TreeKEMPublicKey
clone
(TreeKEMPublicKey other) dump()
encap
(TreeKEMPrivateKey priv, byte[] context, List<LeafIndex> except) int
protected org.bouncycastle.mls.TreeKEM.FilteredDirectPath
getFilteredCommonDirectPath
(LeafIndex leaf1, LeafIndex leaf2) protected org.bouncycastle.mls.TreeKEM.FilteredDirectPath
getFilteredDirectPath
(NodeIndex index) byte[]
getLeafNode
(LeafIndex index) byte[]
getSize()
getSuite()
boolean
void
merge
(LeafIndex from, UpdatePath path) void
void
setSuite
(MlsCipherSuite suite) void
truncate()
update
(LeafIndex from, Secret leafSecret, byte[] groupId, byte[] sigPriv, Group.LeafNodeOptions options) void
updateLeaf
(LeafIndex index, LeafNode leaf) boolean
boolean
verifyParentHash
(LeafIndex from, UpdatePath path) void
writeTo
(MLSOutputStream stream)
-
Constructor Details
-
TreeKEMPublicKey
- Throws:
IOException
-
TreeKEMPublicKey
- Throws:
IOException
-
-
Method Details
-
getSuite
-
getSize
-
clone
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceMLSOutputStream.Writable
- Throws:
IOException
-
setSuite
-
dumpHashes
-
dump
-
update
public TreeKEMPrivateKey update(LeafIndex from, Secret leafSecret, byte[] groupId, byte[] sigPriv, Group.LeafNodeOptions options) throws Exception - Throws:
Exception
-
encap
public UpdatePath encap(TreeKEMPrivateKey priv, byte[] context, List<LeafIndex> except) throws Exception - Throws:
Exception
-
getRootHash
- Throws:
Exception
-
merge
- Throws:
Exception
-
find
-
hasLeaf
-
getFilteredCommonDirectPath
protected org.bouncycastle.mls.TreeKEM.FilteredDirectPath getFilteredCommonDirectPath(LeafIndex leaf1, LeafIndex leaf2) throws Exception - Throws:
Exception
-
getFilteredDirectPath
protected org.bouncycastle.mls.TreeKEM.FilteredDirectPath getFilteredDirectPath(NodeIndex index) throws Exception - Throws:
Exception
-
getLeafNode
-
resolve
-
allocateLeaf
-
addLeaf
-
updateLeaf
-
blankPath
-
truncate
public void truncate() -
setHashAll
- Throws:
IOException
-
verifyParentHash
- Throws:
Exception
-
verifyParentHash
- Throws:
IOException
-
getHash
- Throws:
IOException
-