INNER CODE UNIT · Python

get_extra_privattrs

tpm2-software/tpm2-pkcs11 · tools/tpm2_pkcs11/commandlets_keys.py:102

    def get_extra_privattrs(self, privkey):
        return {}

    @staticmethod
    def new_key_save(alg, keylabel, tid, label, privblob, pubblob,
                     tertiarypubdata, encobjauth, db, tpm2, extra_privattrs=None, extra_pubattrs=None,
                     override_keylen=None):
        token = db.gettoken(label)

        #
        # Cache the objects attributes from the public structure and other sources
        # and populate the db with the data. This allows use of the public data
        # without needed to load any objects which requires a pin to do.
        #
        y = yaml.safe_load(tertiarypubdata)

        initial_pubattrs = {}
        initial_privattrs = {}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…