bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gc-pbkdf2-sha1 is deprecated


From: Bruce Korb
Subject: Re: gc-pbkdf2-sha1 is deprecated
Date: Mon, 21 Sep 2020 15:49:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0

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 via email to

[Prev in Thread] Current Thread [Next in Thread]