public class CBCBlockCipherMacEngine extends BCMacEngine
CBCBlockCipherMac
实现的MAC算法,使用CBC Block方式Constructor and Description |
---|
CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher cipher,
int macSizeInBits,
byte[] key)
构造
|
CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher digest,
int macSizeInBits,
byte[] key,
byte[] iv)
构造
|
CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher cipher,
int macSizeInBits,
org.bouncycastle.crypto.CipherParameters params)
构造
|
CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher cipher,
int macSizeInBits,
Key key)
构造
|
CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher digest,
int macSizeInBits,
Key key,
byte[] iv)
构造
|
CBCBlockCipherMacEngine(org.bouncycastle.crypto.macs.CBCBlockCipherMac mac,
org.bouncycastle.crypto.CipherParameters params)
构造
|
Modifier and Type | Method and Description |
---|---|
CBCBlockCipherMacEngine |
init(org.bouncycastle.crypto.BlockCipher cipher,
org.bouncycastle.crypto.CipherParameters params)
初始化
|
doFinal, getAlgorithm, getMac, getMacLength, init, reset, update
public CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher digest, int macSizeInBits, Key key, byte[] iv)
digest
- 摘要算法,为Digest
的接口实现macSizeInBits
- mac结果的bits长度,必须为8的倍数key
- 密钥iv
- 加盐public CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher digest, int macSizeInBits, byte[] key, byte[] iv)
digest
- 摘要算法,为Digest
的接口实现macSizeInBits
- mac结果的bits长度,必须为8的倍数key
- 密钥iv
- 加盐public CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits, Key key)
cipher
- 算法,为BlockCipher
的接口实现macSizeInBits
- mac结果的bits长度,必须为8的倍数key
- 密钥public CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits, byte[] key)
cipher
- 算法,为BlockCipher
的接口实现macSizeInBits
- mac结果的bits长度,必须为8的倍数key
- 密钥public CBCBlockCipherMacEngine(org.bouncycastle.crypto.BlockCipher cipher, int macSizeInBits, org.bouncycastle.crypto.CipherParameters params)
cipher
- 算法,为BlockCipher
的接口实现macSizeInBits
- mac结果的bits长度,必须为8的倍数params
- 参数,例如密钥可以用KeyParameter
public CBCBlockCipherMacEngine(org.bouncycastle.crypto.macs.CBCBlockCipherMac mac, org.bouncycastle.crypto.CipherParameters params)
mac
- CBCBlockCipherMac
params
- 参数,例如密钥可以用KeyParameter
public CBCBlockCipherMacEngine init(org.bouncycastle.crypto.BlockCipher cipher, org.bouncycastle.crypto.CipherParameters params)
cipher
- BlockCipher
params
- 参数,例如密钥可以用KeyParameter
BCMacEngine.init(Mac, CipherParameters)
Copyright © 2024. All rights reserved.