Skip to content

Latest commit

 

History

History
133 lines (73 loc) · 2.31 KB

rlpx_mac.mac.md

File metadata and controls

133 lines (73 loc) · 2.31 KB

@ethereumjs/devp2p / rlpx/mac / MAC

Class: MAC

rlpx/mac.MAC

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new MAC(secret)

Parameters

Name Type
secret Buffer

Defined in

packages/devp2p/src/rlpx/mac.ts:7

Properties

_hash

_hash: any

Defined in

packages/devp2p/src/rlpx/mac.ts:6


_secret

_secret: Buffer

Defined in

packages/devp2p/src/rlpx/mac.ts:7

Methods

digest

digest(): any

Returns

any

Defined in

packages/devp2p/src/rlpx/mac.ts:31


update

update(data): void

Parameters

Name Type
data string | Buffer

Returns

void

Defined in

packages/devp2p/src/rlpx/mac.ts:13


updateBody

updateBody(data): void

Parameters

Name Type
data string | Buffer

Returns

void

Defined in

packages/devp2p/src/rlpx/mac.ts:23


updateHeader

updateHeader(data): void

Parameters

Name Type
data string | Buffer

Returns

void

Defined in

packages/devp2p/src/rlpx/mac.ts:17