🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #243504

Re: esub hsub with command line tools?

#243504
From: Nomen Nescio
Date: Wed, 12 Jan 2011 23:16
56 lines
2892 bytes
> In article <8e59f68975f7927285c46f2817475b6f@dizum.com>
> Nomen Nescio <nobody@dizum.com> wrote:


> An hsub is just a sha2-256 hash prefixed with 16 random hex digits.  See
> http://www.is-not-my.name/hsub.html.

> I was thinking your hsub was BLOWFISH based. I see that was about your
> esub. Sorry about that.

> Does anybody know about esub? It looks like gpg has an option that may work
> with IDEA if what I saw in your old post is correct?

> 64 bit iv | encrypt (md5(subject), md5(key), iv)

> Does that simply mean the iv is appended to the md5's of subject and key? Or
> does the iv get passed to the cipher to use in some other way...as a salt,
> etc.?

> Can anybody give a few examples of IDEA esubs to test against?

> Thanks.

> I don't know if it's helpful to you or not, but you can find the
> source code for the esub plugin that QS1.0 uses here:

> ftp://ftp.quicksilvermail.net/pub/quicksilver/misc/esub_plugin100.zip

  Here is the code from esub_plugin100 for the above formula.  The 
formula seems to be somewhat backward to me, but probably isn't.

	// Hash key
	MD5Init (&subjkeyDigest);
	MD5Update (&subjkeyDigest, key, strlen ((const char *) key));
	MD5Final (subjIDEAkey, &subjkeyDigest);

	// Hash Subject
	MD5Init (&subjectDigest);
	MD5Update (&subjectDigest, subject, strlen ((const char *) 
subject));
	MD5Final (subjPT, &subjectDigest);

	//Reset RNG
	_ftime( &timebuffer );
 	srand((unsigned)time( NULL )+timebuffer.millitm );

	// Encrypt
	ideaCfbInit (&subjcontext, subjIDEAkey);
	for (int i = 0; i < 8; i++)	hexrand[i] = rand();
	memcpy (subjCT, hexrand, 8);
	memcpy (subjCT + 8, subjPT, 16);
	ideaCfbEncrypt (&subjcontext, subjCT, subjCT, 24);
	ideaCfbDestroy (&subjcontext);
	printbytes(subjCT, encsubject, 24);
	return 0;
Technical Details
Message-ID: <b4277b2c75f358dca09d3d05163a5512@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news2.glorb.com!mail2news.mixmin.net!not-for-mail
References: <a4c6e22b38b6e388c7ffb6817333aefa@dizum.com>

Show Full Headers
Complete Article Headers
Message-ID: <b4277b2c75f358dca09d3d05163a5512@dizum.com>
Subject: Re: esub hsub with command line tools?
Date: Wed, 12 Jan 2011 23:16:08 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <a4c6e22b38b6e388c7ffb6817333aefa@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141023.mbox.gz!border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!news2.glorb.com!mail2news.mixmin.net!not-for-mail
Comments: This message did not originate from the Sender address above.
 It was remailed automatically by anonymizing remailer software.
 Please report problems or inappropriate use to the
 remailer administrator at <abuse@dizum.com>.
Newsgroups: alt.privacy.anon-server
Lines: 57
Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net
X-Original-Bytes: 2679