Lines Matching refs:mechanism
140 CK_MECHANISM mechanism = {CKM_RSA_PKCS, NULL, 0};
518 chk_rv = C_SignInit(hSession, &mechanism, *currPrivKey);
524 printf("[%04lu/%02lx] Signature: ", (unsigned long) *currPrivKey, (unsigned long) mechanism.mechanism);
540 chk_rv = C_EncryptInit(hSession, &mechanism, *currPrivKey);
546 printf("[%04lu/%02lx] Encrypted(Test): ", (unsigned long) *currPrivKey, (unsigned long) mechanism.mechanism);
562 chk_rv = C_DecryptInit(hSession, &mechanism, *currPrivKey);
568 printf("[%04lu/%02lx] Decrypted(It works!): ", (unsigned long) *currPrivKey, (unsigned long) mechanism.mechanism);