inner, storing its items' values encrypted with keys. Throws IllegalArgumentException if inner's limits are too small to hold any sealed item: open it with storageLimits of the limits wanted.
inner, storing its items' values encrypted with keys. Throws IllegalArgumentException if inner's limits are too small to hold any sealed item: open it with storageLimits of the limits wanted.
The limits to open a store with, for an EncryptingLongTermStore over it to offer exactly limits: room for each item's envelope - its marker, a key id of up to 64 characters, a nonce and a tag - and for its ciphertext in Base64, four bytes for three. An item of n bytes needs at most 121 + 4n/3.
The limits to open a store with, for an EncryptingLongTermStore over it to offer exactly limits: room for each item's envelope - its marker, a key id of up to 64 characters, a nonce and a tag - and for its ciphertext in Base64, four bytes for three. An item of n bytes needs at most 121 + 4n/3.
Throws IllegalArgumentException when no store can hold them: a sealed item of limits.maxItemBytes would be over the bound every store has on an item, ReplayGuard.DefaultMaxOutcomeBytes.