Lines Matching refs:rsa_key
417 gcry_sexp_t rsa_key; in ntfs_rsa_private_key_import_from_gnutls() local
433 rsa_key = NULL; in ntfs_rsa_private_key_import_from_gnutls()
446 if (i == 6 && gcry_sexp_build(&rsa_key, NULL, in ntfs_rsa_private_key_import_from_gnutls()
451 rsa_key = NULL; in ntfs_rsa_private_key_import_from_gnutls()
456 return (ntfs_rsa_private_key)rsa_key; in ntfs_rsa_private_key_import_from_gnutls()
462 static void ntfs_rsa_private_key_release(ntfs_rsa_private_key rsa_key) in ntfs_rsa_private_key_release() argument
464 gcry_sexp_release((gcry_sexp_t)rsa_key); in ntfs_rsa_private_key_release()
480 ntfs_rsa_private_key rsa_key = NULL; in ntfs_pkcs12_extract_rsa_key() local
610 rsa_key = ntfs_rsa_private_key_import_from_gnutls(pkey); in ntfs_pkcs12_extract_rsa_key()
611 if (!rsa_key) in ntfs_pkcs12_extract_rsa_key()
706 if (rsa_key && (err || *df_type == DF_TYPE_UNKNOWN || in ntfs_pkcs12_extract_rsa_key()
711 ntfs_rsa_private_key_release(rsa_key); in ntfs_pkcs12_extract_rsa_key()
712 rsa_key = NULL; in ntfs_pkcs12_extract_rsa_key()
722 return rsa_key; in ntfs_pkcs12_extract_rsa_key()
765 ntfs_rsa_private_key rsa_key) in ntfs_raw_fek_decrypt() argument
793 err = gcry_pk_decrypt(&fek_sexp2, fek_sexp, (gcry_sexp_t)rsa_key); in ntfs_raw_fek_decrypt()
1164 ntfs_rsa_private_key rsa_key, char *thumbprint, in ntfs_df_array_fek_get() argument
1214 fek_size = ntfs_raw_fek_decrypt(fek_buf, fek_size, rsa_key); in ntfs_df_array_fek_get()
1233 ntfs_rsa_private_key rsa_key, char *thumbprint, in ntfs_inode_fek_get() argument
1267 fek = ntfs_df_array_fek_get(df_array, rsa_key, thumbprint, in ntfs_inode_fek_get()
1541 ntfs_rsa_private_key rsa_key; in main() local
1578 rsa_key = ntfs_pkcs12_extract_rsa_key(pfx_buf, pfx_size, password, in main()
1584 if (!rsa_key) { in main()
1595 ntfs_rsa_private_key_release(rsa_key); in main()
1607 ntfs_rsa_private_key_release(rsa_key); in main()
1612 fek = ntfs_inode_fek_get(inode, rsa_key, thumbprint, in main()
1614 ntfs_rsa_private_key_release(rsa_key); in main()