| Modifier and Type | Field and Description |
|---|---|
| private final Algorithm | |
| private final MACOperatorFactory | |
| private final int | |
| private OutputMACCalculator | |
| private UpdateOutputStream | |
| private final MacParametersCreator |
| Access | Constructor and Description |
|---|---|
| protected | BaseMac(Algorithm algorithm, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator)
|
| protected | BaseMac(Parameters parameters, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator)
|
| protected | BaseMac(Parameters parameters, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator, int keySizeInBits)
|
| protected | BaseMac(Algorithm algorithm, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator, int keySizeInBits)
|
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | engineDoFinal()
Implements abstract javax. |
| protected int | engineGetMacLength()
Implements abstract javax. |
| protected void | engineInit(Key
the (secret) key. key, AlgorithmParameterSpec the algorithm parameters. params)Implements abstract javax. |
| protected void | engineReset()
Implements abstract javax. |
| protected void | engineUpdate(byte
the input byte to be processed. input)Implements abstract javax. |
| protected void | engineUpdate(byte[]
the input buffer. input, int the offset in offset, int input where the input starts.the number of bytes to process. len)Implements abstract javax. len bytes in input,
starting at offset inclusive.
|
| algorithm | back to summary |
|---|---|
| private final Algorithm algorithm | |
| factory | back to summary |
|---|---|
| private final MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory | |
| keySizeInBits | back to summary |
|---|---|
| private final int keySizeInBits | |
| macCalculator | back to summary |
|---|---|
| private OutputMACCalculator<T> macCalculator | |
| macStream | back to summary |
|---|---|
| private UpdateOutputStream macStream | |
| parametersCreator | back to summary |
|---|---|
| private final MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator | |
| BaseMac | back to summary |
|---|---|
| protected BaseMac(Algorithm algorithm, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator) | |
| BaseMac | back to summary |
|---|---|
| protected BaseMac(Parameters parameters, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator) | |
| BaseMac | back to summary |
|---|---|
| protected BaseMac(Parameters parameters, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator, int keySizeInBits) | |
| BaseMac | back to summary |
|---|---|
| protected BaseMac(Algorithm algorithm, MACOperatorFactory<T extends AuthenticationParameters<T extends Parameters>> factory, MacParametersCreator<T extends AuthenticationParameters<T extends Parameters>> parametersCreator, int keySizeInBits) | |
| engineDoFinal | back to summary |
|---|---|
| protected byte[] engineDoFinal() Implements abstract javax. Doc from javax. Completes the MAC computation and resets the MAC for further use, maintaining the secret key that the MAC was initialized with.
| |
| engineGetMacLength | back to summary |
|---|---|
| protected int engineGetMacLength() Implements abstract javax. Doc from javax. Returns the length of the MAC in bytes.
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract javax. Doc from javax. Initializes the MAC with the given (secret) key and algorithm parameters.
| |
| engineReset | back to summary |
|---|---|
| protected void engineReset() Implements abstract javax. Doc from javax. Resets the MAC for further use, maintaining the secret key that the MAC was initialized with. | |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte input) Implements abstract javax. Doc from javax. Processes the given byte.
| |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(byte[] input, int offset, int len) Implements abstract javax. Doc from javax. Processes the first
| |