public class TlsMac extends Object
| 限定符 | 构造器和说明 |
|---|---|
protected |
TlsMac(org.bouncycastle.crypto.Digest digest,
byte[] key_block,
int offset,
int len)
Generate a new instance of an TlsMac.
|
protected TlsMac(org.bouncycastle.crypto.Digest digest,
byte[] key_block,
int offset,
int len)
digest - The digest to use.key_block - A byte-array where the key for this mac is located.offset - The number of bytes to skip, before the key starts in the buffer.len - The length of the key.protected int getSize()
protected byte[] calculateMac(short type,
byte[] message,
int offset,
int len)
type - The message type of the message.message - A byte-buffer containing the message.offset - The number of bytes to skip, before the message starts.len - The length of the message.Copyright © 2016. All rights reserved.