[PATCH 0/7] MR12: crypt32: Fix short output string length handling in str.c plus a bit of refactoring