Well, you could at least populate it with some bytes `b"\x00" *
algorithm.block_size` or something.


On Sat, Apr 19, 2014 at 7:52 AM, Ayrx <notifications@github.com> wrote:

> In cryptography/hazmat/backends/openssl/backend.py:
>
> > @@ -469,6 +470,13 @@ def generate_dsa_private_key(self, parameters):
> >              y=self._bn_to_int(ctx.pub_key)
> >          )
> >
> > +    def cmac_algorithm_supported(self, algorithm):
> > +        return (backend._lib.Cryptography_HAS_CMAC == 1
> > +                and backend.cipher_supported(algorithm, CBC(0)))
>
> I know it's ugly. :( Do you have suggestions for an alternative method?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/pyca/cryptography/pull/931/files#r11794013>
> .
>



-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
GPG Key fingerprint: 125F 5C67 DFE9 4084