Branch: Tag:

2004-02-14

2004-02-14 02:54:57 by Martin Nilsson <mani@lysator.liu.se>

Added optflags

Rev: src/post_modules/Nettle/cipher.cmod:1.28
Rev: src/post_modules/Nettle/hash.cmod:1.16
Rev: src/post_modules/Nettle/nt.cmod:1.3

1:   /* hash.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: hash.cmod,v 1.15 2004/01/23 01:05:06 nilsson Exp $"); + RCSID("$Id: hash.cmod,v 1.16 2004/02/14 02:54:57 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   
57:    *! Returns a human readable name for the algorithm.    */    PIKEFUN string name() +  optflags OPT_TRY_OPTIMIZE;    {    if (!THIS->meta)    Pike_error("HashInfo not properly initialized.\n");
69:    *! Returns the size of a hash digests.    */    PIKEFUN int digest_size() +  optflags OPT_TRY_OPTIMIZE;    {    if (!THIS->meta)    Pike_error("HashInfo not properly initialized.\n");
81:    *! Returns the internal block size of the hash algorithm.    */    PIKEFUN int block_size() +  optflags OPT_TRY_OPTIMIZE;    {    if (!THIS->meta)    Pike_error("HashInfo not properly initialized.\n");
119:    *! Hashes more data.    */    PIKEFUN object update(string data) +  optflags OPT_SIDE_EFFECT;    {    const struct nettle_hash *meta =    GET_META(Pike_fp->current_object);