mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
[cpu] use short defines instead of long checks
Signed-off-by: r4sas <r4sas@i2pmail.org>
This commit is contained in:
parent
9c25a88707
commit
1857f14be8
4 changed files with 29 additions and 16 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013-2022, The PurpleI2P Project
|
||||
* Copyright (c) 2013-2023, The PurpleI2P Project
|
||||
*
|
||||
* This file is part of Purple i2pd project and licensed under BSD3
|
||||
*
|
||||
|
@ -150,7 +150,7 @@ namespace crypto
|
|||
};
|
||||
|
||||
|
||||
#ifdef __AES__
|
||||
#if SUPPORTS_AES
|
||||
class ECBCryptoAESNI
|
||||
{
|
||||
public:
|
||||
|
@ -167,7 +167,7 @@ namespace crypto
|
|||
};
|
||||
#endif
|
||||
|
||||
#ifdef __AES__
|
||||
#if SUPPORTS_AES
|
||||
class ECBEncryption: public ECBCryptoAESNI
|
||||
#else
|
||||
class ECBEncryption
|
||||
|
@ -183,7 +183,7 @@ namespace crypto
|
|||
AES_KEY m_Key;
|
||||
};
|
||||
|
||||
#ifdef __AES__
|
||||
#if SUPPORTS_AES
|
||||
class ECBDecryption: public ECBCryptoAESNI
|
||||
#else
|
||||
class ECBDecryption
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue