mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +00:00
Everywhere: Use nested namespace qualifiers
This commit is contained in:
parent
a2f33fdcef
commit
66e210e406
27 changed files with 30 additions and 91 deletions
|
@ -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)
|
|||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
|||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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:
|
|||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -18,8 +18,7 @@
|
|||
# include <AK/DeprecatedString.h>
|
||||
#endif
|
||||
|
||||
namespace Crypto {
|
||||
namespace Cipher {
|
||||
namespace Crypto::Cipher {
|
||||
|
||||
using IncrementFunction = IncrementInplace;
|
||||
|
||||
|
@ -148,5 +147,3 @@ private:
|
|||
};
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue