KeccakPool

org.sigilaris.core.crypto.internal.KeccakPool
object KeccakPool

Thread-local pool of Keccak-256 digest instances for efficient reuse.

Provides thread-safe access to Keccak-256 digest instances without requiring allocation on every hash operation. Each thread maintains its own instance, and the digest is reset before each use.

Attributes

Note

This is an internal optimization. Public API should use org.sigilaris.core.crypto.CryptoOps.keccak256 instead.

Source
KeccakPool.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
KeccakPool.type

Members list

Value members

Concrete methods

def acquire(): Digest256

Acquires a reset Keccak-256 digest instance for the current thread.

Acquires a reset Keccak-256 digest instance for the current thread.

Attributes

Returns

a reset org.bouncycastle.jcajce.provider.digest.Keccak.Digest256 instance

Note

The returned digest is automatically reset and ready to use. Caller should not store the instance beyond the current operation.

Source
KeccakPool.scala