Namespace: NaCl

Hacl~NaCl

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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