public class VirgilTinyCipher extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
VirgilTinyCipher.PackageSize |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
swigCMemOwn |
| Modifier | Constructor and Description |
|---|---|
|
VirgilTinyCipher() |
|
VirgilTinyCipher(long packageSize) |
protected |
VirgilTinyCipher(long cPtr,
boolean cMemoryOwn) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPackage(byte[] arg0) |
void |
close() |
byte[] |
decrypt(byte[] recipientPrivateKey) |
byte[] |
decrypt(byte[] recipientPrivateKey,
byte[] recipientPrivateKeyPassword) |
void |
delete() |
void |
encrypt(byte[] data,
byte[] recipientPublicKey) |
void |
encryptAndSign(byte[] data,
byte[] recipientPublicKey,
byte[] senderPrivateKey) |
void |
encryptAndSign(byte[] data,
byte[] recipientPublicKey,
byte[] senderPrivateKey,
byte[] senderPrivateKeyPassword) |
protected void |
finalize() |
protected static long |
getCPtr(VirgilTinyCipher obj) |
byte[] |
getPackage(long index) |
long |
getPackageCount() |
boolean |
isPackagesAccumulated() |
void |
reset() |
byte[] |
verifyAndDecrypt(byte[] senderPublicKey,
byte[] recipientPrivateKey) |
byte[] |
verifyAndDecrypt(byte[] senderPublicKey,
byte[] recipientPrivateKey,
byte[] recipientPrivateKeyPassword) |
protected VirgilTinyCipher(long cPtr,
boolean cMemoryOwn)
public VirgilTinyCipher(long packageSize)
public VirgilTinyCipher()
protected static long getCPtr(VirgilTinyCipher obj)
public void delete()
public void close()
close in interface AutoCloseablepublic void reset()
public void encrypt(byte[] data,
byte[] recipientPublicKey)
public void encryptAndSign(byte[] data,
byte[] recipientPublicKey,
byte[] senderPrivateKey,
byte[] senderPrivateKeyPassword)
public void encryptAndSign(byte[] data,
byte[] recipientPublicKey,
byte[] senderPrivateKey)
public long getPackageCount()
public byte[] getPackage(long index)
public void addPackage(byte[] arg0)
public boolean isPackagesAccumulated()
public byte[] decrypt(byte[] recipientPrivateKey,
byte[] recipientPrivateKeyPassword)
public byte[] decrypt(byte[] recipientPrivateKey)
public byte[] verifyAndDecrypt(byte[] senderPublicKey,
byte[] recipientPrivateKey,
byte[] recipientPrivateKeyPassword)
public byte[] verifyAndDecrypt(byte[] senderPublicKey,
byte[] recipientPrivateKey)
Copyright © 2016. All rights reserved.