Updated on 2026-08-14
This commit is contained in:
commit
5e7300987c
243 changed files with 28116 additions and 0 deletions
39
app/src/main/java/com/tangem/wallet/Keccak256.java
Normal file
39
app/src/main/java/com/tangem/wallet/Keccak256.java
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
package com.tangem.wallet;
|
||||
|
||||
/**
|
||||
* Created by Ilia on 18.12.2017.
|
||||
*/
|
||||
|
||||
public class Keccak256 extends KeccakCore {
|
||||
|
||||
/**
|
||||
* Create the engine.
|
||||
*/
|
||||
public Keccak256()
|
||||
{
|
||||
super("eth-keccak-256");
|
||||
}
|
||||
|
||||
public Digest copy()
|
||||
{
|
||||
return copyState(new Keccak256());
|
||||
}
|
||||
|
||||
public int engineGetDigestLength()
|
||||
{
|
||||
return 32;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected byte[] engineDigest() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void engineUpdate(byte arg0) {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void engineUpdate(byte[] arg0, int arg1, int arg2) {
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue