~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/golang.org/x/crypto/nacl/box/box.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
message, etc. Nonces are long enough that randomly generated nonces have
14
14
negligible risk of collision.
15
15
 
16
 
This package is interoperable with NaCl: http://nacl.cr.yp.to/box.html.
 
16
This package is interoperable with NaCl: https://nacl.cr.yp.to/box.html.
17
17
*/
18
18
package box // import "golang.org/x/crypto/nacl/box"
19
19
 
20
20
import (
 
21
        "io"
 
22
 
21
23
        "golang.org/x/crypto/curve25519"
22
24
        "golang.org/x/crypto/nacl/secretbox"
23
25
        "golang.org/x/crypto/salsa20/salsa"
24
 
        "io"
25
26
)
26
27
 
27
28
// Overhead is the number of bytes of overhead when boxing a message.