def _get_raw_key(self, key_id):
    'Finds a loaded raw key.'
    try:
        (algorithm, key_bits, padding_algorithm, padding_hash) = key_id.upper().split(b'.', 3)
        key_bits = int(key_bits)
        key_type = _KEY_TYPES_MAP[algorithm]
        wrapping_algorithm = _WRAPPING_ALGORITHM_MAP[algorithm][key_bits][padding_algorithm][padding_hash]
        static_key = _STATIC_KEYS[algorithm][key_bits]
        return WrappingKey(wrapping_algorithm=wrapping_algorithm, wrapping_key=static_key, wrapping_key_type=key_type)
    except KeyError:
        _LOGGER.exception('Unknown Key ID: %s', key_id)
        raise InvalidKeyIdError('Unknown Key ID: {}'.format(key_id))
Finds a loaded raw key.
def _get_raw_key(self, key_id):
    
    try:
        (algorithm, key_bits, padding_algorithm, padding_hash) = key_id.upper().split(b'.', 3)
        key_bits = int(key_bits)
        key_type = _KEY_TYPES_MAP[algorithm]
        wrapping_algorithm = _WRAPPING_ALGORITHM_MAP[algorithm][key_bits][padding_algorithm][padding_hash]
        static_key = _STATIC_KEYS[algorithm][key_bits]
        return WrappingKey(wrapping_algorithm=wrapping_algorithm, wrapping_key=static_key, wrapping_key_type=key_type)
    except KeyError:
        _LOGGER.exception('Unknown Key ID: %s', key_id)
        raise InvalidKeyIdError('Unknown Key ID: {}'.format(key_id))