MCPcopy
hub / github.com/simstudioai/sim / assertKey

Function assertKey

packages/security/src/encryption.ts:64–68  ·  view source on GitHub ↗
(key: Buffer)

Source from the content-addressed store, hash-verified

62}
63
64function assertKey(key: Buffer): void {
65 if (key.length !== 32) {
66 throw new Error('Encryption key must be 32 bytes (256 bits)')
67 }
68}

Callers 2

encryptFunction · 0.85
decryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected