Branch: Tag:

2017-12-09

2017-12-09 10:37:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Documentation [Nettle]: Added some doc of HMAC.

44:   #endif      #ifdef HAVE_NETTLE_HMAC_H +  DOCSTART() @module HMAC +  *! +  *! Accellerated implementation of HMAC (Hashing for Message Authenticity +  *! Control) with the PIKE_NAME hash algorithm. +  *! +  *! @seealso +  *! @[Crypto.HMAC] +  DOCEND()    PIKECLASS _HMAC    flags ID_PROTECTED;    {
52:    lexical_inherit(1, MK_STRING("_HMAC"), 0, REPORT_ERROR);    }    +  DOCSTART() @class PIKE_NAME +  *! The HMAC hash state. +  DOCEND()    PIKECLASS State    {    CVAR struct HMAC_CTX(struct cmod_CONCAT_EVAL(NETTLE_NAME, _ctx)) ctx;
71:    }    }    +  DOCSTART() @decl void create(string(8bit) passwd, void|int b) +  *! @param passwd +  *! The secret password (K). +  *! +  *! @param b +  *! Block size. Must @expr{0@} (zero) or equal to the @[block_size()]. +  DOCEND()    PIKEFUN void create(string(8bit) passwd, void|int b)    {    const struct nettle_hash *meta = THIS->meta = ((struct Nettle_Hash_struct *)parent_storage(2, Nettle_Hash_program))->meta;
154:    Pike_error("Apply on parent of destructed object.\n");    }    } +  DOCSTART() @endclass State +  DOCEND()    }   #endif -  +  DOCSTART() @endmodule HMAC +  DOCEND()       DOCSTART() @class State    *!