public class BCHMacEngine extends BCMacEngine
Mac
实现摘要Constructor and Description |
---|
BCHMacEngine(org.bouncycastle.crypto.Digest digest,
byte[] key)
构造
|
BCHMacEngine(org.bouncycastle.crypto.Digest digest,
byte[] key,
byte[] iv)
构造
|
BCHMacEngine(org.bouncycastle.crypto.Digest digest,
org.bouncycastle.crypto.CipherParameters params)
构造
|
BCHMacEngine(org.bouncycastle.crypto.macs.HMac mac,
org.bouncycastle.crypto.CipherParameters params)
构造
|
Modifier and Type | Method and Description |
---|---|
BCHMacEngine |
init(org.bouncycastle.crypto.Digest digest,
org.bouncycastle.crypto.CipherParameters params)
初始化
|
doFinal, getAlgorithm, getMac, getMacLength, init, reset, update
public BCHMacEngine(org.bouncycastle.crypto.Digest digest, byte[] key, byte[] iv)
digest
- 摘要算法,为Digest
的接口实现key
- 密钥iv
- 加盐public BCHMacEngine(org.bouncycastle.crypto.Digest digest, byte[] key)
digest
- 摘要算法,为Digest
的接口实现key
- 密钥public BCHMacEngine(org.bouncycastle.crypto.Digest digest, org.bouncycastle.crypto.CipherParameters params)
digest
- 摘要算法params
- 参数,例如密钥可以用KeyParameter
public BCHMacEngine(org.bouncycastle.crypto.macs.HMac mac, org.bouncycastle.crypto.CipherParameters params)
mac
- HMac
params
- 参数,例如密钥可以用KeyParameter
public BCHMacEngine init(org.bouncycastle.crypto.Digest digest, org.bouncycastle.crypto.CipherParameters params)
digest
- 摘要算法params
- 参数,例如密钥可以用KeyParameter
BCMacEngine.init(Mac, CipherParameters)
Copyright © 2024. All rights reserved.