unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Hash functions for custom-safe-themes
@ 2012-01-05 11:00 Chong Yidong
  2012-01-05 13:21 ` Leo
  0 siblings, 1 reply; 4+ messages in thread
From: Chong Yidong @ 2012-01-05 11:00 UTC (permalink / raw)
  To: emacs-devel

When we added custom-safe-themes about a year ago, we used SHA1 for
hashing, just because that was conveniently implemented by `sha1.el'.
Several months later, we got built-in SHA256 hashing on all platforms
thanks to Gnulib and the secure-hash primitive.

For future proofing, maybe it would be wise to switch to SHA256 for
custom-safe-themes, before the release.  Any thoughts?



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hash functions for custom-safe-themes
  2012-01-05 11:00 Hash functions for custom-safe-themes Chong Yidong
@ 2012-01-05 13:21 ` Leo
  2012-01-06  1:44   ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: Leo @ 2012-01-05 13:21 UTC (permalink / raw)
  To: emacs-devel

On 2012-01-05 19:00 +0800, Chong Yidong wrote:
> Several months later, we got built-in SHA256 hashing on all platforms
> thanks to Gnulib and the secure-hash primitive.

This is not related to your question. I have two suggestions:

1. A secure-hash-command that user can invoke to get the hash of a buffer
2. Bind `: h' to a new command dired-secure-hash, that user can invoke
   to get the hash of a file in dired

These new additions are small but quite handy. Do you think we can do it
for 24.1?

Thanks.
Leo




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hash functions for custom-safe-themes
  2012-01-05 13:21 ` Leo
@ 2012-01-06  1:44   ` Stefan Monnier
  2012-01-07  1:18     ` Chong Yidong
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2012-01-06  1:44 UTC (permalink / raw)
  To: Leo; +Cc: emacs-devel

> These new additions are small but quite handy. Do you think we can do it
> for 24.1?

No,


        Stefan



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Hash functions for custom-safe-themes
  2012-01-06  1:44   ` Stefan Monnier
@ 2012-01-07  1:18     ` Chong Yidong
  0 siblings, 0 replies; 4+ messages in thread
From: Chong Yidong @ 2012-01-07  1:18 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Leo, emacs-devel

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> These new additions are small but quite handy. Do you think we can do it
>> for 24.1?
>
> No,

Agreed---now is not the time to add new features.  Switching
custom-safe-themes to SHA-2, however, is now or never, so I'm going to
go ahead and flip that switch.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-07  1:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-05 11:00 Hash functions for custom-safe-themes Chong Yidong
2012-01-05 13:21 ` Leo
2012-01-06  1:44   ` Stefan Monnier
2012-01-07  1:18     ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).