| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final MessageDigest | |
| private final byte[] | |
| private final byte[] | |
| private byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | SslMacCore(String digestAlgorithm, byte[] pad1, byte[] pad2)
Standard constructor, creates a new SslMacCore instance instantiating a MessageDigest of the specified name. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv byte[] | Returns: the Mac result.Completes the Mac computation and resets the Mac for further use, maintaining the secret key that the Mac was initialized with. |
| pack-priv int | |
| pack-priv void | init(Key
the secret key. key, AlgorithmParameterSpec the algorithm parameters. params)Initializes the Mac with the given secret key and algorithm parameters. |
| pack-priv void | reset()
Resets the Mac for further use, maintaining the secret key that the Mac was initialized with. |
| pack-priv void | |
| pack-priv void | update(byte[]
the input buffer. input, int the offset in offset, int input where the input starts.the number of bytes to process. len)Processes the first |
| pack-priv void |
| first | back to summary |
|---|---|
| private boolean first | |
| md | back to summary |
|---|---|
| private final MessageDigest md | |
| pad1 | back to summary |
|---|---|
| private final byte[] pad1 | |
| pad2 | back to summary |
|---|---|
| private final byte[] pad2 | |
| secret | back to summary |
|---|---|
| private byte[] secret | |
| SslMacCore | back to summary |
|---|---|
| pack-priv SslMacCore(String digestAlgorithm, byte[] pad1, byte[] pad2) throws NoSuchAlgorithmException Standard constructor, creates a new SslMacCore instance instantiating a MessageDigest of the specified name. | |
| doFinal | back to summary |
|---|---|
| pack-priv byte[] doFinal() Completes the Mac computation and resets the Mac for further use, maintaining the secret key that the Mac was initialized with.
| |
| getDigestLength | back to summary |
|---|---|
| pack-priv int getDigestLength() Returns the length of the Mac in bytes.
| |
| init | back to summary |
|---|---|
| pack-priv void init(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException Initializes the Mac with the given secret key and algorithm parameters.
| |
| reset | back to summary |
|---|---|
| pack-priv void reset() Resets the Mac for further use, maintaining the secret key that the Mac was initialized with. | |
| update | back to summary |
|---|---|
| pack-priv void update(byte input) Processes the given byte.
| |
| update | back to summary |
|---|---|
| pack-priv void update(byte[] input, int offset, int len) Processes the first
| |
| update | back to summary |
|---|---|
| pack-priv void update(ByteBuffer input) | |
| Modifier and Type | Field and Description |
|---|---|
| private final SslMacCore | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | engineDoFinal()
Implements abstract javax. Completes the MAC computation and resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
| protected int | engineGetMacLength()
Implements abstract javax. Returns the length of the MAC in bytes. |
| protected void | engineInit(Key key, AlgorithmParameterSpec params)
Implements abstract javax. Initializes the MAC with the given (secret) key and algorithm parameters. |
| protected void | engineReset()
Implements abstract javax. Resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
| protected void | engineUpdate(byte input)
Implements abstract javax. Processes the given byte. |
| protected void | engineUpdate(byte[] input, int offset, int len)
Implements abstract javax. Processes the first |
| protected void | engineUpdate(ByteBuffer input)
Overrides javax. Processes |
| core | back to summary |
|---|---|
| private final SslMacCore core | |
| md5Pad1 | back to summary |
|---|---|
| pack-priv static final byte[] md5Pad1 | |
| md5Pad2 | back to summary |
|---|---|
| pack-priv static final byte[] md5Pad2 | |
| SslMacMD5 | back to summary |
|---|---|
| public SslMacMD5() throws NoSuchAlgorithmException | |
| 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 | |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(ByteBuffer input) Overrides javax. Doc from javax. Processes Subclasses should consider overriding this method if they can process ByteBuffers more efficiently than byte arrays. | |
| Modifier and Type | Field and Description |
|---|---|
| private final SslMacCore | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected byte[] | engineDoFinal()
Implements abstract javax. Completes the MAC computation and resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
| protected int | engineGetMacLength()
Implements abstract javax. Returns the length of the MAC in bytes. |
| protected void | engineInit(Key key, AlgorithmParameterSpec params)
Implements abstract javax. Initializes the MAC with the given (secret) key and algorithm parameters. |
| protected void | engineReset()
Implements abstract javax. Resets the MAC for further use, maintaining the secret key that the MAC was initialized with. |
| protected void | engineUpdate(byte input)
Implements abstract javax. Processes the given byte. |
| protected void | engineUpdate(byte[] input, int offset, int len)
Implements abstract javax. Processes the first |
| protected void | engineUpdate(ByteBuffer input)
Overrides javax. Processes |
| core | back to summary |
|---|---|
| private final SslMacCore core | |
| shaPad1 | back to summary |
|---|---|
| pack-priv static final byte[] shaPad1 | |
| shaPad2 | back to summary |
|---|---|
| pack-priv static final byte[] shaPad2 | |
| SslMacSHA1 | back to summary |
|---|---|
| public SslMacSHA1() throws NoSuchAlgorithmException | |
| 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 | |
| engineUpdate | back to summary |
|---|---|
| protected void engineUpdate(ByteBuffer input) Overrides javax. Doc from javax. Processes Subclasses should consider overriding this method if they can process ByteBuffers more efficiently than byte arrays. | |