Here is the public key blob I use with the test case (as returned by
Tspi_Key_GetPubKey() for my SRK):
guint8 pubkey_dat[] = {
0x00, 0x00, 0x00, 0x01, // TCG_ALGORITHM_ID
0x00, 0x03, // TCG_ENC_SCHEME
0x00, 0x01, // TCG_SIG_DCHEME
0x00, 0x00, 0x00, 0x0c, // Parameter Size
0x00, 0x00, 0x08, 0x00, // Key Size
0x00, 0x00, 0x00, 0x02, // Number of Primes
0x00, 0x00, 0x00, 0x00, // Size of exponent
0x00, 0x00, 0x01, 0x00, // Length of Key
0xd9, 0x8e, 0x8e, 0xe7, 0x3b, 0x70, 0x4d, 0xa9, 0x77, 0x11, 0x9d,
0xb0, 0x32, 0x4a, 0xb7, 0x18,
0xfd, 0xc9, 0x9d, 0xf4, 0xaf, 0x0a, 0xb4, 0x38, 0xec, 0x17, 0xa6,
0x2c, 0xda, 0x82, 0x04, 0x28,
0x35, 0xdf, 0x3a, 0x19, 0x8a, 0xe1, 0xd4, 0xf4, 0x17, 0x3b, 0x05,
0xcd, 0x87, 0x97, 0x2b, 0x54,
0x96, 0x63, 0xb0, 0x9a, 0x9a, 0x00, 0xe4, 0x07, 0x39, 0x2b, 0xf2,
0x89, 0x6b, 0xed, 0x3a, 0xe6,
0x4f, 0xc0, 0xee, 0x8e, 0x1a, 0x84, 0x20, 0x38, 0x83, 0xe8, 0xdb,
0x23, 0x51, 0xd1, 0x57, 0xa8,
0xc8, 0x2d, 0xac, 0x24, 0xd4, 0xcd, 0xcd, 0x5b, 0xda, 0xb3, 0xaf,
0x4f, 0x10, 0x60, 0x6d, 0x48,
0x5f, 0xd7, 0x15, 0xbe, 0xd1, 0x63, 0x77, 0xa0, 0xa7, 0x31, 0xf0,
0x5d, 0x5a, 0xbd, 0x4c, 0x56,
0x68, 0xae, 0x25, 0x81, 0x16, 0x8f, 0xf7, 0xd7, 0x40, 0xee, 0x89,
0x4a, 0xa4, 0x95, 0xdb, 0xb8,
0x51, 0xf3, 0xa3, 0x3e, 0x30, 0xf2, 0xf8, 0xfc, 0x0f, 0x32, 0x52,
0xfb, 0xa5, 0xda, 0x8d, 0x4c,
0xda, 0xea, 0x66, 0xd9, 0xb4, 0x33, 0x80, 0x1f, 0xe4, 0x1b, 0x36,
0x17, 0xd9, 0xa3, 0x0d, 0x54,
0xd3, 0x45, 0xae, 0x97, 0xf2, 0xff, 0x2b, 0x63, 0xc5, 0x5a, 0x54,
0xb1, 0x10, 0x23, 0x14, 0x1f,
0x9b, 0x2b, 0xd7, 0xfe, 0xce, 0x36, 0xaa, 0x5d, 0xa5, 0x5d, 0x72,
0x48, 0x46, 0x95, 0x6c, 0x81,
0xa9, 0x36, 0x08, 0x6e, 0x5b, 0x99, 0x0f, 0xd3, 0x3f, 0x51, 0xd8,
0x4f, 0x66, 0x99, 0x6c, 0x77,
0x80, 0xf8, 0xe3, 0xb7, 0x71, 0x34, 0x26, 0x7a, 0x98, 0xb1, 0x5a,
0xcf, 0x49, 0x75, 0xe6, 0x70,
0x68, 0x61, 0xb7, 0x2c, 0x02, 0x0b, 0xfd, 0x40, 0xd8, 0x39, 0x95,
0x29, 0x22, 0x87, 0xa3, 0x4e,
0x20, 0xd0, 0x38, 0x80, 0x93, 0x73, 0x9e, 0x6d, 0xa1, 0x0d, 0x66,
0xc0, 0x85, 0xd7, 0x68, 0x99
};
gsize pubkey_dat_len = 284;
----- Original Message -----
> From: "Dmitri Toubelis" <[email protected]>
> To: "trousers-users" <[email protected]>
> Sent: Wednesday, April 16, 2014 11:44:04 PM
> Subject: [TrouSerS-users] Tspi_Key_CreateMigrationBlob() failure
>
> Hi,
>
> I'm implementing a TSS_MS_REWRAP key migration scheme with TPM and
> I'm having a problem with Tspi_Key_CreateMigrationBlob(). It fails
> with return code of 0x1 which is none of the codes defined in TSS
> spec nor TSS headers, so I have no clue why it is failing. The
> source code is here http://pastebin.com/5atxy94W. I'm using
> trousers-0.3.11.2 with TPM emulator from BerliOS project. Any ideas
> what might be wrong?
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/NeoTech
> _______________________________________________
> TrouSerS-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/trousers-users
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users