Debian Codegraph @

src/bindings/crypto_secretbox.h

raw
1 /* Copyright 2013 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 size_t crypto_secretbox_keybytes();
17 size_t crypto_secretbox_noncebytes();
18 size_t crypto_secretbox_zerobytes();
19 size_t crypto_secretbox_boxzerobytes();
20 size_t crypto_secretbox_macbytes();
21 size_t crypto_secretbox_messagebytes_max();
22
23
24 int crypto_secretbox(unsigned char *c, const unsigned char *m,
25 unsigned long long mlen, const unsigned char *n,
26 const unsigned char *k);
27
28 int crypto_secretbox_open(unsigned char *m, const unsigned char *c,
29 unsigned long long clen, const unsigned char *n,
30 const unsigned char *k);
31
32 int crypto_secretbox_easy(unsigned char *c, const unsigned char *m,
33 unsigned long long mlen, const unsigned char *n,
34 const unsigned char *k);
35
36 int crypto_secretbox_open_easy(unsigned char *m, const unsigned char *c,
37 unsigned long long clen, const unsigned char *n,
38 const unsigned char *k);