[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Google
  Web www.spinics.net

Re: [GNU Crypto] Passwords Immutable?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Bryan" == Bryan Hoover <bhoover@xxxxxxxx> writes:

Bryan> Casey Marshall wrote:
>> Actually, it would be better to be able to gracefully handle either
>> a char[] or a Password.

Bryan> And byte[] too.  Java's reflection would provide for testing
Bryan> type wouldn't it?  Could just add a utility routine or
Bryan> something somewhere to neatly encapsulate/wrap the testing
Bryan> functionality.  In C for instance, one might redefine the
Bryan> HashMap type, and overload it's property returning routine.
Bryan> But I realize I probably need to wash my mouth out with soap
Bryan> for such dirty talk :).  Just a couple initial thoughts.

This kind of sounds like something generics are good for, if I
understand you correctly. In which case, wait a little while ;)

Bryan> The big question is, do want to continue to support String
Bryan> password property?  Which I guess boils down to, how important
Bryan> at this stage of GNU-Crypto lifetime, is backward compatibility
Bryan> in terms of this aspect of the api, and are there generally,
Bryan> potentially many different programs interfacing with the lib at
Bryan> this api level.  That is, I don't imagine everyone using the
Bryan> SRP implementation for instance, is using SaslConnection to do
Bryan> so, so I would think, at least potentially, losing the String
Bryan> property parameter could be at least somewhat of an agravation.

One thing that GNU Crypto's CVS HEAD is wide open for is API changes.
This branch is the "development" branch of GNU Crypto, which will
eventually be the 2.1 series. So abandoning allowing Strings as SASL
passwords is something the world would have to deal with.

I'd like to look at the SASL spec before commiting to removing support
for Strings.

Bryan> Another thought -- an Object Password constructor, and
Bryan> reflection could handle it couldn't it?

I don't think that's necessary. There are only a handful of sensible
ways to store a password, so byte[] and char[] are probably enough.

- -- 
Casey Marshall || csm@xxxxxxx
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.7 <http://mailcrypt.sourceforge.net/>

iD8DBQFAlI53gAuWMgRGsWsRAuU+AJ4gT2dtBUASvtza/JqbeWnSVGbe7gCfZL2+
5/7wTtMqbKYZRI5zErJH7+o=
=leUn
-----END PGP SIGNATURE-----


_______________________________________________
gnu-crypto-discuss mailing list
gnu-crypto-discuss@xxxxxxx
http://mail.nongnu.org/mailman/listinfo/gnu-crypto-discuss

[Home]     [Gnu Classpath]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]     [Red Hat 9 Bible]     [Fedora Bible]     [Red Hat 9]     [Network Security Reading]

  Powered by Linux