[openssl-dev] PBE_UNICODE
Kurt Roeckx
kurt at roeckx.be
Fri Nov 20 18:45:34 UTC 2015
On Thu, Nov 19, 2015 at 11:16:23PM +0100, Andy Polyakov wrote:
>
> The way I read PKCS12 the string should be big-endian UTF-16 one.
[...]
> Correct procedure should be to convert it to wchar_t and
> then ensure correct endianness.
Please note that wchar_t itself might not have any relation with
UTF. You should explictly convert from the locale charmap to
UTF16-BE.
Depending on the OS, there are functions available to ask what the
current encoding is and convert between encodings.
Kurt
More information about the openssl-dev
mailing list