Files
worker/internal/webapp/cteq.go
Gleb Tv 2c7a0236da feat: publish standalone worker
Separate worker packaging and service lifecycle from the control plane.
2026-07-13 17:55:14 +03:00

11 строки
293 B
Go

package webapp
import "crypto/subtle"
// constantTimeEq is a thin wrapper around crypto/subtle.ConstantTimeCompare
// so the middleware file does not need an extra import for a single
// call.
func constantTimeEq(a, b string) int {
return subtle.ConstantTimeCompare([]byte(a), []byte(b))
}