Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:pk

426 	struct crypto_public_key *pk;
428 pk = os_zalloc(sizeof(*pk));
429 if (pk == NULL)
432 res = rsa_import(key, len, &pk->rsa);
437 os_free(pk);
441 if (pk->rsa.type != PK_PUBLIC) {
444 rsa_free(&pk->rsa);
445 os_free(pk);
449 return pk;
457 struct crypto_private_key *pk;
459 pk = os_zalloc(sizeof(*pk));
460 if (pk == NULL)
463 res = rsa_import(key, len, &pk->rsa);
468 os_free(pk);
472 if (pk->rsa.type != PK_PRIVATE) {
475 rsa_free(&pk->rsa);
476 os_free(pk);
480 return pk;