com.eshore.tools.pbkdf2.Hash Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-suite Show documentation
Show all versions of proxy-suite Show documentation
a Intranet-through project
package com.eshore.tools.pbkdf2;
/**
* 散列接口
* @author eshore
*
*/
public interface Hash {
/**
* 重置
*/
void reset();
/**
* 更新散列
* @param bytes
*/
void write(byte[] bytes);
/**
* 更新散列
* @param bytes inputdata
* @param off start
* @param len len
*/
void write(byte[] bytes ,int off,int len);
/**
* 计算散列结果
* @param bytes
* @return result
*/
byte[] sum(byte[] bytes);
int size();
/**
* 分割的块大小
* @return block size
*/
int blockSize();
/**
* 获取一个新的实例
* 避免工厂模式构建过多的工厂,直接从实例中创建
* @return instance
*/
Hash getHash();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy