public class VirgilHash extends VirgilAsn1Compatible implements AutoCloseable
swigCMemOwn| Modifier | Constructor and Description |
|---|---|
|
VirgilHash() |
protected |
VirgilHash(long cPtr,
boolean cMemoryOwn) |
|
VirgilHash(VirgilHash other) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
delete() |
protected void |
finalize() |
byte[] |
finish() |
protected static long |
getCPtr(VirgilHash obj) |
byte[] |
hash(byte[] bytes) |
byte[] |
hmac(byte[] key,
byte[] bytes) |
byte[] |
hmacFinish() |
void |
hmacReset() |
void |
hmacStart(byte[] key) |
void |
hmacUpdate(byte[] bytes) |
static VirgilHash |
md5() |
String |
name() |
static VirgilHash |
sha256() |
static VirgilHash |
sha384() |
static VirgilHash |
sha512() |
void |
start() |
int |
type() |
void |
update(byte[] bytes) |
static VirgilHash |
withName(byte[] name) |
fromAsn1, getCPtr, toAsn1protected VirgilHash(long cPtr,
boolean cMemoryOwn)
public VirgilHash()
public VirgilHash(VirgilHash other)
protected static long getCPtr(VirgilHash obj)
protected void finalize()
finalize in class VirgilAsn1Compatiblepublic void delete()
delete in class VirgilAsn1Compatiblepublic void close()
close in interface AutoCloseableclose in class VirgilAsn1Compatiblepublic static VirgilHash md5()
public static VirgilHash sha256()
public static VirgilHash sha384()
public static VirgilHash sha512()
public static VirgilHash withName(byte[] name)
public String name()
public int type()
public byte[] hash(byte[] bytes)
public void start()
public void update(byte[] bytes)
public byte[] finish()
public byte[] hmac(byte[] key,
byte[] bytes)
public void hmacStart(byte[] key)
public void hmacReset()
public void hmacUpdate(byte[] bytes)
public byte[] hmacFinish()
Copyright © 2016. All rights reserved.