mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
FreeBSD 12 support (NOTE: xc not yet functional)
Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
parent
09c2408c06
commit
cba36b66f1
891 changed files with 351 additions and 304834 deletions
11
vendor/gopkg.in/hlandau/passlib.v1/abstract/compare.go
generated
vendored
11
vendor/gopkg.in/hlandau/passlib.v1/abstract/compare.go
generated
vendored
|
@ -1,11 +0,0 @@
|
|||
package abstract
|
||||
|
||||
import "crypto/subtle"
|
||||
|
||||
// Compares two strings (typicaly password hashes) in a secure, constant-time
|
||||
// fashion. Returns true iff they are equal.
|
||||
func SecureCompare(a, b string) bool {
|
||||
ab := []byte(a)
|
||||
bb := []byte(b)
|
||||
return subtle.ConstantTimeCompare(ab, bb) == 1
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue