Skip to content
Snippets Groups Projects
Select Git revision
  • 5cb171eb6de47dae287e8bdd47f7abfef437ff47
  • master default protected
  • hpke
  • ppc-chacha-4core
  • delete-internal-name-mangling
  • master-updates
  • ppc-gcm
  • ppc-chacha-2core
  • refactor-ecc-mod
  • ppc-chacha-core
  • use-mpn_cnd-functions
  • optimize-ecc-invert
  • default-m4-quote-char
  • power-asm-wip
  • test-fat
  • chacha-3core-neon
  • x86_64-salsa20-2core
  • salsa20-2core-neon
  • bcrypt
  • arm-salsa20-chacha-vsra
  • test-shlib-dir
  • 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

shadata.c

Blame
  • Forked from Nettle / nettle
    Source project has a limited visibility.
    dynamic_buffer.h 1.21 KiB
    /*\
    ||| This file a part of uLPC, and is copyright by Fredrik Hubinette
    ||| uLPC is distributed as GPL (General Public License)
    ||| See the files COPYING and DISCLAIMER for more information.
    \*/
    #ifndef DYNAMIC_BUFFER_H
    #define DYNAMIC_BUFFER_H
    
    #define BUFFER_BEGIN_SIZE 4080
    
    #include "types.h"
    
    struct string_s
    {
      char *str;
      SIZE_T len;
    };
    
    typedef struct string_s string;
    
    struct dynamic_buffer_s
    {
      string s;
      SIZE_T bufsize;
    };
    
    typedef struct dynamic_buffer_s dynamic_buffer;
    
    /* Prototypes begin here */
    char *low_make_buf_space(INT32 space,dynamic_buffer *buf);
    void low_my_putchar(char b,dynamic_buffer *buf);
    void low_my_binary_strcat(const char *b,INT32 l,dynamic_buffer *buf);
    void low_init_buf(dynamic_buffer *buf);
    void low_init_buf_with_string(string s,dynamic_buffer *buf);
    string complex_free_buf(void);
    void toss_buffer(dynamic_buffer *buf);
    char *simple_free_buf(void);
    struct lpc_string *low_free_buf(dynamic_buffer *buf);
    struct lpc_string *free_buf(void);
    char *make_buf_space(INT32 space);
    void my_putchar(char b);
    void my_binary_strcat(const char *b,INT32 l);
    void my_strcat(const char *b);
    void init_buf(void);
    void init_buf_with_string(string s);
    char *return_buf(void);
    /* Prototypes end here */
    
    #endif