Re: NSS - signing with MAC

2010-06-01 Thread Sebastian Mayer
Sebastian Mayer wrote: > 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;

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? > > So

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 -- de

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,