1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:17:45 +00:00

Everywhere: Use nested namespace qualifiers

This commit is contained in:
Nico Weber 2023-07-11 13:49:08 -04:00 committed by Ali Mohammad Pur
parent a2f33fdcef
commit 66e210e406
27 changed files with 30 additions and 91 deletions

View file

@ -8,8 +8,7 @@
#include <LibCrypto/Cipher/AES.h>
#include <LibCrypto/Cipher/AESTables.h>
namespace Crypto {
namespace Cipher {
namespace Crypto::Cipher {
template<typename T>
constexpr u32 get_key(T pt)
@ -405,4 +404,3 @@ void AESCipherBlock::overwrite(ReadonlyBytes bytes)
}
}
}

View file

@ -17,8 +17,7 @@
# include <AK/DeprecatedString.h>
#endif
namespace Crypto {
namespace Cipher {
namespace Crypto::Cipher {
struct AESCipherBlock : public CipherBlock {
public:
@ -132,4 +131,3 @@ protected:
};
}
}

View file

@ -11,8 +11,7 @@
#include <AK/Span.h>
#include <AK/Types.h>
namespace Crypto {
namespace Cipher {
namespace Crypto::Cipher {
enum class Intent {
Encryption,
@ -123,4 +122,3 @@ private:
PaddingMode m_padding_mode;
};
}
}

View file

@ -14,8 +14,7 @@
# include <AK/DeprecatedString.h>
#endif
namespace Crypto {
namespace Cipher {
namespace Crypto::Cipher {
template<typename T>
class CBC : public Mode<T> {
@ -126,5 +125,3 @@ private:
};
}
}

View file

@ -14,8 +14,7 @@
# include <AK/DeprecatedString.h>
#endif
namespace Crypto {
namespace Cipher {
namespace Crypto::Cipher {
/*
* Heads up: CTR is a *family* of modes, because the "counter" function is
@ -194,4 +193,3 @@ protected:
};
}
}

View file

@ -18,8 +18,7 @@
# include <AK/DeprecatedString.h>
#endif
namespace Crypto {
namespace Cipher {
namespace Crypto::Cipher {
using IncrementFunction = IncrementInplace;
@ -148,5 +147,3 @@ private:
};
}
}

View file

@ -10,8 +10,7 @@
#include <AK/Span.h>
#include <LibCrypto/Cipher/Cipher.h>
namespace Crypto {
namespace Cipher {
namespace Crypto::Cipher {
template<typename T>
class Mode {
@ -99,5 +98,3 @@ private:
T m_cipher;
};
}
}