group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HmacSha256.hpp File Reference

Small SHA-256 and HMAC-SHA256 helpers for relay-token signing. More...

#include <array>
#include <cstddef>
#include <cstdint>
Include dependency graph for HmacSha256.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  net
namespace  net::crypto

Typedefs

using net::crypto::Sha256Digest = std::array<std::uint8_t, 32>

Functions

Sha256Digest net::crypto::sha256 (const void *data, std::size_t len)
Sha256Digest net::crypto::hmacSha256 (const void *key, std::size_t keyLen, const void *data, std::size_t len)
bool net::crypto::constantTimeEqual (const std::uint8_t *a, const std::uint8_t *b, std::size_t len)

Detailed Description

Small SHA-256 and HMAC-SHA256 helpers for relay-token signing.