• Home
  • Raw
  • Download

Lines Matching refs:usedspace

519 	unsigned int	freespace, usedspace;  in SHA256_Update()  local
529 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Update()
530 if (usedspace > 0) { in SHA256_Update()
532 freespace = SHA256_BLOCK_LENGTH - usedspace; in SHA256_Update()
536 bcopy(data, &context->buffer[usedspace], freespace); in SHA256_Update()
543 bcopy(data, &context->buffer[usedspace], len); in SHA256_Update()
546 usedspace = freespace = 0; in SHA256_Update()
563 usedspace = freespace = 0; in SHA256_Update()
568 unsigned int usedspace; in SHA256_Final() local
575 usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH; in SHA256_Final()
580 if (usedspace > 0) { in SHA256_Final()
582 context->buffer[usedspace++] = 0x80; in SHA256_Final()
584 if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) { in SHA256_Final()
586 bzero(&context->buffer[usedspace], SHA256_SHORT_BLOCK_LENGTH - usedspace); in SHA256_Final()
588 if (usedspace < SHA256_BLOCK_LENGTH) { in SHA256_Final()
589 bzero(&context->buffer[usedspace], SHA256_BLOCK_LENGTH - usedspace); in SHA256_Final()
626 usedspace = 0; in SHA256_Final()
841 unsigned int freespace, usedspace; in SHA512_Update() local
851 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Update()
852 if (usedspace > 0) { in SHA512_Update()
854 freespace = SHA512_BLOCK_LENGTH - usedspace; in SHA512_Update()
858 bcopy(data, &context->buffer[usedspace], freespace); in SHA512_Update()
865 bcopy(data, &context->buffer[usedspace], len); in SHA512_Update()
868 usedspace = freespace = 0; in SHA512_Update()
885 usedspace = freespace = 0; in SHA512_Update()
889 unsigned int usedspace; in SHA512_Last() local
891 usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH; in SHA512_Last()
897 if (usedspace > 0) { in SHA512_Last()
899 context->buffer[usedspace++] = 0x80; in SHA512_Last()
901 if (usedspace <= SHA512_SHORT_BLOCK_LENGTH) { in SHA512_Last()
903 bzero(&context->buffer[usedspace], SHA512_SHORT_BLOCK_LENGTH - usedspace); in SHA512_Last()
905 if (usedspace < SHA512_BLOCK_LENGTH) { in SHA512_Last()
906 bzero(&context->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace); in SHA512_Last()