Implemented get_byte() method for mgf1_bitspender class
authorAndreas Steffen <andreas.steffen@strongswan.org>
Mon, 10 Nov 2014 06:56:28 +0000 (07:56 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sat, 29 Nov 2014 13:51:16 +0000 (14:51 +0100)
commit72bb7eec9c626859c46ce9d8d81dc89854eacb4d
treef435d94f30663092f37c05defc92a6a8572525de
parent5f7a9ea9c3630d37aee0cb1fcea7d76abf319547
Implemented get_byte() method for mgf1_bitspender class

The new get_byte() method returns a pseudo-random byte at a time.
Changed the get_bits() interface to the same interface as get_byte().
Updated the mgf1 unit-tests accordingly.
src/libstrongswan/crypto/mgf1/mgf1_bitspender.c
src/libstrongswan/crypto/mgf1/mgf1_bitspender.h
src/libstrongswan/plugins/ntru/ntru_poly.c
src/libstrongswan/tests/suites/test_mgf1.c