Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autosar-e2e

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autosar-e2e

Python implementation of the AUTOSAR E2E Protocol

  • 0.6.1
  • Source
  • PyPI
  • Socket score

Maintainers
1

autosar-e2e

PyPI - Version PyPI - Python Version Documentation Status

The documentation is available here.


Table of Contents

Description

This library provides fast C implementations of the E2E CRC algorithms and E2E profiles.

Currently, all relevant CRC algorithms are available in module e2e.crc but only E2E profiles 1, 2, 4, 5 and 7 are available. If you provide example data for the other profiles I would try to implement them, too.

Installation

pip install autosar-e2e

Usage

CRC example

import e2e
crc: int = e2e.crc.calculate_crc8_h2f(b"\x00\x00\x00\x00")

E2E Profile 2

import e2e
# create data
data = bytearray(b"\x00" *  8)
length = len(data) - 1
data_id_list = b"\x00" * 16
# increment counter and calculate CRC inplace
e2e.p02.e2e_p02_protect(data, length, data_id_list, increment_counter=True)
# check CRC
crc_correct: bool = e2e.p02.e2e_p02_check(data, length, data_id_list)

Test

pip install pipx
pipx run tox

Build

pip install pipx
pipx run build
pipx run twine check dist/*

License

autosar-e2e is distributed under the terms of the MIT license.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc