Debian Codegraph @

src/bindings/minimal/crypto_pwhash.h

raw
1 /* Copyright 2020 Donald Stufft and individual contributors
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 #ifdef SODIUM_LIBRARY_MINIMAL
17 static const int PYNACL_HAS_CRYPTO_PWHASH_SCRYPTSALSA208SHA256 = 0;
18
19 size_t (*crypto_pwhash_scryptsalsa208sha256_saltbytes)(void) = NULL;
20 size_t (*crypto_pwhash_scryptsalsa208sha256_strbytes)(void) = NULL;
21 size_t (*crypto_pwhash_scryptsalsa208sha256_bytes_min)(void) = NULL;
22 size_t (*crypto_pwhash_scryptsalsa208sha256_bytes_max)(void) = NULL;
23 size_t (*crypto_pwhash_scryptsalsa208sha256_passwd_min)(void) = NULL;
24 size_t (*crypto_pwhash_scryptsalsa208sha256_passwd_max)(void) = NULL;
25 size_t (*crypto_pwhash_scryptsalsa208sha256_opslimit_min)(void) = NULL;
26 size_t (*crypto_pwhash_scryptsalsa208sha256_opslimit_max)(void) = NULL;
27 size_t (*crypto_pwhash_scryptsalsa208sha256_memlimit_min)(void) = NULL;
28 size_t (*crypto_pwhash_scryptsalsa208sha256_memlimit_max)(void) = NULL;
29 size_t (*crypto_pwhash_scryptsalsa208sha256_opslimit_interactive)(void) = NULL;
30 size_t (*crypto_pwhash_scryptsalsa208sha256_memlimit_interactive)(void) = NULL;
31 size_t (*crypto_pwhash_scryptsalsa208sha256_opslimit_sensitive)(void) = NULL;
32 size_t (*crypto_pwhash_scryptsalsa208sha256_memlimit_sensitive)(void) = NULL;
33
34 const char *(*crypto_pwhash_scryptsalsa208sha256_strprefix)(void) = NULL;
35
36 int (*crypto_pwhash_scryptsalsa208sha256_ll)(const uint8_t * const,
37 size_t,
38 const uint8_t *,
39 size_t,
40 uint64_t, uint32_t, uint32_t,
41 uint8_t *, size_t) = NULL;
42
43 /* #define crypto_pwhash_scryptsalsa208sha256_STRBYTES 102 */
44 int (*crypto_pwhash_scryptsalsa208sha256_str)(char [102],
45 const char * const,
46 unsigned long long,
47 unsigned long long,
48 size_t) = NULL;
49
50 int (*crypto_pwhash_scryptsalsa208sha256_str_verify)(const char [102],
51 const char * const,
52 unsigned long long) = NULL;
53 #else
54 static const int PYNACL_HAS_CRYPTO_PWHASH_SCRYPTSALSA208SHA256 = 1;
55 #endif