Package org.bouncycastle.mls.codec
Class Welcome
java.lang.Object
org.bouncycastle.mls.codec.Welcome
- All Implemented Interfaces:
MLSInputStream.Readable
,MLSOutputStream.Writable
-
Constructor Summary
ConstructorsConstructorDescriptionWelcome
(MlsCipherSuite suite, byte[] joinerSecret, List<KeyScheduleEpoch.PSKWithSecret> psks, byte[] groupInfo) -
Method Summary
Modifier and TypeMethodDescriptiondecrypt
(byte[] joinerSecret, List<KeyScheduleEpoch.PSKWithSecret> psks) decryptSecrets
(int kpIndex, byte[] initPrivKey) void
encrypt
(KeyPackage kp, Secret pathSecret) int
find
(KeyPackage kp) getSuite()
void
writeTo
(MLSOutputStream stream)
-
Constructor Details
-
Welcome
public Welcome(MlsCipherSuite suite, byte[] joinerSecret, List<KeyScheduleEpoch.PSKWithSecret> psks, byte[] groupInfo) throws IOException, org.bouncycastle.crypto.InvalidCipherTextException - Throws:
IOException
org.bouncycastle.crypto.InvalidCipherTextException
-
-
Method Details
-
getSuite
-
find
- Throws:
IOException
-
encrypt
public void encrypt(KeyPackage kp, Secret pathSecret) throws IOException, org.bouncycastle.crypto.InvalidCipherTextException - Throws:
IOException
org.bouncycastle.crypto.InvalidCipherTextException
-
decrypt
public GroupInfo decrypt(byte[] joinerSecret, List<KeyScheduleEpoch.PSKWithSecret> psks) throws IOException, org.bouncycastle.crypto.InvalidCipherTextException - Throws:
IOException
org.bouncycastle.crypto.InvalidCipherTextException
-
decryptSecrets
public GroupSecrets decryptSecrets(int kpIndex, byte[] initPrivKey) throws org.bouncycastle.crypto.InvalidCipherTextException, IOException - Throws:
org.bouncycastle.crypto.InvalidCipherTextException
IOException
-
writeTo
- Specified by:
writeTo
in interfaceMLSOutputStream.Writable
- Throws:
IOException
-