aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/sha256.h
blob: 942836a411b1557becb5e42911fbd4e73dd9f7eb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#include <stddef.h>  // IWYU pragma: keep
#include <stdint.h>

#define SHA256_BUFFER_SIZE 64
#define SHA256_SUM_SIZE    32

typedef struct {
  uint32_t total[2];
  uint32_t state[8];
  uint8_t buffer[SHA256_BUFFER_SIZE];
} context_sha256_T;

#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "sha256.h.generated.h"
#endif