GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Sunday, 12-Nov-2023 00:24:15 JST Ryan Castellucci :nonbinary_flag: Ryan Castellucci :nonbinary_flag:

    Several of my personal projects should probably say:

    WARNING: This source code contains techniques which are known to the State of California to cause cancer.

    My cryptographic hash library does approximately the following to build, via a makefile:

    • Uses a bunch of make functions to generate target lists for wildcard recipes.
    • Run the Python scripts that generate a series of header files full of macros.
    • Runs the C preprocessor on meta-implementations of Merkel-Damgård hash functions once for each algorithm.
    • Concatenates some of the files together so the compiler can inline them better.
    • Compiles the files (a second pass of the preprocessor runs).
    • Links everything together.

    To the best of my knowledge, it's the fastest non-parallel x86_64 implementation of all the hash algorithms it supports, and it allows for building things like length extension attacks.

    In conversation Sunday, 12-Nov-2023 00:24:15 JST from infosec.exchange permalink

    Attachments


    1. No result found on File_thumbnail lookup.
      http://www.together.to/
    • Embed this notice
      Ryan Castellucci :nonbinary_flag: (ryanc@infosec.exchange)'s status on Sunday, 12-Nov-2023 00:44:07 JST Ryan Castellucci :nonbinary_flag: Ryan Castellucci :nonbinary_flag:
      in reply to
      • Opalescent

      @opal There are extensive tests for correctness.

      Also, there's technically only one implementation for all the hash functions this way, yet the compiler can still do maximum optimizations.

      Other than the transform function, there's only a couple variables:

      • Name
      • Digest length
      • Block length
      • Word size
      • State size (in words)
      • Endianness
      • Transform function
      In conversation Sunday, 12-Nov-2023 00:44:07 JST permalink
    • Embed this notice
      Opalescent (opal@ioc.exchange)'s status on Sunday, 12-Nov-2023 00:44:08 JST Opalescent Opalescent
      in reply to

      @ryanc

      My employer pays me to analyze cryptographic implementations for security and correctness.

      This sort of thing is why they pay me enough to buy decent Bourbon.

      In conversation Sunday, 12-Nov-2023 00:44:08 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.