crypto_box_beforenm

Function crypto_box_beforenm() computes a shared secret 's' from public key 'pk' and secret key 'sk'.

void
crypto_box_beforenm
()
(
ubyte[] skey
,
const(ubyte)[] pk
,
const(ubyte)[] sk
)

Parameters

skey ubyte[]

slice to put secret into

pk const(ubyte)[]

public

sk const(ubyte)[]

secret

Return Value

Type: void

generated secret

Meta