()
| 27 | } |
| 28 | |
| 29 | func makeSalt() []byte { |
| 30 | result := make([]byte, 16) |
| 31 | _, err := rand.Read(result) |
| 32 | if err != nil { |
| 33 | panic(err) |
| 34 | } |
| 35 | return result |
| 36 | } |
| 37 | |
| 38 | func newCredentialBaseFromData(data map[string]string) (*credentialBase, error) { |
| 39 | base := &credentialBase{ |
no test coverage detected