Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
alcinnz
alcinnz
@alcinnz@floss.social  ·  activity timestamp 4 months ago

Continuing my study of Hare's cryptography library... Its "hmac" submodule includes:

Initializers which gathers an underlying hash function, data, & methods into a struct populating the hash with a possibly-padded key.

The write method defers to the underlying hash function.

The gensum method retrieves the hash's output, rehashes that with a given "keypad", & retrieves results.

The finalizer zeroes out the keypad & defers to the underlying hash function.

1/2?

  • Copy link
  • Flag this post
  • Block
Federation Bot
Federation Bot
@Federation_Bot replied  ·  activity timestamp 4 months ago

There's an HMAC wrapper around the SHA1 hash function, & another around SHA256.

1.1/1.1 Fin for today! Next: Some simpler submodules!

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1 no JS en
Automatic federation enabled
Log in
  • Explore
  • About
  • Members
  • Code of Conduct