home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.c      Meh, in C you gotta define EVERYTHING      243,242 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 243,208 of 243,242   
   Chris M. Thomasson to Stefan Claas   
   Re: My experimental HMAC cipher in C99,    
   14 Feb 26 12:50:48   
   
   XPost: sci.crypt   
   From: chris.m.thomasson.1@gmail.com   
      
   On 2/14/2026 6:48 AM, Stefan Claas wrote:   
   > Chris M. Thomasson wrote:   
   >> On 2/12/2026 9:40 PM, Chris M. Thomasson wrote:   
   >>> Well, I made some alterations to my old C version of my HMAC cipher. It   
   >>> uses some non-portable API's in order to try to get a TRNG. It prints   
   >>> out its usage, just run the program with no arguments, look in ct_help.   
   >>>   
   >>> Well, can anybody else get it to compile _and_ run on their end? Thanks   
   >>> everybody!   
   >>>   
   >>> The secret key is hardcoded to Password and SHA2-512:   
   >> [...]   
   >>   
   >> I put it up on github:   
   >>   
   >> https://github.com/ChrisMThomasson/ct_HMAC_Cipher_Experiment/   
   lob/main/ct_hmac_sha2_512.c   
   >>   
   >   
   > Why I do not like your code snippets:   
   >   
   > $ gcc hmac.c -o hmac   
   > hmac.c:29:10: fatal error: hmac_sha2.h: No such file or directory   
   >     29 | #include "hmac_sha2.h"   
   >        |          ^~~~~~~~~~~~~   
   > compilation terminated.   
      
   Well, it uses the following lib:   
      
   https://github.com/ogay/hmac   
      
   So, go get it. Actually, its pretty nice. That is the only dependency.   
   After that, it should work fine. I cannot just copy those files from   
   ogay into my repository, right? :^)   
      
      
   > You should definetly learn Go or Rust...!!! BTW. speaking of TRNG,   
   > your's is not a TRNG, use instead on your Windows box your TPM 2.0   
   > hardware TRNG module, like I did, for example with pwgen:   
      
   Well, if somebody has access to a "real" TRNG device, they can adapt my   
   code to use its API.   
      
      
   > https://github.com/Ch1ffr3punk/pwgen   
   >   
   > Or if your computer is too old for TPM 2.0 usage try to use Quantum   
   > Random bytes:   
   >   
   > https://github.com/Ch1ffr3punk/qrng   
   > https://github.com/Ch1ffr3punk/pnr   
   >   
   > HTH!   
      
   That is a TRNG? I thought I needed a special device for that?   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca