include/SDL_test_md5.h
changeset 9233 b8eaf9623c0b
parent 8149 681eb46b8ac4
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9232:6ab4ae85c41e 9233:b8eaf9623c0b
    76   } SDLTest_Md5Context;
    76   } SDLTest_Md5Context;
    77 
    77 
    78 /* ---------- Function Prototypes ------------- */
    78 /* ---------- Function Prototypes ------------- */
    79 
    79 
    80 /**
    80 /**
    81  * /brief initialize the context
    81  * \brief initialize the context
    82  *
    82  *
    83  * /param  mdContext        pointer to context variable
    83  * \param  mdContext        pointer to context variable
    84  *
    84  *
    85  * Note: The function initializes the message-digest context
    85  * Note: The function initializes the message-digest context
    86  *       mdContext. Call before each new use of the context -
    86  *       mdContext. Call before each new use of the context -
    87  *       all fields are set to zero.
    87  *       all fields are set to zero.
    88  */
    88  */
    89  void SDLTest_Md5Init(SDLTest_Md5Context * mdContext);
    89  void SDLTest_Md5Init(SDLTest_Md5Context * mdContext);
    90 
    90 
    91 
    91 
    92 /**
    92 /**
    93  * /brief update digest from variable length data
    93  * \brief update digest from variable length data
    94  *
    94  *
    95  * /param  mdContext       pointer to context variable
    95  * \param  mdContext       pointer to context variable
    96  * /param  inBuf           pointer to data array/string
    96  * \param  inBuf           pointer to data array/string
    97  * /param  inLen           length of data array/string
    97  * \param  inLen           length of data array/string
    98  *
    98  *
    99  * Note: The function updates the message-digest context to account
    99  * Note: The function updates the message-digest context to account
   100  *       for the presence of each of the characters inBuf[0..inLen-1]
   100  *       for the presence of each of the characters inBuf[0..inLen-1]
   101  *       in the message whose digest is being computed.
   101  *       in the message whose digest is being computed.
   102 */
   102 */
   103 
   103 
   104  void SDLTest_Md5Update(SDLTest_Md5Context * mdContext, unsigned char *inBuf,
   104  void SDLTest_Md5Update(SDLTest_Md5Context * mdContext, unsigned char *inBuf,
   105                  unsigned int inLen);
   105                  unsigned int inLen);
   106 
   106 
   107 
   107 
   108 /*
   108 /**
   109  * /brief complete digest computation
   109  * \brief complete digest computation
   110  *
   110  *
   111  * /param mdContext     pointer to context variable
   111  * \param mdContext     pointer to context variable
   112  *
   112  *
   113  * Note: The function terminates the message-digest computation and
   113  * Note: The function terminates the message-digest computation and
   114  *       ends with the desired message digest in mdContext.digest[0..15].
   114  *       ends with the desired message digest in mdContext.digest[0..15].
   115  *       Always call before using the digest[] variable.
   115  *       Always call before using the digest[] variable.
   116 */
   116 */