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

« back to all changes in this revision

Viewing changes to src/golang.org/x/crypto/scrypt/scrypt.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:
218
218
// For example, you can get a derived key for e.g. AES-256 (which needs a
219
219
// 32-byte key) by doing:
220
220
//
221
 
//      dk := scrypt.Key([]byte("some password"), salt, 16384, 8, 1, 32)
 
221
//      dk, err := scrypt.Key([]byte("some password"), salt, 16384, 8, 1, 32)
222
222
//
223
223
// The recommended parameters for interactive logins as of 2009 are N=16384,
224
224
// r=8, p=1. They should be increased as memory latency and CPU parallelism