Branch: Tag:

2003-07-29

2003-07-29 03:48:48 by Martin Nilsson <mani@lysator.liu.se>

Wups. Already implemented, but in another place.

Rev: src/post_modules/Nettle/hash.cmod:1.8

1:   /* hash.cmod -*- c -*- */      #include "global.h" - RCSID("$Id: hash.cmod,v 1.7 2003/07/29 03:44:39 nilsson Exp $"); + RCSID("$Id: hash.cmod,v 1.8 2003/07/29 03:48:48 nilsson Exp $");   #include "interpret.h"   #include "svalue.h"   
170:    push_string(end_shared_string(digest));    }    -  /*! @decl string hash(string data) -  *! -  *! Works as a shortcut for @expr{obj->update(data)->digest()@}. -  *! -  *! @note -  *! The hash buffer will not be cleared before @[data] is added -  *! to the buffer, so data added with calls to @[update] will be -  *! prepended to the @[data]. -  *! -  *! @seealso -  *! @[update] and @[digest]. -  */ -  PIKEFUN string hash(string data) { -  f_HashState_update(args); -  pop_stack(); -  f_HashState_digest(0); -  } -  +     INIT    {    werror("HashState->INIT\n");