Namespace: NaCl

Hacl~NaCl

Methods

(static) box_beforenm(pk, sk) → {uint32|buffer}

Parameters:
Name Type Description
pk buffer size 32
sk buffer size 32
Source:
Returns:
  • Type
    uint32
  • k - size 32
    Type
    buffer

(static) box_detached_afternm(m, n, k) → {uint32|buffer|buffer}

Parameters:
Name Type Description
m buffer size mlen
n buffer size 24
k buffer size 32
Source:
Returns:
  • Type
    uint32
  • c - size mlen
    Type
    buffer
  • tag - size 16
    Type
    buffer

(static) box_easy_afternm(m, n, k) → {uint32|buffer}

Parameters:
Name Type Description
m buffer size mlen
n buffer size 24
k buffer size 32
Source:
Returns:
  • Type
    uint32
  • c - size mlen+16
    Type
    buffer

(static) box_open_detached_afternm(c, tag, n, k) → {uint32|buffer}

Parameters:
Name Type Description
c buffer size mlen
tag buffer size 16
n buffer size 24
k buffer size 32
Source:
Returns:
  • Type
    uint32
  • m - size mlen
    Type
    buffer

(static) box_open_easy_afternm(c, n, k) → {uint32|buffer}

Parameters:
Name Type Description
c buffer size clen
n buffer size 24
k buffer size 32
Source:
Returns:
  • Type
    uint32
  • m - size clen-16
    Type
    buffer

(static) secretbox_easy(m, n, k) → {uint32|buffer}

Parameters:
Name Type Description
m buffer size mlen
n buffer size 24
k buffer size 32
Source:
Returns:
  • Type
    uint32
  • c - size mlen+16
    Type
    buffer

(static) secretbox_open_easy(c, n, k) → {uint32|buffer}

Parameters:
Name Type Description
c buffer size clen
n buffer size 24
k buffer size 32
Source:
Returns:
  • Type
    uint32
  • m - size clen-16
    Type
    buffer