Botan: src/hash/sha2_32/sha2_32.cpp File Reference

Botan 1.10.16

Namespaces | Macros
sha2_32.cpp File Reference
`#include <botan/sha2_32.h>`
`#include <botan/loadstor.h>`
`#include <botan/rotate.h>`

Go to the source code of this file.

## Namespaces
| Botan
| Botan::SHA2_32

## Macros
#define | SHA2_32_F(A, B, C, D, E, F, G, H, M1, M2, M3, M4, magic)

## Macro Definition Documentation

## ◆ SHA2_32_F

#define SHA2_32_F | ( |  | A,
|  |  | B,
|  |  | C,
|  |  | D,
|  |  | E,
|  |  | F,
|  |  | G,
|  |  | H,
|  |  | M1,
|  |  | M2,
|  |  | M3,
|  |  | M4,
|  |  | magic
| ) |  |

Value:
do { \
H += magic + rho(E, 6, 11, 25) + ((E & F) ^ (~E & G)) + M1; \
D += H; \
H += rho(A, 2, 13, 22) + ((A & B) | ((A | B) & C)); \
M1 += sigma(M2, 17, 19, 10) + M3 + sigma(M4, 7, 18, 3); \
} while(0);

Definition at line 42 of file sha2_32.cpp.