Skip to content

fix: use wrong parameters using gcry_cipher_get_algo_blklen in the...

Mingjun Yang requested to merge ymj-uniontech.com/gnome-keyring:master into master

fix: use wrong parameters using gcry_cipher_get_algo_blklen in the prepare_and_encode_pkcs8_cipher funcion. this paramter of gcry_cipher_get_algo_blklen is the name of algorithm, not the name of digest. when I change the paramter of gcry_cipher_get_algo_blklen, the result still is wrong except GCRY_MD_SHA1. so I check the code of libgcrypt, I find out that this function uses to get length of algorithms, not digests.

Merge request reports