亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dsa.h

?? openssl加密例子
?? H
字號:
/* crypto/dsa/dsa.h */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
 * All rights reserved.
 *
 * This package is an SSL implementation written
 * by Eric Young (eay@cryptsoft.com).
 * The implementation was written so as to conform with Netscapes SSL.
 * 
 * This library is free for commercial and non-commercial use as long as
 * the following conditions are aheared to.  The following conditions
 * apply to all code found in this distribution, be it the RC4, RSA,
 * lhash, DES, etc., code; not just the SSL code.  The SSL documentation
 * included with this distribution is covered by the same copyright terms
 * except that the holder is Tim Hudson (tjh@cryptsoft.com).
 * 
 * Copyright remains Eric Young's, and as such any Copyright notices in
 * the code are not to be removed.
 * If this package is used in a product, Eric Young should be given attribution
 * as the author of the parts of the library used.
 * This can be in the form of a textual message at program startup or
 * in documentation (online or textual) provided with the package.
 * 
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *    "This product includes cryptographic software written by
 *     Eric Young (eay@cryptsoft.com)"
 *    The word 'cryptographic' can be left out if the rouines from the library
 *    being used are not cryptographic related :-).
 * 4. If you include any Windows specific code (or a derivative thereof) from 
 *    the apps directory (application code) you must include an acknowledgement:
 *    "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
 * 
 * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 * 
 * The licence and distribution terms for any publically available version or
 * derivative of this code cannot be changed.  i.e. this code cannot simply be
 * copied and put under another distribution licence
 * [including the GNU Public Licence.]
 */

/*
 * The DSS routines are based on patches supplied by
 * Steven Schoch <schoch@sheba.arc.nasa.gov>.  He basically did the
 * work and I have just tweaked them a little to fit into my
 * stylistic vision for SSLeay :-) */

#ifndef HEADER_DSA_H
#define HEADER_DSA_H

#ifdef OPENSSL_NO_DSA
#error DSA is disabled.
#endif

#ifndef OPENSSL_NO_BIO
#include <openssl/bio.h>
#endif
#include <openssl/bn.h>
#include <openssl/crypto.h>
#include <openssl/ossl_typ.h>
#ifndef OPENSSL_NO_DH
# include <openssl/dh.h>
#endif

#ifndef OPENSSL_DSA_MAX_MODULUS_BITS
# define OPENSSL_DSA_MAX_MODULUS_BITS	10000
#endif

#define DSA_FLAG_CACHE_MONT_P	0x01
#define DSA_FLAG_NO_EXP_CONSTTIME       0x02 /* new with 0.9.7h; the built-in DSA
                                              * implementation now uses constant time
                                              * modular exponentiation for secret exponents
                                              * by default. This flag causes the
                                              * faster variable sliding window method to
                                              * be used for all exponents.
                                              */

/* If this flag is set external DSA_METHOD callbacks are allowed in FIPS mode
 * it is then the applications responsibility to ensure the external method
 * is compliant.
 */

#define DSA_FLAG_FIPS_EXTERNAL_METHOD_ALLOW	0x04

#if defined(OPENSSL_FIPS)
#define FIPS_DSA_SIZE_T	int
#endif

#ifdef  __cplusplus
extern "C" {
#endif

typedef struct dsa_st DSA;

typedef struct DSA_SIG_st
	{
	BIGNUM *r;
	BIGNUM *s;
	} DSA_SIG;

typedef struct dsa_method {
	const char *name;
	DSA_SIG * (*dsa_do_sign)(const unsigned char *dgst, int dlen, DSA *dsa);
	int (*dsa_sign_setup)(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp,
								BIGNUM **rp);
	int (*dsa_do_verify)(const unsigned char *dgst, int dgst_len,
							DSA_SIG *sig, DSA *dsa);
	int (*dsa_mod_exp)(DSA *dsa, BIGNUM *rr, BIGNUM *a1, BIGNUM *p1,
			BIGNUM *a2, BIGNUM *p2, BIGNUM *m, BN_CTX *ctx,
			BN_MONT_CTX *in_mont);
	int (*bn_mod_exp)(DSA *dsa, BIGNUM *r, BIGNUM *a, const BIGNUM *p,
				const BIGNUM *m, BN_CTX *ctx,
				BN_MONT_CTX *m_ctx); /* Can be null */
	int (*init)(DSA *dsa);
	int (*finish)(DSA *dsa);
	int flags;
	char *app_data;
} DSA_METHOD;

struct dsa_st
	{
	/* This first variable is used to pick up errors where
	 * a DSA is passed instead of of a EVP_PKEY */
	int pad;
	long version;
	int write_params;
	BIGNUM *p;
	BIGNUM *q;	/* == 20 */
	BIGNUM *g;

	BIGNUM *pub_key;  /* y public key */
	BIGNUM *priv_key; /* x private key */

	BIGNUM *kinv;	/* Signing pre-calc */
	BIGNUM *r;	/* Signing pre-calc */

	int flags;
	/* Normally used to cache montgomery values */
	char *method_mont_p;
	int references;
	CRYPTO_EX_DATA ex_data;
	const DSA_METHOD *meth;
	/* functional reference if 'meth' is ENGINE-provided */
	ENGINE *engine;
	};

#define DSAparams_dup(x) (DSA *)ASN1_dup((int (*)())i2d_DSAparams, \
		(char *(*)())d2i_DSAparams,(char *)(x))
