def __init__(self, to_sign, description, signing_attributes): logger.debug("Creating CASS OID Signing Request...") self.signing_attributes = signing_attributes if self.signing_attributes.object_id is None: raise RuntimeError("CASS OID Signing Request requires an object id value.") BaseCASSSigningRequest.__init__(self, to_sign, description, signing_attributes)
def __init__(self, hash_to_sign, data_to_sign, description, signing_attributes): logger.debug("Creating CASS Secure Boot 3 signing request...") self.signing_attributes = signing_attributes if data_to_sign is None: raise RuntimeError( "Hash Segment is required for CASS Secure Boot 3 signing request" ) self.data_to_sign = data_to_sign BaseCASSSigningRequest.__init__(self, hash_to_sign, data_to_sign, description, signing_attributes)
def __init__(self, to_sign, description, signing_attributes): logger.debug("Creating CASS Secure Boot 2 signing request...") self.signing_attributes = signing_attributes BaseCASSSigningRequest.__init__(self, to_sign, description, signing_attributes)
def __init__(self, hash_to_sign, data_to_sign, image_path, signing_attributes): logger.debug("Creating CASS Secure Boot 2 signing request...") self.signing_attributes = signing_attributes BaseCASSSigningRequest.__init__(self, hash_to_sign, data_to_sign, image_path, signing_attributes)