Fixed v3 and v5 according to the RFC errata

http://www.rfc-editor.org/errata_search.php?rfc=4122