bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Bruce Korb <bkorb@gnu.org>
To: Bruno Haible <bruno@clisp.org>, bug-gnulib@gnu.org
Subject: Re: gc-pbkdf2-sha1 is deprecated
Date: Mon, 21 Sep 2020 15:49:30 -0700	[thread overview]
Message-ID: <15f388d6-fd18-178d-e58c-6199e950086c@gnu.org> (raw)
In-Reply-To: <1671692.6njsL75u0N@omega>

gnu-pw-mgr fatal error:
gc_pbkdf2_hmac returned error code 5

(5 --> GC_INVALID_HASH)

I think they work differently.


     rc = gc_pbkdf2_hmac(GC_SHA1,
                         hash_source, hash_src_len,
                         salt,        salt_len,
                         OPT_VALUE_PBKDF2,// <-- pbkdf2 reprocessing count
                         hash_output, hash_out_len);
     if (rc != GC_OK)
         die(GNU_PW_MGR_EXIT_INVALID, pbkdf2_err_fmt, rc);

On 9/18/20 9:32 AM, Bruno Haible wrote:
> Hi Bruce,
>
>> Next question: what do I do about crypto/gc-pbkdf2-sha1? It is labeled
>> as "deprecated", but I need a function that produces precisely the same
>> result. It really doesn't matter to me that folks have figured out how
>> to jigger a file to produce an arbitrary sha1 sum. I only need a fairly
>> random result from summing a few tens of bytes of text. So as long as
>> "deprecate" doesn't mean it's going away, I'm fine.
> It may go away, because the module crypto/gc-pbkdf2 contains more generic
> API to do the same thing: gc_pbkdf2_hmac with first argument GC_SHA1.
>
> Bruno
>
>


  reply	other threads:[~2020-09-21 22:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAKRnqNLXD7waxPm7h=5S2-HkAe9WMVsLDtCuNrOFy_eyJZeZBQ@mail.gmail.com>
     [not found] ` <56102afd-8924-3338-722f-da03e590dd63@gnu.org>
     [not found]   ` <87d02ob434.fsf@herbrand>
2020-09-14 21:11     ` Trying to bootstrap my project, distcheck doesn't configure Bruce Korb
2020-09-14 22:53       ` Bruno Haible
2020-09-15 14:16         ` Bruce Korb
2020-09-18 15:58           ` gc-pbkdf2-sha1 is deprecated Bruce Korb
2020-09-18 16:32             ` Bruno Haible
2020-09-21 22:49               ` Bruce Korb [this message]
2020-09-22 15:04                 ` Bruce Korb
2020-09-22 17:03                   ` Bruno Haible
2020-09-23 16:55                     ` gc-pbkdf2-sha1 must not be deprecated Bruce Korb

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=15f388d6-fd18-178d-e58c-6199e950086c@gnu.org \
    --to=bkorb@gnu.org \
    --cc=bruno@clisp.org \
    --cc=bug-gnulib@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).