#define d2i_DSAparams_fp(fp,x) (DSA *)ASN1_d2i_fp((char *(*)())DSA_new, \
		(char *(*)())d2i_DSAparams,(fp),(unsigned char **)(x))
#define i2d_DSAparams_fp(fp,x) ASN1_i2d_fp(i2d_DSAparams,(fp), \
		(unsigned char *)(x))
#define d2i_DSAparams_bio(bp,x) (DSA *)ASN1_d2i_bio((char *(*)())DSA_new, \
		(char *(*)())d2i_DSAparams,(bp),(unsigned char **)(x))
#define i2d_DSAparams_bio(bp,x) ASN1_i2d_bio(i2d_DSAparams,(bp), \
		(unsigned char *)(x))


DSA_SIG * DSA_SIG_new(void);
void	DSA_SIG_free(DSA_SIG *a);
int	i2d_DSA_SIG(const DSA_SIG *a, unsigned char **pp);
DSA_SIG * d2i_DSA_SIG(DSA_SIG **v, const unsigned char **pp, long length);

DSA_SIG * DSA_do_sign(const unsigned char *dgst,int dlen,DSA *dsa);
int	DSA_do_verify(const unsigned char *dgst,int dgst_len,
		      DSA_SIG *sig,DSA *dsa);

const DSA_METHOD *DSA_OpenSSL(void);

void	DSA_set_default_method(const DSA_METHOD *);
const DSA_METHOD *DSA_get_default_method(void);
int	DSA_set_method(DSA *dsa, const DSA_METHOD *);

DSA *	DSA_new(void);
DSA *	DSA_new_method(ENGINE *engine);
void	DSA_free (DSA *r);
/* "up" the DSA object's reference count */
int	DSA_up_ref(DSA *r);
int	DSA_size(const DSA *);
	/* next 4 return -1 on error */
int	DSA_sign_setup( DSA *dsa,BN_CTX *ctx_in,BIGNUM **kinvp,BIGNUM **rp);
int	DSA_sign(int type,const unsigned char *dgst,int dlen,
		unsigned char *sig, unsigned int *siglen, DSA *dsa);
int	DSA_verify(int type,const unsigned char *dgst,int dgst_len,
		const unsigned char *sigbuf, int siglen, DSA *dsa);
int DSA_get_ex_new_index(long argl, void *argp, CRYPTO_EX_new *new_func,
	     CRYPTO_EX_dup *dup_func, CRYPTO_EX_free *free_func);
int DSA_set_ex_data(DSA *d, int idx, void *arg);
void *DSA_get_ex_data(DSA *d, int idx);

DSA *	d2i_DSAPublicKey(DSA **a, const unsigned char **pp, long length);
DSA *	d2i_DSAPrivateKey(DSA **a, const unsigned char **pp, long length);
DSA * 	d2i_DSAparams(DSA **a, const unsigned char **pp, long length);
DSA *	DSA_generate_parameters(int bits,
		unsigned char *seed,int seed_len,
		int *counter_ret, unsigned long *h_ret,void
		(*callback)(int, int, void *),void *cb_arg);
int	DSA_generate_key(DSA *a);
int	i2d_DSAPublicKey(const DSA *a, unsigned char **pp);
int 	i2d_DSAPrivateKey(const DSA *a, unsigned char **pp);
int	i2d_DSAparams(const DSA *a,unsigned char **pp);

