MCPcopy
hub / github.com/syncthing/syncthing / NewKeyGenerator

Function NewKeyGenerator

lib/protocol/encryption.go:547–554  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

545}
546
547func NewKeyGenerator() *KeyGenerator {
548 folderKeys, _ := lru.New2Q[folderKeyCacheKey, *[keySize]byte](folderKeyCacheEntries)
549 fileKeys, _ := lru.New2Q[fileKeyCacheKey, *[keySize]byte](fileKeyCacheEntries)
550 return &KeyGenerator{
551 folderKeys: folderKeys,
552 fileKeys: fileKeys,
553 }
554}
555
556type folderKeyCacheKey struct {
557 folderID string

Callers 6

newModelFunction · 0.92
startupMethod · 0.92
RunMethod · 0.92
encryption_test.goFile · 0.85

Calls

no outgoing calls

Tested by 3

newModelFunction · 0.74