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) voidencrypt(KeyPackage kp, Secret pathSecret) intfind(KeyPackage kp) getSuite()voidwriteTo(MLSOutputStream stream)
-
Constructor Details
-
Welcome
public Welcome(MlsCipherSuite suite, byte[] joinerSecret, List<KeyScheduleEpoch.PSKWithSecret> psks, byte[] groupInfo) throws IOException, org.bouncycastle.crypto.InvalidCipherTextException - Throws:
IOExceptionorg.bouncycastle.crypto.InvalidCipherTextException
-
-
Method Details
-
getSuite
-
find
- Throws:
IOException
-
encrypt
public void encrypt(KeyPackage kp, Secret pathSecret) throws IOException, org.bouncycastle.crypto.InvalidCipherTextException - Throws:
IOExceptionorg.bouncycastle.crypto.InvalidCipherTextException
-
decrypt
public GroupInfo decrypt(byte[] joinerSecret, List<KeyScheduleEpoch.PSKWithSecret> psks) throws IOException, org.bouncycastle.crypto.InvalidCipherTextException - Throws:
IOExceptionorg.bouncycastle.crypto.InvalidCipherTextException
-
decryptSecrets
public GroupSecrets decryptSecrets(int kpIndex, byte[] initPrivKey) throws org.bouncycastle.crypto.InvalidCipherTextException, IOException - Throws:
org.bouncycastle.crypto.InvalidCipherTextExceptionIOException
-
writeTo
- Specified by:
writeToin interfaceMLSOutputStream.Writable- Throws:
IOException
-