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 https://list

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, 0x

NSS - signing with MAC

2010-05-31 Thread Sebastian Mayer
Hi All, I have some problems in initializing a MAC-based signing operation. Here is the code snippet (nothing special, mostly put together from the PKCS spec samples): #define BLOCKSIZE 16; CK_ULONG ulMacLen=BLOCKSIZE; CK_BYTE mac[ulMacLen]; CK_BYTE data[] = {"aaa"};

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. > > -- > Seba

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 li

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

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,