温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/bun/TLSSocket/exportKeyingMaterial
点击访问原文链接

TLSSocket.exportKeyingMaterial method | Bun module | Bun

TLSSocket.exportKeyingMaterial method | Bun module | BunBuildDocsReferenceGuidesBlogDiscord/Bun/TLSSocket/exportKeyingMaterialMexportKeyingMaterial

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/Bun/TLSSocket/exportKeyingMaterialMexportKeyingMaterial

method

TLSSocket.exportKeyingMaterial ```" data-algolia-static="false" data-algolia-merged="false" data-type="Method">exportKeyingMaterial(length: number,label: string,context: Buffer): Buffer;

Keying material is used for validations to prevent different kind of attacks in network protocols, for example in the specifications of IEEE 802.1X.

Example

const keyingMaterial = socket.exportKeyingMaterial(
128,
'client finished');

/*
Example return value of keyingMaterial:

12 5a 33 b8 b5 25 df 7b 37 9f e0 e2 4f b8 67 83 a3 2f cd 5d 41 42 4c 91
74 ef 2c ... 78 more bytes>

@param length

number of bytes to retrieve from keying material

@param label@param context

Optionally provide a context.

@returns

requested bytes of the keying material

exportKeyingMaterial(length: number,label: string,context?: string | BufferSource): void;

Exports the keying material of the socket.

@param length

The length of the keying material to export.

@param label

The label of the keying material to export.

@param context

The context of the keying material to export.

Referenced typestype BufferSource = NodeJS.TypedArrayArrayBufferLike> | DataViewArrayBufferLike> | ArrayBufferLike

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

TLSSocket.exportKeyingMaterial method | Bun module | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for method bun.TLSSocket.exportKeyingMaterial | Bun