Constructors
constructor
- new SIV(cipher: BlockCipherContructor, key: Uint8Array): SIV
Parameters
cipher: BlockCipherContructor
key: Uint8Array
Returns SIV
Properties
tagLength
tagLength: number
Methods
open
- open(associatedData: Uint8Array[], sealed: Uint8Array, dst?: Uint8Array): null | Uint8Array
Parameters
associatedData: Uint8Array[]
sealed: Uint8Array
Optional dst: Uint8Array
Returns null | Uint8Array
seal
- seal(associatedData: Uint8Array[], plaintext: Uint8Array, dst?: Uint8Array): Uint8Array
Parameters
associatedData: Uint8Array[]
plaintext: Uint8Array
Optional dst: Uint8Array
Returns Uint8Array