mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
LibCrypto: Use nested namespace specifiers in Hash/
This commit is contained in:
parent
27189850d8
commit
1fe3ba17c0
7 changed files with 7 additions and 22 deletions
|
@ -7,8 +7,7 @@
|
|||
#include <AK/Types.h>
|
||||
#include <LibCrypto/Hash/SHA2.h>
|
||||
|
||||
namespace Crypto {
|
||||
namespace Hash {
|
||||
namespace Crypto::Hash {
|
||||
constexpr static auto ROTRIGHT(u32 a, size_t b) { return (a >> b) | (a << (32 - b)); }
|
||||
constexpr static auto CH(u32 x, u32 y, u32 z) { return (x & y) ^ (z & ~x); }
|
||||
constexpr static auto MAJ(u32 x, u32 y, u32 z) { return (x & y) ^ (x & z) ^ (y & z); }
|
||||
|
@ -393,4 +392,3 @@ SHA512::DigestType SHA512::peek()
|
|||
return digest;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue