Re: Secret key creation with C_ObjectCreate

2010-06-01 Thread Robert Relyea
On 05/31/2010 02:02 AM, Sebastian Mayer wrote: Hi All, I'm having some difficulties in creating a simple AES key as follows: CK_OBJECT_HANDLE hKey; CK_OBJECT_CLASS keyClass = CKO_SECRET_KEY; CK_KEY_TYPE keyType = CKK_AES; CK_BYTE keyValue[] = { 0x01, 0x23, 0x45,

Secret key creation with C_ObjectCreate

2010-05-31 Thread Sebastian Mayer
Hi All, I'm having some difficulties in creating a simple AES key as follows: CK_OBJECT_HANDLE hKey; CK_OBJECT_CLASS keyClass = CKO_SECRET_KEY; CK_KEY_TYPE keyType = CKK_AES; CK_BYTE keyValue[] = { 0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x45,

Re: Secret key creation with C_ObjectCreate

2010-05-31 Thread M. Hunstock
Am 31.05.2010 11:02, schrieb Sebastian Mayer: What did I overlook here? You did not give information about the module you are using. Are you trying this with the NSS module? -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-tech-crypto

Re: Secret key creation with C_ObjectCreate

2010-05-31 Thread Sebastian Mayer
M. Hunstock wrote: Am 31.05.2010 11:02, schrieb Sebastian Mayer: What did I overlook here? You did not give information about the module you are using. Are you trying this with the NSS module? Sorry, yes I use the NSS module version 3.12. -- Sebastian -- dev-tech-crypto mailing list

Re: Secret key creation with C_ObjectCreate

2010-05-31 Thread Sebastian Mayer
Sebastian Mayer wrote: M. Hunstock wrote: Am 31.05.2010 11:02, schrieb Sebastian Mayer: What did I overlook here? You did not give information about the module you are using. Are you trying this with the NSS module? Sorry, yes I use the NSS module version 3.12. -- Sebastian And

Re: Secret key creation with C_ObjectCreate

2010-05-31 Thread Nelson B Bolyard
On 2010/05/31 02:02 PDT, Sebastian Mayer wrote: Hi All, I'm having some difficulties in creating a simple AES key as follows: CK_OBJECT_HANDLE hKey; CK_OBJECT_CLASS keyClass = CKO_SECRET_KEY; CK_KEY_TYPE keyType = CKK_AES; CK_BYTE keyValue[] = { 0x01, 0x23, 0x45,

Re: Secret key creation with C_ObjectCreate

2010-05-31 Thread Nelson B Bolyard
On 2010/05/31 11:12 PDT, Sebastian Mayer wrote: Sebastian Mayer wrote: And maybe I should also add that I'm running the module in FIPS mode. yes, that's the crucial detail. See my reply to your original post. -- dev-tech-crypto mailing list dev-tech-crypto@lists.mozilla.org