Merge pull request #84 from apache/oct-fixes

make comp CT and check octet max len in toHex