Class ClientZkGroupCipher
- java.lang.Object
-
- org.signal.libsignal.zkgroup.groups.ClientZkGroupCipher
-
public class ClientZkGroupCipher extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ClientZkGroupCipher(GroupSecretParams groupSecretParams)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]decryptBlob(byte[] blobCiphertext)ProfileKeydecryptProfileKey(ProfileKeyCiphertext profileKeyCiphertext, java.util.UUID uuid)java.util.UUIDdecryptUuid(UuidCiphertext uuidCiphertext)byte[]encryptBlob(byte[] plaintext)byte[]encryptBlob(java.security.SecureRandom secureRandom, byte[] plaintext)ProfileKeyCiphertextencryptProfileKey(ProfileKey profileKey, java.util.UUID uuid)UuidCiphertextencryptUuid(java.util.UUID uuid)
-
-
-
Constructor Detail
-
ClientZkGroupCipher
public ClientZkGroupCipher(GroupSecretParams groupSecretParams)
-
-
Method Detail
-
encryptUuid
public UuidCiphertext encryptUuid(java.util.UUID uuid)
-
decryptUuid
public java.util.UUID decryptUuid(UuidCiphertext uuidCiphertext) throws VerificationFailedException
- Throws:
VerificationFailedException
-
encryptProfileKey
public ProfileKeyCiphertext encryptProfileKey(ProfileKey profileKey, java.util.UUID uuid)
-
decryptProfileKey
public ProfileKey decryptProfileKey(ProfileKeyCiphertext profileKeyCiphertext, java.util.UUID uuid) throws VerificationFailedException
- Throws:
VerificationFailedException
-
encryptBlob
public byte[] encryptBlob(byte[] plaintext) throws VerificationFailedException- Throws:
VerificationFailedException
-
encryptBlob
public byte[] encryptBlob(java.security.SecureRandom secureRandom, byte[] plaintext) throws VerificationFailedException- Throws:
VerificationFailedException
-
decryptBlob
public byte[] decryptBlob(byte[] blobCiphertext) throws VerificationFailedException- Throws:
VerificationFailedException
-
-