Class TreeKEMPrivateKey
java.lang.Object
org.bouncycastle.mls.TreeKEM.TreeKEMPrivateKey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanconsistent(TreeKEMPublicKey other) copy()static TreeKEMPrivateKeycreate(TreeKEMPublicKey pub, LeafIndex from, Secret leafSecret) voiddecap(LeafIndex from, TreeKEMPublicKey pub, byte[] context, UpdatePath path, List<LeafIndex> except) dump()voidinsertPathSecret(NodeIndex index, Secret secret) voidinsertPrivateKey(NodeIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair) static TreeKEMPrivateKeyjoiner(TreeKEMPublicKey pub, LeafIndex index, org.bouncycastle.crypto.AsymmetricCipherKeyPair leafPriv, NodeIndex intersect, Secret pathSecret) voidsetLeafKey(byte[] leafSkBytes) protected org.bouncycastle.crypto.AsymmetricCipherKeyPairsetPrivateKey(NodeIndex n, boolean isConst) static TreeKEMPrivateKeysolo(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
-