[Development] Backporting the Keccak change

Oswald Buddenhagen oswald.buddenhagen at qt.io
Tue Sep 5 10:09:19 CEST 2017


On Tue, Sep 05, 2017 at 06:57:38AM +0000, Lars Knoll wrote:
> On 4 Sep 2017, at 14:12, Thiago Macieira <thiago.macieira at intel.com> wrote:
> > 2) enum names
> > I'd like to do:
> > 
> >        Keccak_224 = 7,
> >        Keccak_256,
> >        Keccak_384,
> >        Keccak_512
> >        RealSha3_224 = 11,
> >        RealSha3_256,
> >        RealSha3_384,
> >        RealSha3_512,
> > #  ifndef QT_SHA3_KECCAK_COMPAT
> >        Sha3_224 = RealSha3_224,
> >        Sha3_256 = RealSha3_256,
> >        Sha3_384 = RealSha3_384,
> >        Sha3_512 = RealSha3_224,
> > #  else
> >        Sha3_224 = Keccak_224,
> >        Sha3_256 = Keccak_256,
> >        Sha3_384 = Keccak_384,
> >        Sha3_512 = Keccak_224,
> > #  endif
> 
> That was pretty much what I thought of :)
> 
that's one way to do it.

is this possible?

       RealSha3_224 = 11,
       RealSha3_256,
       RealSha3_384,
       RealSha3_512,
       Keccak_224 = 15,
       Keccak_256,
       Keccak_384,
       Keccak_512
#  ifndef QT_FIXED_SHA3
       QT_DEPRECATED_SINCE(5, 10, 0) Sha3_224 = 7,
       QT_DEPRECATED_SINCE(5, 10, 0) Sha3_256,
       QT_DEPRECATED_SINCE(5, 10, 0) Sha3_384,
       QT_DEPRECATED_SINCE(5, 10, 0) Sha3_512,
#  else
       Sha3_224 = RealSha3_224,
       Sha3_256 = RealSha3_256,
       Sha3_384 = RealSha3_384,
       Sha3_512 = RealSha3_224,
#  endif



More information about the Development mailing list