more const
authorNils Larsch <nils@openssl.org>
Fri, 22 Apr 2005 21:57:36 +0000 (21:57 +0000)
committerNils Larsch <nils@openssl.org>
Fri, 22 Apr 2005 21:57:36 +0000 (21:57 +0000)
crypto/ecdsa/ecdsa.h
crypto/ecdsa/ecs_ossl.c
crypto/ecdsa/ecs_vrf.c

index e6081bb2af52ad7a27ee52899dd2474d92adaec7..b0167fa5e243d4d703662e5fd1dc6d8c35e0bb8e 100644 (file)
@@ -92,7 +92,7 @@ struct ecdsa_method
        int (*ecdsa_sign_setup)(EC_KEY *eckey, BN_CTX *ctx, BIGNUM **kinv, 
                        BIGNUM **r);
        int (*ecdsa_do_verify)(const unsigned char *dgst, int dgst_len, 
-                       ECDSA_SIG *sig, EC_KEY *eckey);
+                       const ECDSA_SIG *sig, EC_KEY *eckey);
 #if 0
        int (*init)(EC_KEY *eckey);
        int (*finish)(EC_KEY *eckey);
@@ -191,8 +191,8 @@ ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst,int dgst_len,EC_KEY *eckey);
  * \param eckey pointer to the EC_KEY object containing a public EC key
  * \return 1 if the signature is valid, 0 if the signature is invalid and -1 on error
  */
-int      ECDSA_do_verify(const unsigned char *dgst, int dgst_len, ECDSA_SIG 
-               *sig, EC_KEY* eckey);
+int      ECDSA_do_verify(const unsigned char *dgst, int dgst_len,
+               const ECDSA_SIG *sig, EC_KEY* eckey);
 
 const ECDSA_METHOD *ECDSA_OpenSSL(void);
 
index 61125b282f35a6bc2e40a2ea647685ae0f069d29..79e2cd7e772d42b195d765eb25fafec9fe3b23d6 100644 (file)
@@ -66,7 +66,7 @@ static ECDSA_SIG *ecdsa_do_sign(const unsigned char *dgst, int dlen,
 static int ecdsa_sign_setup(EC_KEY *eckey, BN_CTX *ctx_in, BIGNUM **kinvp, 
                BIGNUM **rp);
 static int ecdsa_do_verify(const unsigned char *dgst, int dgst_len, 
-               ECDSA_SIG *sig, EC_KEY *eckey);
+               const ECDSA_SIG *sig, EC_KEY *eckey);
 
 static ECDSA_METHOD openssl_ecdsa_meth = {
        "OpenSSL ECDSA method",
@@ -320,7 +320,7 @@ err:
 }
 
 static int ecdsa_do_verify(const unsigned char *dgst, int dgst_len,
-               ECDSA_SIG *sig, EC_KEY *eckey)
+               const ECDSA_SIG *sig, EC_KEY *eckey)
 {
        int ret = -1;
        BN_CTX   *ctx;
index 15a6ab49f9d30feafa114bed9878bc0e83968189..465b6025fbad05fdd3cb14b3706649902255825f 100644 (file)
@@ -1,4 +1,7 @@
 /* crypto/ecdsa/ecdsa_vrf.c */
+/*
+ * Written by Nils Larsch for the OpenSSL project
+ */
 /* ====================================================================
  * Copyright (c) 1998-2002 The OpenSSL Project.  All rights reserved.
  *
@@ -64,7 +67,7 @@
  *     -1: error
  */
 int ECDSA_do_verify(const unsigned char *dgst, int dgst_len, 
-               ECDSA_SIG *sig, EC_KEY *eckey)
+               const ECDSA_SIG *sig, EC_KEY *eckey)
        {
        ECDSA_DATA *ecdsa = ecdsa_check(eckey);
        if (ecdsa == NULL)