Skip to content
Snippets Groups Projects
Select Git revision
  • f5cf311aa8a6707da653a63a0ca091d06abe0c91
  • master default protected
  • 9.0
  • 8.0
  • 7.8
  • 7.6
  • 7.4
  • 7.2
  • 7.0
  • 0.6
  • rosuav/latex-markdown-renderer
  • rxnpatch/rxnpatch
  • marcus/gobject-introspection
  • rxnpatch/8.0
  • rosuav/pre-listening-ports
  • nt-tools
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2000
  • v8.0.1998
  • v8.0.1996
  • v8.0.1994
  • v8.0.1992
  • v8.0.1990
  • v8.0.1988
  • v8.0.1986
  • rxnpatch/clusters/8.0/2025-04-29T124414
  • rxnpatch/2025-04-29T124414
  • v8.0.1984
  • v8.0.1982
  • v8.0.1980
  • v8.0.1978
  • v8.0.1976
  • v8.0.1974
  • v8.0.1972
  • v8.0.1970
  • v8.0.1968
  • v8.0.1966
41 results

opcodes.c

Blame
    • Henrik (Grubba) Grubbström's avatar
      b788cdfc
      Moved include of global.h first. · b788cdfc
      Henrik (Grubba) Grubbström authored
      Rev: src/modules/MIME/mime.c:1.12
      Rev: src/modules/Msql/msqlmod.c:1.8
      Rev: src/modules/Mysql/mysql.c:1.23
      Rev: src/modules/Mysql/result.c:1.12
      Rev: src/modules/Odbc/odbc.c:1.10
      Rev: src/modules/Odbc/odbc_result.c:1.14
      Rev: src/modules/Oracle/oracle.c:1.14
      Rev: src/modules/Postgres/pgresult.c:1.7
      Rev: src/modules/Postgres/postgres.c:1.7
      Rev: src/modules/Regexp/glue.c:1.12
      Rev: src/modules/Ssleay/ssleay.c:1.9
      Rev: src/modules/_Image_JPEG/image_jpeg.c:1.19
      Rev: src/modules/math/math.c:1.12
      Rev: src/modules/system/passwords.c:1.15
      Rev: src/modules/system/syslog.c:1.6
      Rev: src/modules/system/system.c:1.56
      Rev: src/opcodes.c:1.29
      Rev: src/operators.c:1.37
      b788cdfc
      History
      Moved include of global.h first.
      Henrik (Grubba) Grubbström authored
      Rev: src/modules/MIME/mime.c:1.12
      Rev: src/modules/Msql/msqlmod.c:1.8
      Rev: src/modules/Mysql/mysql.c:1.23
      Rev: src/modules/Mysql/result.c:1.12
      Rev: src/modules/Odbc/odbc.c:1.10
      Rev: src/modules/Odbc/odbc_result.c:1.14
      Rev: src/modules/Oracle/oracle.c:1.14
      Rev: src/modules/Postgres/pgresult.c:1.7
      Rev: src/modules/Postgres/postgres.c:1.7
      Rev: src/modules/Regexp/glue.c:1.12
      Rev: src/modules/Ssleay/ssleay.c:1.9
      Rev: src/modules/_Image_JPEG/image_jpeg.c:1.19
      Rev: src/modules/math/math.c:1.12
      Rev: src/modules/system/passwords.c:1.15
      Rev: src/modules/system/syslog.c:1.6
      Rev: src/modules/system/system.c:1.56
      Rev: src/opcodes.c:1.29
      Rev: src/operators.c:1.37
    hmac-sha256.c NaN GiB
    /* hmac-sha256.c
     *
     * HMAC-SHA256 message authentication code.
     */
    
    /* nettle, low-level cryptographics library
     *
     * Copyright (C) 2003 Niels Mller
     *  
     * The nettle library is free software; you can redistribute it and/or modify
     * it under the terms of the GNU Lesser General Public License as published by
     * the Free Software Foundation; either version 2.1 of the License, or (at your
     * option) any later version.
     * 
     * The nettle library is distributed in the hope that it will be useful, but
     * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
     * License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public License
     * along with the nettle library; see the file COPYING.LIB.  If not, write to
     * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
     * MA 02111-1307, USA.
     */
    
    #if HAVE_CONFIG_H
    # include "config.h"
    #endif
    
    #include "hmac.h"
    
    void
    hmac_sha256_set_key(struct hmac_sha256_ctx *ctx,
    		    unsigned key_length, const uint8_t *key)
    {
      HMAC_SET_KEY(ctx, &nettle_sha256, key_length, key);
    }
    
    void
    hmac_sha256_update(struct hmac_sha256_ctx *ctx,
    		   unsigned length, const uint8_t *data)
    {
      sha256_update(&ctx->state, length, data);
    }
    
    void
    hmac_sha256_digest(struct hmac_sha256_ctx *ctx,
    		   unsigned length, uint8_t *digest)
    {
      HMAC_DIGEST(ctx, &nettle_sha256, length, digest);
    }