#ifndef OPENSSL_NO_BIO
int	DSAparams_print(BIO *bp, const DSA *x);
int	DSA_print(BIO *bp, const DSA *x, int off);
#endif
#ifndef OPENSSL_NO_FP_API
int	DSAparams_print_fp(FILE *fp, const DSA *x);
int	DSA_print_fp(FILE *bp, const DSA *x, int off);
#endif

#define DSS_prime_checks 50
/* Primality test according to FIPS PUB 186[-1], Appendix 2.1:
 * 50 rounds of Rabin-Miller */
#define DSA_is_prime(n, callback, cb_arg) \
	BN_is_prime(n, DSS_prime_checks, callback, NULL, cb_arg)

#ifndef OPENSSL_NO_DH
/* Convert DSA structure (key or just parameters) into DH structure
 * (be careful to avoid small subgroup attacks when using this!) */
DH *DSA_dup_DH(const DSA *r);
#endif

/* BEGIN ERROR CODES */
/* The following lines are auto generated by the script mkerr.pl. Any changes
 * made after this point may be overwritten when the script is next run.
 */
void ERR_load_DSA_strings(void);

/* Error codes for the DSA functions. */

/* Function codes. */
#define DSA_F_D2I_DSA_SIG				 110
#define DSA_F_DSAPARAMS_PRINT				 100
#define DSA_F_DSAPARAMS_PRINT_FP			 101
#define DSA_F_DSA_DO_SIGN				 112
#define DSA_F_DSA_DO_VERIFY				 113
#define DSA_F_DSA_NEW_METHOD				 103
#define DSA_F_DSA_PRINT					 104
#define DSA_F_DSA_PRINT_FP				 105
#define DSA_F_DSA_SIGN					 106
#define DSA_F_DSA_SIGN_SETUP				 107
#define DSA_F_DSA_SIG_NEW				 109
#define DSA_F_DSA_VERIFY				 108
#define DSA_F_I2D_DSA_SIG				 111
#define DSA_F_SIG_CB					 114

/* Reason codes. */
#define DSA_R_BAD_Q_VALUE				 102
#define DSA_R_DATA_TOO_LARGE_FOR_KEY_SIZE		 100
#define DSA_R_MISSING_PARAMETERS			 101
#define DSA_R_MODULUS_TOO_LARGE				 103

