添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
焦虑的面包  ·  node: ...·  2 周前    · 
谈吐大方的薯片  ·  【OpenSSL ...·  2 周前    · 
淡定的创口贴  ·  Swift ...·  1 周前    · 
乐观的西瓜  ·  Tajikistan | World ...·  7 月前    · 

" Fossies " - the Fresh Open Source Software Archive

Member "libressl-3.8.1/crypto/ecdsa/ecdsa_local.h" (21 Aug 2023, 3371 Bytes) of package / linux / misc / libressl-3.8.1.tar.gz :

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard ) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "ecdsa_local.h" see the Fossies "Dox" file reference documentation.
    1 /* $OpenBSD: ecdsa_local.h,v 1.2 2023/07/28 15:50:33 tb Exp $ */
    3  * Written by Nils Larsch for the OpenSSL project
    5 /* ====================================================================
    8  * Redistribution and use in source and binary forms, with or without
    9  * modification, are permitted provided that the following conditions
   10  * are met:
   12  * 1. Redistributions of source code must retain the above copyright
   13  *    notice, this list of conditions and the following disclaimer.
   15  * 2. Redistributions in binary form must reproduce the above copyright
   16  *    notice, this list of conditions and the following disclaimer in
   17  *    the documentation and/or other materials provided with the
   18  *    distribution.
   20  * 3. All advertising materials mentioning features or use of this
   21  *    software must display the following acknowledgment:
   22  *    "This product includes software developed by the OpenSSL Project
   23  *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
   25  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
   26  *    endorse or promote products derived from this software without
   27  *    prior written permission. For written permission, please contact
   28  *    licensing@OpenSSL.org.
   30  * 5. Products derived from this software may not be called "OpenSSL"
   31  *    nor may "OpenSSL" appear in their names without prior written
   32  *    permission of the OpenSSL Project.
   34  * 6. Redistributions of any form whatsoever must retain the following
   35  *    acknowledgment:
   36  *    "This product includes software developed by the OpenSSL Project
   37  *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
   39  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
   40  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   41  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   42  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
   43  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   44  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   45  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
   46  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
   47  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
   48  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   49  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
   50  * OF THE POSSIBILITY OF SUCH DAMAGE.
   51  * ====================================================================
   53  * This product includes cryptographic software written by Eric Young
   54  * (eay@cryptsoft.com).  This product includes software written by Tim
   55  * Hudson (tjh@cryptsoft.com).
   57  */
   59 #ifndef HEADER_ECS_LOCAL_H
   60 #define HEADER_ECS_LOCAL_H
   62 #include <openssl/ec.h>
   64 __BEGIN_HIDDEN_DECLS
   66 struct ECDSA_SIG_st  {
   67     BIGNUM *r;
   68     BIGNUM *s;
   69  };
   71 int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *in_ctx, BIGNUM **out_kinv,
   72     BIGNUM **out_r);
   73 int ecdsa_sign(int type, const unsigned char *digest, int digest_len,
   74     unsigned char *signature, unsigned int *signature_len, const BIGNUM *kinv,
   75     const BIGNUM *r, EC_KEY *eckey);
   76 ECDSA_SIG *ecdsa_sign_sig(const unsigned char *digest, int digest_len,
   77     const BIGNUM *in_kinv, const BIGNUM *in_r, EC_KEY *eckey);