mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-05 21:19:08 +02:00
[client] Cache the box shared key per remote peer in the Signal client (#7807)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user