This file is indexed.

/usr/include/dacs/blake2.h is in libdacs-dev 1.4.38a-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
/*
 * Copyright (c) 2016
 * Distributed Systems Software.  All rights reserved.
 * See the file LICENSE for redistribution information.
 *
 * $Id: blake2.h 2900 2016-06-23 15:43:19Z brachman $
 */

/*
 * Adapted from the Argon2 distribution:
 *   https://github.com/p-h-c/phc-winner-argon2
 * 2-Jun-2016 (Commit d7266c4)
 * License: CC0 (Creative Commons)
 */

#ifndef PORTABLE_BLAKE2_H
#define PORTABLE_BLAKE2_H

#include <stddef.h>
#include <stdint.h>
#include <limits.h>

#include "blake2-impl.h"

#if defined(__cplusplus)
extern "C" {
#endif

enum Blake2b_constant {
  BLAKE2B_BLOCKBYTES    = 128,
  BLAKE2B_OUTBYTES      =  64,
  BLAKE2B_KEYBYTES      =  64,
  BLAKE2B_SALTBYTES     =  16,
  BLAKE2B_PERSONALBYTES =  16
};

#pragma pack(push, 1)
typedef struct __blake2b_param {
  uint8_t digest_length;                   /*  1 */
  uint8_t key_length;                      /*  2 */
  uint8_t fanout;                          /*  3 */
  uint8_t depth;                           /*  4 */
  uint32_t leaf_length;                    /*  8 */
  uint64_t node_offset;                    /* 16 */
  uint8_t node_depth;                      /* 17 */
  uint8_t inner_length;                    /* 18 */
  uint8_t reserved[14];                    /* 32 */
  uint8_t salt[BLAKE2B_SALTBYTES];         /* 48 */
  uint8_t personal[BLAKE2B_PERSONALBYTES]; /* 64 */
} Blake2b_param;
#pragma pack(pop)

typedef struct __blake2b_state {
  uint64_t h[8];
  uint64_t t[2];
  uint64_t f[2];
  uint8_t buf[BLAKE2B_BLOCKBYTES];
  unsigned int buflen;
  unsigned int outlen;
  uint8_t last_node;
} Blake2b_state;

/* Ensure param structs have not been wrongly padded */
/* Poor man's static_assert */
enum {
  blake2_size_check_0 = 1 / !!(CHAR_BIT == 8),
  blake2_size_check_2 =
  1 / !!(sizeof(Blake2b_param) == sizeof(uint64_t) * CHAR_BIT)
};

/* Streaming API */
extern int blake2b_init(Blake2b_state *S, size_t outlen);
extern int blake2b_init_key(Blake2b_state *S, size_t outlen, const void *key,
							size_t keylen);
extern int blake2b_init_param(Blake2b_state *S, const Blake2b_param *P);
extern int blake2b_update(Blake2b_state *S, const void *in, size_t inlen);
extern int blake2b_final(Blake2b_state *S, void *out, size_t outlen);

/* Simple API */
extern int blake2b(void *out, size_t outlen, const void *in, size_t inlen,
				   const void *key, size_t keylen);

/* Argon2 Team - Begin Code */
extern int blake2b_long(void *out, size_t outlen, const void *in, size_t inlen);
/* Argon2 Team - End Code */

extern int do_blake2_tests(void);

#if defined(__cplusplus)
}
#endif

#endif