update to c files for name change and pwdbased along with debugging src function calls

This commit is contained in:
Jacob Barthelmeh
2015-01-03 19:09:48 -07:00
parent 144798c962
commit 2520973b73
20 changed files with 388 additions and 403 deletions

View File

@@ -403,7 +403,7 @@ int main( int argc, char **argv )
/* wolfCrypt API */
/* Init Blake2b digest, track size incase final doesn't want to "remember" */
int Wolf_InitBlake2b(Blake2b* b2b, word32 digestSz)
int wc_InitBlake2b(Blake2b* b2b, word32 digestSz)
{
b2b->digestSz = digestSz;
@@ -412,14 +412,14 @@ int Wolf_InitBlake2b(Blake2b* b2b, word32 digestSz)
/* Blake2b Update */
int Wolf_Blake2bUpdate(Blake2b* b2b, const byte* data, word32 sz)
int wc_Blake2bUpdate(Blake2b* b2b, const byte* data, word32 sz)
{
return blake2b_update(b2b->S, data, sz);
}
/* Blake2b Final, if pass in zero size we use init digestSz */
int Wolf_Blake2bFinal(Blake2b* b2b, byte* final, word32 requestSz)
int wc_Blake2bFinal(Blake2b* b2b, byte* final, word32 requestSz)
{
word32 sz = requestSz ? requestSz : b2b->digestSz;