func NewWeakScrypt() *scrypt.Scrypt { s := scrypt.New() s.SaltLen = saltLen s.N = n s.R = r s.P = p return s }
func DefaultAESGCMSettings() *AESGCMSettings { return &AESGCMSettings{ KeyLen: aesGCMDefaultKeyLen, KeyDerivation: aesGCMDefaultKeyDerivation, PBKDF2: pbkdf2.New(), Scrypt: scrypt.New(), } }