public static class Argon2BytesGenerator.FixedBlockPool extends java.lang.Object implements Argon2BytesGenerator.BlockPool
maxBlocks Argon2BytesGenerator.Block objects.
Excess blocks returned via #deallocate(Block) are dropped and
left for the garbage collector. Returned blocks are zeroised both on
deallocation and again on allocation, so a recycled block is never
observed with stale data.| Constructor and Description |
|---|
FixedBlockPool(int maxBlocks) |
| Modifier and Type | Method and Description |
|---|---|
Argon2BytesGenerator.Block |
allocate() |
void |
deallocate(Argon2BytesGenerator.Block block) |
public Argon2BytesGenerator.Block allocate()
allocate in interface Argon2BytesGenerator.BlockPoolpublic void deallocate(Argon2BytesGenerator.Block block)
deallocate in interface Argon2BytesGenerator.BlockPool