[cifs-protocol] RE: Regarding String2key for random trust keys ([MS-ADTS]

Andrew Bartlett abartlet at samba.org
Tue Aug 19 04:48:24 GMT 2008

On Fri, 2008-08-15 at 09:32 -0700, John Dunning wrote:
> Hello Andrew,
>     I wanted to ask you if you have taken a look at Section 3 of RFC
> 3629 which may be of help for this problem. 

Is that the expected target string format for string2key operations?

> If you have and it didn't help then we need to get more information on
> how you are actually doing the conversion. For example are you using
> your own function or a canned one?

We use our own implementation of iconv() for the UTF16 -> UTF8


It (rightly) rejects the random data as not being valid UTF16 input.  

As far as I can tell, it is not possible for random bytes to simply be
described as UTF16 (and then converted to another charset), so I suspect
we will need a filter or modified function.

Andrew Bartlett

Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Red Hat Inc.                  http://redhat.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.samba.org/archive/cifs-protocol/attachments/20080819/e8f2a89d/attachment.bin

More information about the cifs-protocol mailing list