LLVM 20.0.0git
|
#include "llvm/Support/SHA256.h"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Endian.h"
#include "llvm/Support/SwapByteOrder.h"
#include <string.h>
Go to the source code of this file.
Namespaces | |
namespace | llvm |
This is an optimization pass for GlobalISel generic memory operations. | |
Macros | |
#define | SHR(x, c) ((x) >> (c)) |
#define | ROTR(x, n) (((x) >> n) | ((x) << (32 - (n)))) |
#define | CH(x, y, z) (((x) & (y)) ^ (~(x) & (z))) |
#define | MAJ(x, y, z) (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) |
#define | SIGMA_0(x) (ROTR(x, 2) ^ ROTR(x, 13) ^ ROTR(x, 22)) |
#define | SIGMA_1(x) (ROTR(x, 6) ^ ROTR(x, 11) ^ ROTR(x, 25)) |
#define | SIGMA_2(x) (ROTR(x, 17) ^ ROTR(x, 19) ^ SHR(x, 10)) |
#define | SIGMA_3(x) (ROTR(x, 7) ^ ROTR(x, 18) ^ SHR(x, 3)) |
#define | F_EXPAND(A, B, C, D, E, F, G, H, M1, M2, M3, M4, k) |
#define CH | ( | x, | |
y, | |||
z | |||
) | (((x) & (y)) ^ (~(x) & (z))) |
Definition at line 34 of file SHA256.cpp.
Definition at line 43 of file SHA256.cpp.
#define MAJ | ( | x, | |
y, | |||
z | |||
) | (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) |
Definition at line 35 of file SHA256.cpp.
#define ROTR | ( | x, | |
n | |||
) | (((x) >> n) | ((x) << (32 - (n)))) |
Definition at line 32 of file SHA256.cpp.
#define SHR | ( | x, | |
c | |||
) | ((x) >> (c)) |
Definition at line 31 of file SHA256.cpp.
Definition at line 37 of file SHA256.cpp.
Definition at line 38 of file SHA256.cpp.
Definition at line 40 of file SHA256.cpp.
Definition at line 41 of file SHA256.cpp.