1 parent
cc7466823b
commit
e8c5b414d9
44 files changed
+7649
-344
No files matched your search
@@ -340,13 +340,6 @@ func TestAPIKeysAreNotStoredInPlaintext(t *testing.T) {
|
||||
t.Errorf("stored form %q is not a hex sha256", stored)
|
||||
}
|
||||
}
|
||||
// constantTimeEqual is the comparison helper: equal only when equal.
|
||||
if !constantTimeEqual("abc", "abc") {
|
||||
t.Error("constantTimeEqual(abc, abc) = false")
|
||||
}
|
||||
if constantTimeEqual("abc", "abd") || constantTimeEqual("abc", "ab") || constantTimeEqual("", "x") {
|
||||
t.Error("constantTimeEqual accepted a mismatch")
|
||||
}
|
||||
}
|
||||
|
||||
func mapKeys(m map[string]string) []string {
|
||||
|
||||
Reference in new issue
Block a user