In message <4dca9a91-1487-4bfc-8a4e-b79fad473...@dukhovni.org> on Tue, 5 Jun 
2018 18:37:21 -0400, Viktor Dukhovni <openssl-us...@dukhovni.org> said:

openssl-users> 
openssl-users> 
openssl-users> > On Jun 3, 2018, at 4:45 AM, Richard Levitte 
<levi...@openssl.org> wrote:
openssl-users> > 
openssl-users> > Yeah, I just learned that myself.  Somehow, I thought wchar_t 
would be
openssl-users> > Unicode characters.  So ok, with this information, UTF-8 makes
openssl-users> > sense...
openssl-users> 
openssl-users> Nico has convinced me that the mapping from UTF-8 to BMPString 
should
openssl-users> be UTF-16, which is agrees with the BMP representation on the 
code
openssl-users> points in the Basic Multinational Plane, but also supports 
surrogate
openssl-users> pairs for code points outside the plane, so that if someone 
wanted
openssl-users> to use "emoji" (or more traditional glyph outside the BMP) for 
their
openssl-users> password, they could.  This is a strict superset of UCS-2 and 
avoids
openssl-users> having to reject some UTF-8 codepoints.

Yup.  It seems that BMPString evolved from UCS-2 into UTF-16 at some
point, and that evolution affected PKCS#12 objects...

Cheers,
Richard

-- 
Richard Levitte         levi...@openssl.org
OpenSSL Project         http://www.openssl.org/~levitte/
_______________________________________________
openssl-project mailing list
openssl-project@openssl.org
https://mta.openssl.org/mailman/listinfo/openssl-project

Reply via email to