public class AlgorithmHandler extends Object
| Constructor and Description |
|---|
AlgorithmHandler(CryptoAlgorithm algorithm,
SecretKey keySpec,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
cipherData(byte[] iv,
byte[] contentAad,
byte[] content,
int off,
int len)
使用
Cipher 处理数据 |
public AlgorithmHandler(CryptoAlgorithm algorithm, SecretKey keySpec, int mode)
public byte[] cipherData(byte[] iv,
byte[] contentAad,
byte[] content,
int off,
int len)
Cipher 处理数据iv - 随机向量contentAad - 身份验证数据content - 需要处理的数据off - 需要处理数据的偏移量len - 需要处理数据的长度Copyright © 2020. All rights reserved.