176633Stshiozak/* ==================================================================== 276633Stshiozak * Copyright (c) 2007 The OpenSSL Project. All rights reserved. 376633Stshiozak * 476633Stshiozak * Redistribution and use in source and binary forms, with or without 576633Stshiozak * modification, are permitted provided that the following conditions 676633Stshiozak * are met: 776633Stshiozak * 876633Stshiozak * 1. Redistributions of source code must retain the above copyright 976633Stshiozak * notice, this list of conditions and the following disclaimer. 1076633Stshiozak * 1176633Stshiozak * 2. Redistributions in binary form must reproduce the above copyright 1276633Stshiozak * notice, this list of conditions and the following disclaimer in 1376633Stshiozak * the documentation and/or other materials provided with the 1476633Stshiozak * distribution. 1576633Stshiozak * 1676633Stshiozak * 3. All advertising materials mentioning features or use of this 1776633Stshiozak * software must display the following acknowledgment: 1876633Stshiozak * "This product includes software developed by the OpenSSL Project 1976633Stshiozak * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" 2076633Stshiozak * 2176633Stshiozak * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 2276633Stshiozak * endorse or promote products derived from this software without 2376633Stshiozak * prior written permission. For written permission, please contact 2476633Stshiozak * openssl-core@openssl.org. 2576633Stshiozak * 2676633Stshiozak * 5. Products derived from this software may not be called "OpenSSL" 2776633Stshiozak * nor may "OpenSSL" appear in their names without prior written 2876633Stshiozak * permission of the OpenSSL Project. 2976633Stshiozak * 3076633Stshiozak * 6. Redistributions of any form whatsoever must retain the following 3176633Stshiozak * acknowledgment: 3276633Stshiozak * "This product includes software developed by the OpenSSL Project 3376633Stshiozak * for use in the OpenSSL Toolkit (http://www.openssl.org/)" 3476633Stshiozak * 3576633Stshiozak * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 3676633Stshiozak * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3776633Stshiozak * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 3876633Stshiozak * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 3976633Stshiozak * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 4076633Stshiozak * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 4176633Stshiozak * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 4276633Stshiozak * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4376633Stshiozak * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 4476633Stshiozak * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 4576633Stshiozak * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 4676633Stshiozak * OF THE POSSIBILITY OF SUCH DAMAGE. 4776633Stshiozak * ==================================================================== 4876633Stshiozak * 4976633Stshiozak * This product includes cryptographic software written by Eric Young 5076633Stshiozak * (eay@cryptsoft.com). This product includes software written by Tim 5176633Stshiozak * Hudson (tjh@cryptsoft.com). 5276633Stshiozak * 5376633Stshiozak */ 5476633Stshiozak 5576633Stshiozak#include <openssl/dsa.h> 5676633Stshiozak 5776633Stshiozakint dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits, 5876633Stshiozak const EVP_MD *evpmd, const unsigned char *seed_in, 5976633Stshiozak size_t seed_len, unsigned char *seed_out, 6076633Stshiozak int *counter_ret, unsigned long *h_ret, 6176633Stshiozak BN_GENCB *cb); 6276633Stshiozak