Browse Source

[STM32F2-F4:CRYPTO]Fix hash_set_last_word_valid_bits()

pull/231/head
a1ien 11 years ago
committed by Piotr Esden-Tempski
parent
commit
67efedec54
  1. 2
      lib/stm32/common/hash_common_f24.c

2
lib/stm32/common/hash_common_f24.c

@ -99,7 +99,7 @@ Specifies the number of valid bits in the last word.
void hash_set_last_word_valid_bits(uint8_t validbits)
{
HASH_STR &= ~(HASH_STR_NBW);
HASH_STR |= 32 - validbits;
HASH_STR |= validbits;
}
/*---------------------------------------------------------------------------*/

Loading…
Cancel
Save