Fall back to UnsupportedAlgorithm in cases like this?


On 17 March 2014 21:10:51 Paul Kehrer <notifications@github.com> wrote:

> >              if self._backend._lib.Cryptography_HAS_PKEY_CTX:
> >                  self._verify_method = self._verify_pkey_ctx
> >                  self._padding_enum = self._backend._lib.RSA_PKCS1_PADDING
> >              else:
> >                  self._verify_method = self._verify_pkcs1
> > +        elif isinstance(padding, PSS):
> > +            if not isinstance(padding._mgf, MGF1):
> > +                raise TypeError("Only MGF1 is supported by this backend")
>
> Yeah I don't know either. It's not really an unsupported padding though, 
> it's an unsupported mask generation function for the padding?
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/pyca/cryptography/pull/792/files#r10679074