Initialize the hash state @param md The hash state you wish to initialize @return CRYPT_OK if successful */
| 654 | @return CRYPT_OK if successful |
| 655 | */ |
| 656 | int tiger_init(hash_state *md) |
| 657 | { |
| 658 | LTC_ARGCHK(md != NULL); |
| 659 | md->tiger.state[0] = CONST64(0x0123456789ABCDEF); |
| 660 | md->tiger.state[1] = CONST64(0xFEDCBA9876543210); |
| 661 | md->tiger.state[2] = CONST64(0xF096A5B4C3B2E187); |
| 662 | md->tiger.curlen = 0; |
| 663 | md->tiger.length = 0; |
| 664 | return CRYPT_OK; |
| 665 | } |
| 666 | |
| 667 | /** |
| 668 | Process a block of memory though the hash |