Yep.

Sent with AquaMail for Android
http://www.aqua-mail.com


On October 29, 2013 9:34:44 PM Alex Gaynor <notifications@github.com> wrote:
> > +        return result
> > +
> > +    def finalize(self):
> > +        if self._buffer is None:
> > +            raise ValueError("Context was already finalized")
> > +
> > +        if not self._buffer:
> > +            raise ValueError("Invalid padding bytes")
> > +
> > +        pad_size = six.indexbytes(self._buffer, -1)
> > +
> > +        if pad_size > self.block_size // 8:
> > +            raise ValueError("Invalid padding bytes")
> > +
> > +        for b in six.iterbytes(self._buffer[-pad_size:]):
> > +            if b != pad_size:
>
> Does http://bpaste.net/show/144990/ address your concern?
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/pyca/cryptography/pull/192/files#r7295565