[client] Cache the box shared key per remote peer in the Signal client (#7807)

This commit is contained in:
Viktor Liu
2026-09-30 17:03:04 +02:00
committed by GitHub
parent e72be6698f
commit 0dc729c4ea
5 changed files with 352 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
//go:build ios || android
package encryption
// maxSharedKeys is small on mobile, where the process runs under a tight memory
// limit. A miss only costs a fresh key derivation. An entry costs about 130 bytes,
// so a full cache is around 130 KB.
const maxSharedKeys = 1 << 10