单二进制三角色 + Dock 适配器 + Swarm stack 达到可部署态;mgr1 实测订阅经 central-proxy bootstrap,探活 alive=41/52。 Co-authored-by: Cursor <cursoragent@cursor.com>
8 lines
371 B
Go
8 lines
371 B
Go
// securecompare.go:常数时间比对(T3 纪律,gateway 内独立小工具;复用 auth 包
|
||
// 语义但不引依赖环——auth 依赖 store,gateway 已依赖 store,为避免实现耦合镜像函数)。
|
||
package gateway
|
||
|
||
import "crypto/hmac"
|
||
|
||
// hmacEqual hmac.Equal 包装(常数时间)。
|
||
func hmacEqual(a, b []byte) bool { return hmac.Equal(a, b) }
|