Constructor and Description |
---|
BaseDigest(String algorithm,
int bsize)
Create a new digest using the given algorithm and block size.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
digest() |
int |
getBlockSize() |
void |
init() |
void |
update(byte[] foo,
int start,
int len) |
public BaseDigest(String algorithm, int bsize)
MessageDigest
object will be done in the init()
method.algorithm
- the JCE algorithm to use for this digestbsize
- the block size of this digestpublic int getBlockSize()
getBlockSize
in interface Digest
public void update(byte[] foo, int start, int len) throws Exception
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.