Constructors
constructor
- new BBDT16MacParams(params, label?): BBDT16MacParams
Parameters
- params: Bddt16MacParams
Optional
label: Uint8Array
Properties
Optional
label
label?: Uint8Array
value
value: Bddt16MacParams
Methods
adapt
- adapt(newMsgCount): this
Returns this
commitToMessages
- commitToMessages(messageToCommit, encodeMessages, blinding?): [Uint8Array, Uint8Array]
Parameters
- messageToCommit: Map<number, Uint8Array>
- encodeMessages: boolean
- blinding: Uint8Array = ...
Returns [Uint8Array, Uint8Array]
commitToMessagesConstantTime
- commitToMessagesConstantTime(messageToCommit, encodeMessages, blinding?): [Uint8Array, Uint8Array]
Parameters
- messageToCommit: Map<number, Uint8Array>
- encodeMessages: boolean
- blinding: Uint8Array = ...
Returns [Uint8Array, Uint8Array]
getParamsForIndices
- getParamsForIndices(indices): Uint8Array[]
Returns Uint8Array[]
isValid
- isValid(): boolean
Returns boolean
isValidIndex
- isValidIndex(index): boolean
Returns boolean
supportedMessageCount
- supportedMessageCount(): number
Returns number
toBytes
- toBytes(): Uint8Array
Returns Uint8Array
toJSON
- toJSON(): string
Returns string
Static
generate
- generate(numMessages, label?): BBDT16MacParams
Parameters
- numMessages: number
Optional
label: Uint8Array
Static
generateAsBytes
- generateAsBytes(numMessages, label?): Uint8Array
Parameters
- numMessages: number
Optional
label: Uint8Array
Returns Uint8Array
Static
getMacParamsForMsgStructure
Static
getMacParamsOfRequiredSize
Static
valueFromBytes
- valueFromBytes(bytes): Bddt16MacParams
Returns Bddt16MacParams
BBDT16 MAC parameters.