c

nelson.crypto

SafeHolderHmac

final class SafeHolderHmac extends Signer[AuthResult]

An HMAC-based implementation of Signer that caches Mac instances to reduce the overhead of initialization.

Caching a per-key Mac instead of just a thread-local Mac would remove the need to initialize the mac on each signature, but benchmarks show that it doesn't make a significant performance difference.

Source
Signer.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SafeHolderHmac
  2. Signer
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SafeHolderHmac(holder: SafeHolder[Mac])

Value Members

  1. def signature(key: SignatureKey, data: ByteVector, signatureLengthBytes: Int): AuthResult[ByteVector]
    Definition Classes
    SafeHolderHmacSigner