Package org.bouncycastle.mls.TreeKEM
Class TreeKEMPrivateKey
java.lang.Object
org.bouncycastle.mls.TreeKEM.TreeKEMPrivateKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
consistent
(TreeKEMPublicKey other) copy()
static TreeKEMPrivateKey
create
(TreeKEMPublicKey pub, LeafIndex from, Secret leafSecret) void
decap
(LeafIndex from, TreeKEMPublicKey pub, byte[] context, UpdatePath path, List<LeafIndex> except) dump()
void
insertPathSecret
(NodeIndex index, Secret secret) void
insertPrivateKey
(NodeIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair) static TreeKEMPrivateKey
joiner
(TreeKEMPublicKey pub, LeafIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair leafPriv, NodeIndex intersect, Secret pathSecret) void
setLeafKey
(byte[] leafSkBytes) protected org.bouncycastle.crypto.AsymmetricCipherKeyPair
setPrivateKey
(NodeIndex n, boolean isConst) static TreeKEMPrivateKey
solo
(MlsCipherSuite suite, LeafIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair leafPriv) void
-
Constructor Details
-
TreeKEMPrivateKey
-
-
Method Details
-
getUpdateSecret
-
insertPathSecret
-
insertPrivateKey
public void insertPrivateKey(NodeIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair) -
copy
-
solo
public static TreeKEMPrivateKey solo(MlsCipherSuite suite, LeafIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair leafPriv) -
create
public static TreeKEMPrivateKey create(TreeKEMPublicKey pub, LeafIndex from, Secret leafSecret) throws Exception - Throws:
Exception
-
joiner
public static TreeKEMPrivateKey joiner(TreeKEMPublicKey pub, LeafIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair leafPriv, NodeIndex intersect, Secret pathSecret) throws Exception - Throws:
Exception
-
dump
- Throws:
IOException
-
truncate
-
setLeafKey
public void setLeafKey(byte[] leafSkBytes) -
decap
public void decap(LeafIndex from, TreeKEMPublicKey pub, byte[] context, UpdatePath path, List<LeafIndex> except) throws Exception - Throws:
Exception
-
consistent
- Throws:
IOException
-
setPrivateKey
protected org.bouncycastle.crypto.AsymmetricCipherKeyPair setPrivateKey(NodeIndex n, boolean isConst) throws IOException - Throws:
IOException
-