[Mono-list] Bad PKCS7 padding. Invalid length when using asp.net membership provider - a bug in mono?

Sebastien Pouliot sebastien.pouliot at gmail.com
Tue Sep 1 16:57:12 EDT 2009

On Tue, 2009-09-01 at 13:43 -0700, Piotr Walat wrote:
> Piotr Walat wrote:
> > 
> > 
> > Bad PKCS7 padding. Invalid length {some_number}
> >  
> > 
> Well same applications runs well under Visual Studio 2008 in windows... so
> this is probably a bug in mono. Mojoportal users also reported similar
> problems when using password recovery with mysql provider.

Daniel Nauck told me about this bug - and I'm still waiting for answers
to some questions. AFAICT the fact that this works under Windows is the
reason it does not work on Mono. 

Basically the same key, data and storage are used on both (mono and
ms.net) but the (undocumented) algorithm itself is different. So you
can't mix and match ms.net and mono with the same (membership) data

> Are there any plans to fix this bug anytime soon?

Not without a bug report and not without test cases (that exclude the
above case).


More information about the Mono-list mailing list