Removed unused methods
This commit is contained in:
parent
c498bafaa1
commit
2684c7c915
|
@ -16,7 +16,6 @@
|
|||
package dorkbox.util.crypto;
|
||||
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
|
@ -298,16 +297,6 @@ public class Crypto {
|
|||
return digestBytes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Hash an input stream (auto-converts to an output stream first), based on the specified digest
|
||||
*/
|
||||
public static byte[] hashStream(Digest digest, ByteArrayOutputStream outputStream) throws IOException {
|
||||
ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
|
||||
|
||||
return hashStream(digest, inputStream);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Secure way to generate an AES key based on a password. Will '*' out the passed-in password
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue
Block a user