INNER CODE UNIT · Python

do_bool

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

    def do_bool(value):
        return str2bool(value)

    @staticmethod
    def do_str(value):
        return binascii.hexlify(value.encode()).decode()

    @staticmethod
    def do_raw(value):
        return value

    @classmethod
    def mod(cls, path, tid, key, value, inattrs, vtype):

        with Db(path) as db:
            obj = db.getobject(tid)
            if obj is None:
                sys.exit('Not found, object with id: {}'.format(tid))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…