[][src]Function tss_esapi::utils::get_rsa_public

pub fn get_rsa_public(
    restricted: bool,
    decrypt: bool,
    sign: bool,
    key_bits: u16
) -> TPM2B_PUBLIC

Convenience method for generating TPM2B_PUBLIC objects for RSA keys based on the provided parameters.

The method defaults the following values:

  • asymmetric scheme used - RSA SSA with SHA-256 as the hash algorithm
  • symmetric algorithm associated with the object - 256 bit AES in CFB mode
  • name algorithm - SHA-256
  • object attributes - fixed TPM, fixed parent, sensitive data origin and user with auth are set