You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
377 B
Go

package argon2
// Algorithm
type Algorithm struct {
keyLen uint32
memory uint32
saltLen uint32
threads uint8
time uint32
}
// New
func New(keyLen uint32, memory uint32, saltLen uint32, threads uint8, time uint32) Algorithm {
// Return Algorithm
return Algorithm{
keyLen: keyLen,
memory: memory,
saltLen: saltLen,
threads: threads,
time: time,
}
}