#ifdef  __cplusplus
}
#endif
#endif

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品三级av在线| 日本一区二区综合亚洲| 高清不卡在线观看av| 亚洲一区二区视频在线| 国产欧美视频一区二区| 欧美日韩精品电影| 99视频一区二区三区| 狠狠狠色丁香婷婷综合激情| 亚洲精品美国一| 国产精品免费av| 日韩欧美在线网站| 欧美三级日韩三级国产三级| 99久久精品情趣| 国产一区二区三区四区五区入口 | 亚洲丝袜精品丝袜在线| 精品理论电影在线| 在线电影院国产精品| 99久久国产综合精品色伊| 激情图区综合网| 午夜视黄欧洲亚洲| 艳妇臀荡乳欲伦亚洲一区| 久久丝袜美腿综合| 精品三级在线看| 日韩欧美在线123| 欧美麻豆精品久久久久久| 日本韩国欧美三级| 99国产精品99久久久久久| 国产91丝袜在线18| 国产成人福利片| 国产精品资源在线观看| 国内一区二区视频| 九九精品一区二区| 精品制服美女久久| 老司机精品视频线观看86| 秋霞电影一区二区| 奇米色一区二区| 久久精品国产一区二区| 免费人成在线不卡| 久久精品国产99久久6| 蓝色福利精品导航| 国产麻豆视频精品| 成人国产亚洲欧美成人综合网| 国产精品2024| 风流少妇一区二区| 成年人网站91| 色综合 综合色| 欧美曰成人黄网| 欧美日韩的一区二区| 91精品午夜视频| 欧美大片免费久久精品三p| 欧美videos大乳护士334| 精品免费日韩av| 欧美激情一区二区三区四区| 国产精品久久夜| 亚洲激情五月婷婷| 日韩精品视频网| 国内精品久久久久影院薰衣草 | 精品国产成人在线影院| 日本一区二区三区在线观看| 国产精品国产三级国产aⅴ无密码| 亚洲欧美在线另类| 亚洲成人午夜影院| 卡一卡二国产精品| 99视频在线精品| 欧美日韩精品欧美日韩精品| 欧美一区二区三区公司| 久久久久久久久伊人| 中文字幕一区二区三区精华液| 亚洲激情欧美激情| 日韩不卡一二三区| 国产成人免费av在线| 91福利国产精品| 久久综合九色综合欧美亚洲| 国产精品九色蝌蚪自拍| 亚洲国产视频a| 国产一区三区三区| 色噜噜狠狠色综合欧洲selulu| 欧美一级高清片| 国产精品三级视频| 免费不卡在线观看| 97精品国产97久久久久久久久久久久| 在线播放91灌醉迷j高跟美女| 久久久久久久久久久黄色| 一区二区视频在线看| 久久精品99久久久| 欧美亚洲国产一卡| 亚洲国产精品ⅴa在线观看| 亚洲午夜影视影院在线观看| 国产精品系列在线播放| 欧美人与性动xxxx| 国产精品久久久久久久浪潮网站 | 在线不卡一区二区| 国产精品卡一卡二| 精品在线你懂的| 欧美性极品少妇| 中文字幕精品在线不卡| 日韩av中文字幕一区二区三区| 成人av电影观看| 欧美大黄免费观看| 亚洲va国产天堂va久久en| 成人教育av在线| 日韩欧美一区二区视频| 伊人一区二区三区| 成人一区二区三区在线观看| 欧美乱妇20p| 一区二区在线观看不卡| 成人性生交大片免费看视频在线| 日韩免费看网站| 视频一区二区国产| 日本黄色一区二区| 欧美国产日本韩| 国产精品一二二区| 欧美一区二区三区成人| 亚洲sss视频在线视频| 99久久久久免费精品国产 | 樱桃国产成人精品视频| 粉嫩一区二区三区在线看| 日韩免费性生活视频播放| 亚洲成人黄色小说| 欧美艳星brazzers| 亚洲男女一区二区三区| 不卡视频在线观看| 国产精品免费观看视频| 国产成人久久精品77777最新版本 国产成人鲁色资源国产91色综 | 欧美va在线播放| 六月丁香婷婷久久| 日韩精品专区在线影院观看| 三级久久三级久久| 欧美视频你懂的| 一区二区三区久久久| 91亚洲国产成人精品一区二区三| 国产精品国产三级国产三级人妇 | 久久99精品国产麻豆不卡| 日韩午夜精品视频| 久久精品国内一区二区三区| 欧美一级在线视频| 蜜臀av性久久久久蜜臀aⅴ四虎| 6080日韩午夜伦伦午夜伦| 图片区日韩欧美亚洲| 色狠狠一区二区| 亚洲影院久久精品| 宅男在线国产精品| 久久99在线观看| 国产人久久人人人人爽| 国产成人在线影院| 亚洲视频免费在线观看| 色婷婷av一区| 日韩精品国产欧美| 欧美成人午夜电影| 国产激情视频一区二区三区欧美 | 丝袜美腿亚洲一区二区图片| 欧美日韩国产系列| 久久精品国产秦先生| 久久综合久久综合亚洲| 成人毛片在线观看| 亚洲欧美一区二区三区极速播放| 欧美视频精品在线| 美女久久久精品| 国产欧美精品国产国产专区| 99久久精品国产网站| 亚洲综合网站在线观看| 日韩西西人体444www| 国产麻豆一精品一av一免费| 1024成人网| 777午夜精品免费视频| 激情综合色播激情啊| 欧美激情一区二区在线| 日本电影亚洲天堂一区| 日韩精品免费专区| 欧美韩国日本不卡| 欧美日韩一区国产| 国产一区高清在线| 亚洲欧美一区二区三区孕妇| 欧美另类高清zo欧美| 成人午夜电影网站| 亚洲超碰97人人做人人爱| 久久久久久久久久久久久夜| 91福利精品视频| 国产精品一区二区久激情瑜伽| 亚洲欧洲一区二区在线播放| 欧美精品自拍偷拍动漫精品| 国产丶欧美丶日本不卡视频| 一区二区激情视频| 精品粉嫩aⅴ一区二区三区四区| 91视频在线观看免费| 久久精品国产亚洲高清剧情介绍| √…a在线天堂一区| 欧美一区二区三区喷汁尤物| 99国内精品久久| 韩国精品免费视频| 亚洲一区二区三区精品在线| 国产天堂亚洲国产碰碰| 欧美精品自拍偷拍| 99re8在线精品视频免费播放| 久久精品久久精品| 五月婷婷综合激情| 亚洲视频免费在线| 国产亚洲美州欧州综合国| 91精品国产91热久久久做人人| 99v久久综合狠狠综合久久|