Lines Matching full:raise

384         raise AvbError('Error getting public key: {}'.format(perr))
387 raise AvbError('Unexpected modulus output')
412 raise AvbError('Only RSA keys with exponent 65537 are supported.')
447 raise AvbError('Algorithm with name {} is not supported.'
451 raise AvbError('Key size of key ({} bits) does not match key size '
472 raise AvbError('Error signing')
491 raise AvbError('Error signing: {}'.format(perr))
494 raise AvbError('Error signing: Invalid length of signature')
514 raise AvbError('Unknown algorithm type {}'.format(alg_type))
533 raise AvbError('Unsupported algorithm type {}'.format(alg_type))
628 raise AvbError('Error generating DER file')
639 raise AvbError('Error verifying data: {}'.format(perr))
697 raise ValueError('RAW chunk cannot have fill_data set.')
699 raise ValueError('RAW chunk must have input_offset set.')
702 raise ValueError('FILL chunk must have fill_data set.')
704 raise ValueError('FILL chunk cannot have input_offset set.')
707 raise ValueError('DONT_CARE chunk cannot have fill_data set.')
709 raise ValueError('DONT_CARE chunk cannot have input_offset set.')
711 raise ValueError('Invalid chunk type')
790 raise ValueError('Encountered sparse image format version {}.{} but '
794 raise ValueError('Unexpected file_hdr_sz value {}.'.
797 raise ValueError('Unexpected chunk_hdr_sz value {}.'.
820 raise ValueError('Raw chunk input size ({}) does not match output '
833 raise ValueError('Fill chunk should have 4 bytes of fill, but this '
844 raise ValueError('Don\'t care chunk input size is non-zero ({})'.
854 raise ValueError('CRC32 chunk should have 4 bytes of CRC, but '
858 raise ValueError('Unknown chunk type {}'.format(chunk_type))
868 raise ValueError('The header said we should have {} output blocks, '
872 raise ValueError('There were {} bytes of extra data at the end of the '
910 raise OSError('ImageHandler is in read-only mode.')
947 raise OSError('ImageHandler is in read-only mode.')
986 raise OSError('ImageHandler is in read-only mode.')
1017 raise RuntimeError('Seeking with negative offset: {}'.format(offset))
1090 raise OSError('ImageHandler is in read-only mode.')
1098 raise ValueError('Cannot truncate to a size which is not a multiple '
1272 raise LookupError('Given data does not look like a property '
1277 raise LookupError('Key cannot be decoded as UTF-8: {}.'
1407 raise LookupError('Given data does not look like a hashtree '
1417 raise LookupError('Partition name cannot be decoded as UTF-8: {}.'
1426 raise LookupError('root_digest_len doesn\'t match hash algorithm')
1601 raise LookupError('Given data does not look like a hash descriptor.')
1610 raise LookupError('Partition name cannot be decoded as UTF-8: {}.'
1618 raise LookupError('digest_len doesn\'t match hash algorithm')
1737 raise LookupError('Given data does not look like a kernel cmdline '
1744 raise LookupError('Kernel command-line cannot be decoded as UTF-8: {}.'
1834 raise LookupError('Given data does not look like a chain partition '
1842 raise LookupError('Partition name cannot be decoded as UTF-8: {}.'
2001 raise LookupError('Given data does not look like a AVB footer.')
2112 raise AvbError('Given image does not look like a vbmeta image.')
2220 raise AvbError('Given image does not have a footer.')
2244 raise AvbError('Given image does not have a footer.')
2264 raise AvbError('Requested to keep hashtree but no hashtree '
2282 raise AvbError('Given image does not have a footer.')
2293 raise AvbError('No hashtree descriptor was found.')
2301 raise AvbError('Hash-tree and FEC data must be adjacent.')
2338 raise AvbError('Partition size of {} is not a multiple of the image '
2343 raise AvbError('Given image does not have a footer.')
2353 raise AvbError('Requested size of {} is too small for an image '
2387 raise AvbError('Malformed slot data "{}".'.format(slot_data))
2513 raise AvbError('Malformed chained partition "{}".'.format(cp))
2547 raise AvbError('Signature check failed for {} vbmeta struct {}'
2558 raise AvbError('Embedded public key does not match given key.')
2580 raise AvbError('Error verifying descriptor.')
2903 raise AvbError('No hashtree descriptor in given image')
2963 raise AvbError('No output file given')
3042 raise AvbError('Unknown algorithm with name {}'
3057 raise AvbError('Malformed chained partition "{}".'.format(cp))
3064 raise AvbError('Rollback Index Location {} is already in use.'.format(
3071 raise AvbError('Rollback index location must be 1 or larger.')
3086 raise AvbError('Malformed property "{}".'.format(prop))
3096 raise AvbError('Malformed property "{}".'.format(prop))
3161 raise AvbError('Key is required for algorithm {}'.format(
3165 raise AvbError('Key is wrong size for algorithm {}'.format(
3265 raise AvbError('Partition size of {} is not a multiple of the image '
3328 # Truncate back to original size, then re-raise.
3330 raise AvbError('Appending VBMeta image failed: {}.'.format(e)) from e
3386 raise AvbError('--dynamic_partition_size required when not specifying a '
3390 raise AvbError('--calc_max_image_size not supported with '
3409 raise AvbError('Parition size of {} is too small. '
3442 raise AvbError('Partition size of {} is not a multiple of the image '
3451 raise AvbError('Image size of {} exceeds maximum image '
3543 # Truncate back to original size, then re-raise.
3545 raise AvbError('Adding hash_footer failed: {}.'.format(e)) from e
3657 raise AvbError('Partition size of {} is not a multiple of the image '
3661 raise AvbError('File size of {} is not a multiple of the image '
3692 raise AvbError('Image size of {} exceeds maximum image '
3821 # Truncate back to original size, then re-raise.
3823 raise AvbError('Adding hashtree_footer failed: {}.'.format(e)) from e
3900 raise AvbError('Invalid Product ID length.')
3927 raise AvbError('Invalid intermediate key certificate length.')
3929 raise AvbError('Invalid product key certificate length.')
3968 raise AvbError('Invalid intermediate key certificate length.')
3970 raise AvbError('Invalid product key certificate length.')
3976 raise AvbError('Invalid unlock challenge length.')
4051 raise ValueError('Error invoking fec: {}'.format(perr))
4075 raise ValueError('Execution of \'fec\' tool failed: {}.'
4084 raise ValueError('Unexpected magic in FEC footer')