| 1 |
/* Copyright 2013-2017 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 |
void sodium_memzero(void * const pnt, const size_t len); |
| 17 |
int sodium_memcmp(const void * const b1_, const void * const b2_, size_t len); |
| 18 |
|
| 19 |
int sodium_mlock(void * const addr, const size_t len); |
| 20 |
int sodium_munlock(void * const addr, const size_t len); |
| 21 |
|
| 22 |
int sodium_pad(size_t *padded_buflen_p, unsigned char *buf, |
| 23 |
size_t unpadded_buflen, size_t blocksize, size_t max_buflen); |
| 24 |
int sodium_unpad(size_t *unpadded_buflen_p, const unsigned char *buf, |
| 25 |
size_t padded_buflen, size_t blocksize); |
| 26 |
|
| 27 |
void sodium_increment(unsigned char *n, const size_t nlen); |
| 28 |
void sodium_add(unsigned char *a, unsigned char *b, const size_t len); |