Skip to content
Snippets Groups Projects
Select Git revision
  • a986fa71015e84dc627a5ed1dcefe622d75b16f2
  • x86_ghash
  • x86_poly
  • ppc-poly1305-multi
  • ppc-poly-multi-44
  • power7-chacha-fix
  • ppc-r64-44-n
  • ppc-r64-44
  • s390x-gief-fix
  • chacha_m4_fix
  • arm64-poly
  • poly_avx2
  • s390x-poly
  • ppc-poly
  • s390x-ghash-refactor
  • arm64-chacha
  • s390x-ecc-7748
  • s390x-ecc-mod
  • s390x-vf-fix
  • s390x-chacha
  • s390x-sha1
  • nettle_3.6_release_20200429
  • nettle_3.6rc3
  • nettle_3.6rc2
  • nettle_3.6rc1
  • nettle_3.5.1_release_20190627
  • nettle_3.5_release_20190626
  • nettle_3.5rc1
  • nettle_3.4.1_release_20181204
  • nettle_3.4.1rc1
  • nettle_3.4_release_20171119
  • nettle_3.4rc2
  • nettle_3.4rc1
  • nettle_3.3_release_20161001
  • nettle_3.2_release_20160128
  • nettle_3.1.1_release_20150424
  • nettle_3.1_release_20150407
  • nettle_3.1rc3
  • nettle_3.1rc2
  • nettle_3.1rc1
  • nettle_3.0_release_20140607
41 results

ecdsa-sign-test.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    • Niels Möller's avatar
      bfe24f58
      Delete tests and code for ecdsa over curve25519. · bfe24f58
      Niels Möller authored
      * ecc-eh-to-a.c (ecc_eh_to_a): Require op == 0, delete code only
      used for non-standard ecdsa over curve25519.
      * testsuite/ecdsa-sign-test.c (test_main): Delete test of ecdsa
      over curve25519.
      * testsuite/ecdsa-verify-test.c (test_main): Likewise.
      * testsuite/ecdsa-keygen-test.c (test_main): Exclude curve25519
      from test.
      bfe24f58
      History
      Delete tests and code for ecdsa over curve25519.
      Niels Möller authored
      * ecc-eh-to-a.c (ecc_eh_to_a): Require op == 0, delete code only
      used for non-standard ecdsa over curve25519.
      * testsuite/ecdsa-sign-test.c (test_main): Delete test of ecdsa
      over curve25519.
      * testsuite/ecdsa-verify-test.c (test_main): Likewise.
      * testsuite/ecdsa-keygen-test.c (test_main): Exclude curve25519
      from test.
    sybase.pike 2.29 KiB
    /*
     * Sybase driver for the Pike programming language.
     * By Francesco Chemolli <kinkie@roxen.com> 10/12/1999
     *
     */
    
    #pike __REAL_VERSION__
    #require constant(sybase.sybase)
    
    // Cannot dump this since the #require check may depend on the
    // presence of system libs at runtime.
    constant dont_dump_program = 1;
    
    inherit sybase.sybase:mo;
    #define THROW(X) throw(({X+"\n",backtrace()}))
    
    
    /*
     * Deprecated. Use connect(host,db,user,pass) instead.
     */
    __deprecated__ void select_db(string db)
    {
      mo::big_query("use "+db);
    }
    
    /*
     * Deprecated. Use an SQL command instead.
     */
    __deprecated__ void create_db (string dbname) {
      mo::big_query("create database "+dbname);
    }
    
    /*
     * Deprecated. Use an SQL command instead.
     */
    __deprecated__ void drop_db (string dbname) {
      mo::big_query("drop database "+dbname);
    }
    
    void shutdown() {
      catch { //there _will_ be an error. It's just that we don't care about it.
        mo::big_query("shutdown");
      };
    }
    
    string server_info () {
      return "sybase/10.X or 11.X";
    }
    
    /*
     * Unimplemented. Anyone knows Transact-SQL well enough?
     * maybe we could use the connection properties otherwise (CS_HOSTNAME)
     */
    string host_info() {
      return "unknown";
    }
    
    /*
     * Unimplemented. Anyone knows Transact-SQL well enough?
     */
    array(string) list_dbs(string|void wild) {
      THROW("Unsupported");
    }
    
    /*
     * Unimplemented. PLEASE tell me somebody knows how to do this.
     * There MUST be some system stored procedure...
     */
    array(string) list_tables(string|void wild) {
      THROW("Unsupported");
    }
    
    /*
     * Unimplemented.
     */
    array(string) list_fields(string|void wild) {
      THROW("Unsupported");
    }
    
    int num_rows() {
      THROW("Unsupported by the DB server");
    }
    
    void seek(int skipthismany) {
      if (skipthismany<0)
        THROW("Negative skips are not supported");
      if (!skipthismany)
        return;
      while (skipthismany && fetch_row()){
        skipthismany--;
      }
    }
    
    void create(void|string host, void|string db, void|string user,
    	    void|string _pass, void|mapping options) {
      string pass = _pass;
      _pass = "CENSORED";
      mo::create(host||"",db||"",user||"",pass||"",options);
      if (db && stringp(db) && sizeof(db)) {
        mo::big_query("use "+db);
      }
    }
    
    int|object big_query(string q, mapping(string|int:mixed)|void bindings) {
      if (!bindings)
        return ::big_query(q);
      return ::big_query(.sql_util.emulate_bindings(q,bindings,this));
    }