Skip to content
Snippets Groups Projects
Select Git revision
  • cc09f69844183a9faeb80098120c22d3b5de4895
  • master default protected
  • 9.0
  • 8.0
  • nt-tools
  • 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
  • rosuav/async-annotations
  • rosuav/pgsql-ssl
  • rxnpatch/rxnpatch-broken/2023-10-06T094250
  • grubba/fdlib
  • grubba/wip/sakura/8.0
  • v8.0.2020
  • v8.0.2018
  • v8.0.2016
  • v8.0.2014
  • v8.0.2012
  • v8.0.2008
  • v8.0.2006
  • v8.0.2004
  • v8.0.2002
  • 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
41 results

gc.h

Blame
    • Fredrik Hübinette (Hubbe)'s avatar
      424d9c8b
      more debug and fixed a memory leak in interpret.c · 424d9c8b
      Fredrik Hübinette (Hubbe) authored
      Rev: src/backend.c:1.41
      Rev: src/backend.h:1.7
      Rev: src/block_alloc.h:1.11
      Rev: src/block_alloc_h.h:1.4
      Rev: src/builtin_functions.c:1.168
      Rev: src/callback.c:1.17
      Rev: src/callback.h:1.8
      Rev: src/configure.in:1.281
      Rev: src/constants.c:1.18
      Rev: src/dmalloc.h:1.11
      Rev: src/error.c:1.35
      Rev: src/error.h:1.36
      Rev: src/gc.c:1.42
      Rev: src/gc.h:1.22
      Rev: src/interpret.c:1.122
      Rev: src/interpret.h:1.31
      Rev: src/interpreter.h:1.5
      Rev: src/modules/call_out/call_out.c:1.27
      Rev: src/modules/files/file.c:1.152
      Rev: src/modules/system/system.c:1.70
      Rev: src/pike_memory.c:1.37
      Rev: src/program.c:1.123
      Rev: src/signal_handler.c:1.129
      Rev: src/stralloc.c:1.59
      Rev: src/threads.c:1.93
      424d9c8b
      History
      more debug and fixed a memory leak in interpret.c
      Fredrik Hübinette (Hubbe) authored
      Rev: src/backend.c:1.41
      Rev: src/backend.h:1.7
      Rev: src/block_alloc.h:1.11
      Rev: src/block_alloc_h.h:1.4
      Rev: src/builtin_functions.c:1.168
      Rev: src/callback.c:1.17
      Rev: src/callback.h:1.8
      Rev: src/configure.in:1.281
      Rev: src/constants.c:1.18
      Rev: src/dmalloc.h:1.11
      Rev: src/error.c:1.35
      Rev: src/error.h:1.36
      Rev: src/gc.c:1.42
      Rev: src/gc.h:1.22
      Rev: src/interpret.c:1.122
      Rev: src/interpret.h:1.31
      Rev: src/interpreter.h:1.5
      Rev: src/modules/call_out/call_out.c:1.27
      Rev: src/modules/files/file.c:1.152
      Rev: src/modules/system/system.c:1.70
      Rev: src/pike_memory.c:1.37
      Rev: src/program.c:1.123
      Rev: src/signal_handler.c:1.129
      Rev: src/stralloc.c:1.59
      Rev: src/threads.c:1.93
    arcfour.h 1.55 KiB
    /* arcfour.h
     *
     * The arcfour/rc4 stream cipher.
     */
    
    /* nettle, low-level cryptographics library
     *
     * Copyright (C) 2001 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.
     */
     
    #ifndef NETTLE_ARCFOUR_H_INCLUDED
    #define NETTLE_ARCFOUR_H_INCLUDED
    
    #include <inttypes.h>
    
    /* Minimum and maximum keysizes, and a reasonable default. In
     * octets.*/
    #define ARCFOUR_MIN_KEY_SIZE 1
    #define ARCFOUR_MAX_KEY_SIZE 256
    #define ARCFOUR_KEY_SIZE 16
    
    struct arcfour_ctx
    {
      uint8_t S[256];
      uint8_t i;
      uint8_t j;
    };
    
    void
    arcfour_set_key(struct arcfour_ctx *ctx,
    		unsigned length, const uint8_t *key);
    
    void
    arcfour_crypt(struct arcfour_ctx *ctx,
    	      unsigned length, uint8_t *dst,
    	      const uint8_t *src);
    
    void
    arcfour_stream(struct arcfour_ctx *ctx,
    	       unsigned length, uint8_t *dst);
    
    #endif /* NETTLE_ARCFOUR_H_INCLUDED */