|
Packit |
13e0ca |
/*
|
|
Packit |
13e0ca |
* Copyright (C) 1991-2017 Free Software Foundation, Inc.
|
|
Packit |
13e0ca |
*
|
|
Packit |
13e0ca |
* The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
13e0ca |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
13e0ca |
* License as published by the Free Software Foundation; either
|
|
Packit |
13e0ca |
* version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
13e0ca |
*
|
|
Packit |
13e0ca |
* The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
13e0ca |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
13e0ca |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
13e0ca |
* Lesser General Public License for more details.
|
|
Packit |
13e0ca |
*
|
|
Packit |
13e0ca |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
13e0ca |
* License along with the GNU C Library; if not, write to the Free
|
|
Packit |
13e0ca |
* Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
|
|
Packit |
13e0ca |
* 02111-1307 USA.
|
|
Packit |
13e0ca |
*/
|
|
Packit |
13e0ca |
|
|
Packit |
13e0ca |
#ifndef _CRYPT_PRIVATE_H
|
|
Packit |
13e0ca |
#define _CRYPT_PRIVATE_H 1
|
|
Packit |
13e0ca |
|
|
Packit |
13e0ca |
#include "crypt-base.h"
|
|
Packit |
13e0ca |
|
|
Packit |
13e0ca |
/* Utility functions */
|
|
Packit |
13e0ca |
|
|
Packit |
13e0ca |
bool get_random_bytes (void *buf, size_t buflen);
|
|
Packit |
13e0ca |
|
|
Packit |
13e0ca |
extern void gensalt_sha_rn (char tag, size_t maxsalt, unsigned long defcount,
|
|
Packit |
13e0ca |
unsigned long mincount, unsigned long maxcount,
|
|
Packit |
13e0ca |
unsigned long count,
|
|
Packit |
13e0ca |
const uint8_t *rbytes, size_t nrbytes,
|
|
Packit |
13e0ca |
uint8_t *output, size_t output_size);
|
|
Packit |
13e0ca |
|
|
Packit |
13e0ca |
/* The "scratch" area passed to each of the individual hash functions is
|
|
Packit |
13e0ca |
this big. */
|
|
Packit |
13e0ca |
#define ALG_SPECIFIC_SIZE 8192
|
|
Packit |
13e0ca |
|
|
Packit |
13e0ca |
#endif /* crypt-private.h */
|