Class Argon2BytesGenerator.FixedBlockPool
java.lang.Object
org.bouncycastle.crypto.generators.Argon2BytesGenerator.FixedBlockPool
- All Implemented Interfaces:
Argon2BytesGenerator.BlockPool
- Enclosing class:
Argon2BytesGenerator
public static class Argon2BytesGenerator.FixedBlockPool
extends Object
implements Argon2BytesGenerator.BlockPool
Bounded pool that recycles up to
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
FixedBlockPool
public FixedBlockPool(int maxBlocks)
-
-
Method Details
-
allocate
- Specified by:
allocatein interfaceArgon2BytesGenerator.BlockPool
-
deallocate
- Specified by:
deallocatein interfaceArgon2BytesGenerator.BlockPool
-