Lines Matching refs:tpriv
1315 CK_ATTRIBUTE tpub[16], tpriv[16]; in pkcs11_rsa_generate_private_key() local
1340 FILL_ATTR(tpriv, npriv, CKA_TOKEN, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1341 FILL_ATTR(tpriv, npriv, CKA_LABEL, plabel, strlen(plabel)); in pkcs11_rsa_generate_private_key()
1342 FILL_ATTR(tpriv, npriv, CKA_PRIVATE, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1343 FILL_ATTR(tpriv, npriv, CKA_SENSITIVE, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1344 FILL_ATTR(tpriv, npriv, CKA_DECRYPT, &false_val, sizeof(false_val)); in pkcs11_rsa_generate_private_key()
1345 FILL_ATTR(tpriv, npriv, CKA_SIGN, &true_val, sizeof(true_val)); in pkcs11_rsa_generate_private_key()
1346 FILL_ATTR(tpriv, npriv, CKA_SIGN_RECOVER, &false_val, in pkcs11_rsa_generate_private_key()
1348 FILL_ATTR(tpriv, npriv, CKA_UNWRAP, &false_val, sizeof(false_val)); in pkcs11_rsa_generate_private_key()
1349 FILL_ATTR(tpriv, npriv, CKA_DERIVE, &false_val, sizeof(false_val)); in pkcs11_rsa_generate_private_key()
1350 FILL_ATTR(tpriv, npriv, CKA_ID, &keyid, sizeof(keyid)); in pkcs11_rsa_generate_private_key()
1356 if ((rv = f->C_GenerateKeyPair(session, &mech, tpub, npub, tpriv, npriv, in pkcs11_rsa_generate_private_key()
1428 CK_ATTRIBUTE tpub[16], tpriv[16]; in pkcs11_ecdsa_generate_private_key() local
1457 FILL_ATTR(tpriv, npriv, CKA_TOKEN, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
1458 FILL_ATTR(tpriv, npriv, CKA_LABEL, plabel, strlen(plabel)); in pkcs11_ecdsa_generate_private_key()
1459 FILL_ATTR(tpriv, npriv, CKA_PRIVATE, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
1460 FILL_ATTR(tpriv, npriv, CKA_SENSITIVE, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
1461 FILL_ATTR(tpriv, npriv, CKA_DECRYPT, &false_val, sizeof(false_val)); in pkcs11_ecdsa_generate_private_key()
1462 FILL_ATTR(tpriv, npriv, CKA_SIGN, &true_val, sizeof(true_val)); in pkcs11_ecdsa_generate_private_key()
1463 FILL_ATTR(tpriv, npriv, CKA_SIGN_RECOVER, &false_val, in pkcs11_ecdsa_generate_private_key()
1465 FILL_ATTR(tpriv, npriv, CKA_UNWRAP, &false_val, sizeof(false_val)); in pkcs11_ecdsa_generate_private_key()
1466 FILL_ATTR(tpriv, npriv, CKA_DERIVE, &false_val, sizeof(false_val)); in pkcs11_ecdsa_generate_private_key()
1467 FILL_ATTR(tpriv, npriv, CKA_ID, &keyid, sizeof(keyid)); in pkcs11_ecdsa_generate_private_key()
1473 if ((rv = f->C_GenerateKeyPair(session, &mech, tpub, npub, tpriv, npriv, in pkcs11_ecdsa_generate_private_key()