OpenCore
1.0.4
OpenCore Bootloader
|
#include "Sha2Internal.h"
Go to the source code of this file.
Macros | |
#define | UNPACK64(x, str) |
#define | PACK64(str, x) |
#define | SHFR(a, b) |
#define | ROTLEFT(a, b) |
#define | ROTRIGHT(a, b) |
#define | CH(x, y, z) |
#define | MAJ(x, y, z) |
#define | SHA256_EP0(x) |
#define | SHA256_EP1(x) |
#define | SHA256_SIG0(x) |
#define | SHA256_SIG1(x) |
#define | SHA512_EP0(x) |
#define | SHA512_EP1(x) |
#define | SHA512_SIG0(x) |
#define | SHA512_SIG1(x) |
#define | SHA512_SCR(Index) |
Variables | |
GLOBAL_REMOVE_IF_UNREFERENCED BOOLEAN | mIsAccelEnabled |
OcCryptoLib
Copyright (c) 2018, savvas
All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
Definition in file Sha2.c.
#define PACK64 | ( | str, | |
x ) |
#define ROTLEFT | ( | a, | |
b ) |
#define ROTRIGHT | ( | a, | |
b ) |
#define SHA256_EP0 | ( | x | ) |
#define SHA256_EP1 | ( | x | ) |
#define SHA256_SIG0 | ( | x | ) |
#define SHA256_SIG1 | ( | x | ) |
#define SHA512_EP0 | ( | x | ) |
#define SHA512_EP1 | ( | x | ) |
#define SHA512_SCR | ( | Index | ) |
#define SHA512_SIG0 | ( | x | ) |
#define SHA512_SIG1 | ( | x | ) |
#define UNPACK64 | ( | x, | |
str ) |
Filename: sha256.c Author: Brad Conte (brad AT bradconte.com) Copyright: Disclaimer: This code is presented "as is" without any guarantees. Details: Implementation of the SHA-256 hashing algorithm. SHA-256 is one of the three algorithms in the SHA2 specification. The others, SHA-384 and SHA-512, are not offered in this implementation. Algorithm specification can be found here: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2withchangenotice.pdf This implementation uses little endian byte order.