1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 03:17:34 +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

@ -9,8 +9,7 @@
#include <LibCrypto/Hash/HashFunction.h>
#include <LibCrypto/Verification.h>
namespace Crypto {
namespace PK {
namespace Crypto::PK {
template<typename HashFunction>
class Code {
@ -34,4 +33,3 @@ protected:
};
}
}

View file

@ -12,8 +12,7 @@
#include <LibCrypto/Hash/SHA2.h>
#include <LibCrypto/PK/Code/Code.h>
namespace Crypto {
namespace PK {
namespace Crypto::PK {
template<typename HashFunction>
class EMSA_PKCS1_V1_5 : public Code<HashFunction> {
@ -135,4 +134,3 @@ inline ReadonlyBytes EMSA_PKCS1_V1_5<Crypto::Hash::Manager>::hash_function_diges
}
}
}

View file

@ -13,8 +13,7 @@
#include <AK/Vector.h>
#include <LibCrypto/PK/Code/Code.h>
namespace Crypto {
namespace PK {
namespace Crypto::PK {
template<typename HashFunction, size_t SaltSize>
class EMSA_PSS : public Code<HashFunction> {
@ -168,4 +167,3 @@ private:
};
}
}

View file

@ -12,8 +12,7 @@
# include <AK/DeprecatedString.h>
#endif
namespace Crypto {
namespace PK {
namespace Crypto::PK {
// FIXME: Fixing name up for grabs
template<typename PrivKeyT, typename PubKeyT>
@ -50,4 +49,3 @@ protected:
};
}
}

View file

@ -12,8 +12,7 @@
#include <LibCrypto/ASN1/PEM.h>
#include <LibCrypto/PK/RSA.h>
namespace Crypto {
namespace PK {
namespace Crypto::PK {
static constexpr Array<int, 7> pkcs8_rsa_key_oid { 1, 2, 840, 113549, 1, 1, 1 };
@ -418,4 +417,3 @@ void RSA_PKCS1_EME::verify(ReadonlyBytes, Bytes&)
dbgln("FIXME: RSA_PKCS_EME::verify");
}
}
}

View file

@ -13,8 +13,8 @@
#include <LibCrypto/PK/Code/EMSA_PSS.h>
#include <LibCrypto/PK/PK.h>
namespace Crypto {
namespace PK {
namespace Crypto::PK {
template<typename Integer = UnsignedBigInteger>
class RSAPublicKey {
public:
@ -225,4 +225,3 @@ public:
}
};
}
}