This blog has an unencrypted dump  of the TSRequest.authInfo structure (it’s encrypted on wire) to assist partners implementing the Smart card logon (used in RDP) based on MS-CSSP specification. It will compliment Step 9 of section 4 of MS-CSSP.  

 

Unencrypted dump is –

 

30 82 01 0f a0 03 02 01-02 a1 82 01 06 04 82 01  0...............

02 30 81 ff a0 1a 04 18-62 00 62 00 62 00 62 00  .0......b.b.b.b.

62 00 62 00 62 00 62 00-62 00 62 00 62 00 62 00  b.b.b.b.b.b.b.b.

a1 81 e0 30 81 dd a0 03-02 01 01 a2 2e 04 2c 4f  ...0..........,O

00 4d 00 4e 00 49 00 4b-00 45 00 59 00 20 00 43  .M.N.I.K.E.Y. .C

00 61 00 72 00 64 00 4d-00 61 00 6e 00 20 00 33  .a.r.d.M.a.n. .3

00 78 00 32 00 31 00 20-00 30 00 a3 50 04 4e 6c  .x.2.1. .0..P.Nl

00 65 00 2d 00 4d 00 53-00 53 00 6d 00 61 00 72  .e.-.M.S.S.m.a.r

00 74 00 63 00 61 00 72-00 64 00 55 00 73 00 65  .t.c.a.r.d.U.s.e

00 72 00 2d 00 38 00 62-00 64 00 61 00 30 00 31  .r.-.8.b.d.a.0.1

00 39 00 66 00 2d 00 31-00 32 00 36 00 36 00 2d  .9.f.-.1.2.6.6.-

00 2d 00 35 00 33 00 32-00 36 00 38 00 a4 54 04  .-.5.3.2.6.8..T.

52 4d 00 69 00 63 00 72-00 6f 00 73 00 6f 00 66  RM.i.c.r.o.s.o.f

00 74 00 20 00 42 00 61-00 73 00 65 00 20 00 53  .t. .B.a.s.e. .S

00 6d 00 61 00 72 00 74-00 20 00 43 00 61 00 72  .m.a.r.t. .C.a.r

00 64 00 20 00 43 00 72-00 79 00 70 00 74 00 6f  .d. .C.r.y.p.t.o

00 20 00 50 00 72 00 6f-00 76 00 69 00 64 00 65  . .P.r.o.v.i.d.e

00 72 00 


 

Type casting this to TSRequest.authInfo structure –

 

Note - Above dump is ASN.1 DER encoded and for simplicity I’m not including ASN headers while performing below transformation -  

 

       Total Size: 275

- - - - - - - - - - - TSCredentials - - - - - - - - - - - - - - -

        tscredentials_len: 0X10F=271

        credType: 0X2=2

        creds_len: 0X106=262

- - - - - - - - - - - TSSmartCardCreds - - - - - - - - - - - - - - -

        pin: [bbbbbbbbbbbb]

        csp_len: 0XE0=224

- - - - - - - - - - - TSCspDataDetail - - - - - - - - - - - - - - -

        keySpec: 0X1=1

        cardName not present

        readerName: [OMNIKEY CardMan 3x21 0]

        containerName: [le-MSSmartcardUser-8bda019f-1266--53268]

        cspName: [Microsoft Base Smart Card Crypto Provider]

- - - - - - - - - - - TSSmartCardCreds ctd - - - - - - - - - - - - - - -

        userHint not present

        domainHint not present

Bytes Remaining: 275-275=0