Re: Error: Bad length of salt (32) for AES when importing a p12 certificate

2024-10-02 Thread Nils Schween
Thank you very much! That's great. Regards, Nils Schween Werner Koch writes: > Hi! > > On Thu, 19 Sep 2024 09:07, Nils Schween said: > >> suffices to import the certificate. It is actually enough to increase >> the value from 20 to 32. Here is the git diff of my ch

Re: Error: Bad length of salt (32) for AES when importing a p12 certificate

2024-09-21 Thread Nils Schween
tributes" is used to indicate that there are no attributes, whereas in the newly created p12 file they use "No Attributes" I do not know how gpgsm checks if there are additional attributes. May this observation also hints into the direction of the error. Regards, Nils Nils Schween

Re: Error: Bad length of salt (32) for AES when importing a p12 certificate

2024-09-20 Thread Nils Schween
le) problematic pkcs12 file to see what values it actually > uses. > > On 2024-09-20 12:02, Nils Schween wrote: >>> Given the brittleness of pkcs#12/minip12.c I would really appricate to >>> have a sample file. But the worst thing which could happen is that the >&

Re: Error: Bad length of salt (32) for AES when importing a p12 certificate

2024-09-20 Thread Nils Schween
Koch writes: > On Thu, 19 Sep 2024 13:42, Nils Schween said: > >> If it is necessary, I can try to create a certificate with openssl, that >> reproduces the error. > > Given the brittleness of pkcs#12/minip12.c I would really appricate to > have a sample file. But the wor

Re: Error: Bad length of salt (32) for AES when importing a p12 certificate

2024-09-19 Thread Nils Schween
ces the error. Greetings, Nils Werner Koch writes: > On Thu, 19 Sep 2024 09:07, Nils Schween said: >> A short follow up: I did some more tests and I found that the change of >> the length of the salt array in the function 'parse_shrouded_key_bag' >> suffices to impo

Re: Error: Bad length of salt (32) for AES when importing a p12 certificate

2024-09-19 Thread Nils Schween
ar salt[20]; + char salt[32]; size_t saltlen; char iv[16]; unsigned int iter; Regards, Nils Nils Schween writes: > Dear gpg community, > > I had difficulties to import a p12 certificiate with gpgsm --import > cert.p12 > > I got the following error message: > > gpgs

Error: Bad length of salt (32) for AES when importing a p12 certificate

2024-09-17 Thread Nils Schween
sorry for not reporting it directly in bug tracker, but I do not have an account there. Please let me, if this change is going to make into one of the next versions of gpg. Best regards, Nils Schween smime.p7s Description: S/MIME cryptographic signature

Bad salt length AES

2024-09-17 Thread Nils Schween
sorry for not reporting it directly in bug tracker, but I do not have an account there. Please let me, if this change is going to make into one of the next versions of gpg. Best regards, Nils Schween smime.p7s Description: S/MIME cryptographic signature