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,209 of 243,242    |
|    Stefan Claas to Chris M. Thomasson    |
|    Re: My experimental HMAC cipher in C99,     |
|    14 Feb 26 21:46:52    |
      XPost: sci.crypt       From: noreply@oc2mx.net              Chris M. Thomasson wrote:       > 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_Experime       t/blob/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? :^)              Oh well, at least you should have mentioned in your OP the dependencies!              > > 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.              So, you don't have one in your PC? Then you should also not speak in the       future about TRNG in your code, when it is not!              > > 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?              Yes, it uses a real TRNG in my PC, i.e. the TMP 2.0 hardware module.              --       https://oc2mx.net              --- 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