Package ch.threema.apitool.results
Class EncryptResult
java.lang.Object
ch.threema.apitool.results.EncryptResult
Result of a data encryption
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EncryptResult
public EncryptResult(byte[] result, byte[] secret, byte[] nonce)
-
-
Method Details
-
getResult
public byte[] getResult()- Returns:
- the encrypted data
-
getSize
public int getSize()- Returns:
- the size (in bytes) of the encrypted data
-
getNonce
public byte[] getNonce()- Returns:
- the nonce that was used for encryption
-
getSecret
public byte[] getSecret()- Returns:
- the secret that was used for encryption (only for symmetric encryption, e.g. files)
-