152419Sjulian/*- 252419Sjulian * Copyright (c) 2005 Pawel Jakub Dawidek <pjd@FreeBSD.org> 3139823Simp * All rights reserved. 4139823Simp * 5139823Simp * Redistribution and use in source and binary forms, with or without 652419Sjulian * modification, are permitted provided that the following conditions 752419Sjulian * are met: 852419Sjulian * 1. Redistributions of source code must retain the above copyright 952419Sjulian * notice, this list of conditions and the following disclaimer. 1052419Sjulian * 2. Redistributions in binary form must reproduce the above copyright 1152419Sjulian * notice, this list of conditions and the following disclaimer in the 1252419Sjulian * documentation and/or other materials provided with the distribution. 1352419Sjulian * 1452419Sjulian * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 1552419Sjulian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1652419Sjulian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1752419Sjulian * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE 1852419Sjulian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1952419Sjulian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2052419Sjulian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2152419Sjulian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2252419Sjulian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2352419Sjulian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2452419Sjulian * SUCH DAMAGE. 2552419Sjulian * 2652419Sjulian * $FreeBSD$ 2752419Sjulian */ 2852419Sjulian 2952419Sjulian#ifndef _PKCS5V2_H_ 3052419Sjulian#define _PKCS5V2_H_ 3152419Sjulianvoid pkcs5v2_genkey(uint8_t *key, unsigned keylen, const uint8_t *salt, 3252419Sjulian size_t saltsize, const char *passphrase, u_int iterations); 3352419Sjulian#ifndef _KERNEL 3452419Sjulianint pkcs5v2_calculate(int usecs); 3552419Sjulian#endif 3652419Sjulian#endif /* !_PKCS5V2_H_ */ 3752419Sjulian