⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bn_blinding_new.pod

📁 开源的ssl算法openssl,版本0.9.8H
💻 POD
字号:
=pod=head1 NAMEBN_BLINDING_new, BN_BLINDING_free, BN_BLINDING_update, BN_BLINDING_convert, BN_BLINDING_invert, BN_BLINDING_convert_ex, BN_BLINDING_invert_ex, BN_BLINDING_get_thread_id, BN_BLINDING_set_thread_id, BN_BLINDING_get_flags,BN_BLINDING_set_flags, BN_BLINDING_create_param - blinding related BIGNUMfunctions.=head1 SYNOPSIS #include <openssl/bn.h> BN_BLINDING *BN_BLINDING_new(const BIGNUM *A, const BIGNUM *Ai,	BIGNUM *mod); void BN_BLINDING_free(BN_BLINDING *b); int BN_BLINDING_update(BN_BLINDING *b,BN_CTX *ctx); int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx); int BN_BLINDING_convert_ex(BIGNUM *n, BIGNUM *r, BN_BLINDING *b,	BN_CTX *ctx); int BN_BLINDING_invert_ex(BIGNUM *n, const BIGNUM *r, BN_BLINDING *b,	BN_CTX *ctx); unsigned long BN_BLINDING_get_thread_id(const BN_BLINDING *); void BN_BLINDING_set_thread_id(BN_BLINDING *, unsigned long); unsigned long BN_BLINDING_get_flags(const BN_BLINDING *); void BN_BLINDING_set_flags(BN_BLINDING *, unsigned long); BN_BLINDING *BN_BLINDING_create_param(BN_BLINDING *b,	const BIGNUM *e, BIGNUM *m, BN_CTX *ctx,	int (*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,			  const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx),	BN_MONT_CTX *m_ctx);=head1 DESCRIPTIONBN_BLINDING_new() allocates a new B<BN_BLINDING> structure and copiesthe B<A> and B<Ai> values into the newly created B<BN_BLINDING> object.BN_BLINDING_free() frees the B<BN_BLINDING> structure.BN_BLINDING_update() updates the B<BN_BLINDING> parameters by squaringthe B<A> and B<Ai> or, after specific number of uses and if thenecessary parameters are set, by re-creating the blinding parameters.BN_BLINDING_convert_ex() multiplies B<n> with the blinding factor B<A>.If B<r> is not NULL a copy the inverse blinding factor B<Ai> will bereturned in B<r> (this is useful if a B<RSA> object is shared amoungseveral threads). BN_BLINDING_invert_ex() multiplies B<n> with theinverse blinding factor B<Ai>. If B<r> is not NULL it will be used asthe inverse blinding.BN_BLINDING_convert() and BN_BLINDING_invert() are wrapperfunctions for BN_BLINDING_convert_ex() and BN_BLINDING_invert_ex()with B<r> set to NULL.BN_BLINDING_set_thread_id() and BN_BLINDING_get_thread_id()set and get the "thread id" value of the B<BN_BLINDING> structure,a field provided to users of B<BN_BLINDING> structure to help themprovide proper locking if needed for multi-threaded use. The "thread id" of a newly allocated B<BN_BLINDING> structure is zero.BN_BLINDING_get_flags() returns the BN_BLINDING flags. Currentlythere are two supported flags: B<BN_BLINDING_NO_UPDATE> andB<BN_BLINDING_NO_RECREATE>. B<BN_BLINDING_NO_UPDATE> inhibits theautomatic update of the B<BN_BLINDING> parameters after each useand B<BN_BLINDING_NO_RECREATE> inhibits the automatic re-creationof the B<BN_BLINDING> parameters after a fixed number of uses (currently32). In newly allocated B<BN_BLINDING> objects no flags are set.BN_BLINDING_set_flags() sets the B<BN_BLINDING> parameters flags.BN_BLINDING_create_param() creates new B<BN_BLINDING> parametersusing the exponent B<e> and the modulus B<m>. B<bn_mod_exp> andB<m_ctx> can be used to pass special functions for exponentiation(normally BN_mod_exp_mont() and B<BN_MONT_CTX>).=head1 RETURN VALUESBN_BLINDING_new() returns the newly allocated B<BN_BLINDING> structureor NULL in case of an error.BN_BLINDING_update(), BN_BLINDING_convert(), BN_BLINDING_invert(),BN_BLINDING_convert_ex() and BN_BLINDING_invert_ex() return 1 onsuccess and 0 if an error occured.BN_BLINDING_get_thread_id() returns the thread id (a B<unsigned long>value) or 0 if not set.BN_BLINDING_get_flags() returns the currently set B<BN_BLINDING> flags(a B<unsigned long> value).BN_BLINDING_create_param() returns the newly created B<BN_BLINDING> parameters or NULL on error.=head1 SEE ALSOL<bn(3)|bn(3)>=head1 HISTORYBN_BLINDING_convert_ex, BN_BLINDIND_invert_ex, BN_BLINDING_get_thread_id,BN_BLINDING_set_thread_id, BN_BLINDING_set_flags, BN_BLINDING_get_flagsand BN_BLINDING_create_param were first introduced in OpenSSL 0.9.8=head1 AUTHORNils Larsch for the OpenSSL project (http://www.openssl.org).=cut

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -