update block crypto source, fix errors in crypto init
update tests
minor code cleanup, add more in symmetric chapter