withSecureBufferSync()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / withSecureBufferSync
Function: withSecureBufferSync()
Section titled “Function: withSecureBufferSync()”withSecureBufferSync<
T>(createSecret,useSecret):T
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:3494
Synchronous version of withSecureBuffer
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”createSecret
Section titled “createSecret”() => Uint8Array
Function to create the secret buffer
useSecret
Section titled “useSecret”(secret) => T
Function that uses the secret (sync)
Returns
Section titled “Returns”T
The result of useSecret