| 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_box_secretkeybytes(); |
| 17 |
size_t crypto_box_publickeybytes(); |
| 18 |
size_t crypto_box_seedbytes(); |
| 19 |
size_t crypto_box_zerobytes(); |
| 20 |
size_t crypto_box_boxzerobytes(); |
| 21 |
size_t crypto_box_noncebytes(); |
| 22 |
size_t crypto_box_beforenmbytes(); |
| 23 |
size_t crypto_box_sealbytes(); |
| 24 |
size_t crypto_box_macbytes(); |
| 25 |
|
| 26 |
|
| 27 |
int crypto_box_keypair(unsigned char *pk, unsigned char *sk); |
| 28 |
|
| 29 |
int crypto_box_seed_keypair(unsigned char *pk, unsigned char *sk, |
| 30 |
const unsigned char *seed); |
| 31 |
|
| 32 |
int crypto_box(unsigned char *c, const unsigned char *m, |
| 33 |
unsigned long long mlen, const unsigned char *n, |
| 34 |
const unsigned char *pk, const unsigned char *sk); |
| 35 |
|
| 36 |
int crypto_box_open(unsigned char *m, const unsigned char *c, |
| 37 |
unsigned long long clen, const unsigned char *n, |
| 38 |
const unsigned char *pk, const unsigned char *sk); |
| 39 |
|
| 40 |
int crypto_box_beforenm(unsigned char *k, const unsigned char *pk, |
| 41 |
const unsigned char *sk); |
| 42 |
|
| 43 |
int crypto_box_afternm(unsigned char *c, const unsigned char *m, |
| 44 |
unsigned long long mlen, const unsigned char *n, |
| 45 |
const unsigned char *k); |
| 46 |
|
| 47 |
int crypto_box_open_afternm(unsigned char *m, const unsigned char *c, |
| 48 |
unsigned long long clen, const unsigned char *n, |
| 49 |
const unsigned char *k); |
| 50 |
|
| 51 |
int crypto_box_seal(unsigned char *c, const unsigned char *m, |
| 52 |
unsigned long long mlen, const unsigned char *pk); |
| 53 |
|
| 54 |
int crypto_box_seal_open(unsigned char *m, const unsigned char *c, |
| 55 |
unsigned long long clen, |
| 56 |
const unsigned char *pk, const unsigned char *sk); |
| 57 |
|
| 58 |
int crypto_box_easy_afternm(unsigned char *c, const unsigned char *m, |
| 59 |
unsigned long long mlen, const unsigned char *n, |
| 60 |
const unsigned char *k); |
| 61 |
|
| 62 |
int crypto_box_easy(unsigned char *c, const unsigned char *m, |
| 63 |
unsigned long long mlen, const unsigned char *n, |
| 64 |
const unsigned char *pk, const unsigned char *sk); |
| 65 |
|
| 66 |
int crypto_box_open_easy_afternm(unsigned char *m, const unsigned char *c, |
| 67 |
unsigned long long clen, const unsigned char *n, |
| 68 |
const unsigned char *k); |
| 69 |
|
| 70 |
int crypto_box_open_easy(unsigned char *m, const unsigned char *c, |
| 71 |
unsigned long long clen, const unsigned char *n, |
| 72 |
const unsigned char *pk, const unsigned char *sk); |