Skip to main content

An implementation of EDHOC, written in Rust

Project description

Lakers Python

Python wrapper for the lakers crate.

Installation and usage

pip install lakers-python
import lakers

# generate a keypair
lakers.p256_generate_key_pair()

# instantiate a initiator and prepare EDHOC's message 1
initiator = lakers.EdhocInitiator()
message_1 = initiator.prepare_message_1(c_i=None, ead_1=None)

# for more examples, see the tests in the repository

Logs

To show logs emitted by the wrapped Rust implementation, set the RUST_LOG variable, e.g.:

RUST_LOG=trace python -c "import lakers"

Development

To build and test:

maturin develop
pytest

To deploy:

# need to make the examples folder available for the python package,
# because it is listed as one of the workspace's default-members
ln -s ../examples ./examples
MATURIN_PYPI_TOKEN=<your pypi token here> maturin publish

Requirements

The maturin executable must be available. The recommended way is to install and use it in a virtual environment:

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip maturin pytest cbor2
pip freeze

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lakers_python-0.6.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

lakers_python-0.6.1-pp311-pypy311_pp73-win_amd64.whl (285.2 kB view details)

Uploaded PyPyWindows x86-64

lakers_python-0.6.1-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl (452.6 kB view details)

Uploaded PyPymanylinux: glibc 2.34+ x86-64

lakers_python-0.6.1-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl (453.1 kB view details)

Uploaded PyPymanylinux: glibc 2.34+ ARM64

lakers_python-0.6.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl (412.3 kB view details)

Uploaded PyPymacOS 11.0+ ARM64

lakers_python-0.6.1-cp314-cp314-win_amd64.whl (280.6 kB view details)

Uploaded CPython 3.14Windows x86-64

lakers_python-0.6.1-cp314-cp314-manylinux_2_34_x86_64.whl (446.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1-cp314-cp314-manylinux_2_34_aarch64.whl (446.3 kB view details)

Uploaded CPython 3.14manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1-cp314-cp314-macosx_11_0_arm64.whl (406.6 kB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

lakers_python-0.6.1-cp313-cp313-win_amd64.whl (280.7 kB view details)

Uploaded CPython 3.13Windows x86-64

lakers_python-0.6.1-cp313-cp313-manylinux_2_34_x86_64.whl (446.4 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1-cp313-cp313-manylinux_2_34_aarch64.whl (445.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1-cp313-cp313-macosx_11_0_arm64.whl (406.3 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

lakers_python-0.6.1-cp312-cp312-win_amd64.whl (281.5 kB view details)

Uploaded CPython 3.12Windows x86-64

lakers_python-0.6.1-cp312-cp312-manylinux_2_34_x86_64.whl (447.2 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1-cp312-cp312-manylinux_2_34_aarch64.whl (446.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1-cp312-cp312-macosx_11_0_arm64.whl (406.5 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

lakers_python-0.6.1-cp311-cp311-win_amd64.whl (283.4 kB view details)

Uploaded CPython 3.11Windows x86-64

lakers_python-0.6.1-cp311-cp311-manylinux_2_34_x86_64.whl (452.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1-cp311-cp311-manylinux_2_34_aarch64.whl (451.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1-cp311-cp311-macosx_11_0_arm64.whl (410.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

lakers_python-0.6.1-cp310-cp310-win_amd64.whl (283.8 kB view details)

Uploaded CPython 3.10Windows x86-64

lakers_python-0.6.1-cp310-cp310-manylinux_2_34_x86_64.whl (450.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

lakers_python-0.6.1-cp310-cp310-manylinux_2_34_aarch64.whl (451.5 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

lakers_python-0.6.1-cp310-cp310-macosx_11_0_arm64.whl (410.2 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file lakers_python-0.6.1.tar.gz.

File metadata

  • Download URL: lakers_python-0.6.1.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for lakers_python-0.6.1.tar.gz
Algorithm Hash digest
SHA256 578eda322e8b5e94c5048454e15d1fa90e718e83b77a96b3ebd31071954c2ec8
MD5 eb0a47d947f5a349034b0ee1f1c18925
BLAKE2b-256 164e880433dbdbc90ef9d181a373753606342654168bb930fc1a36551cf5eb8c

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-pp311-pypy311_pp73-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-pp311-pypy311_pp73-win_amd64.whl
Algorithm Hash digest
SHA256 80952070d53f979f4111a19a901f9f036b4dff1b4364db6106be8db78ee6d165
MD5 4203cdf54f5de6f56061738641b40277
BLAKE2b-256 6119a95b562c65dcd0e82dd99cfcfb298bc5fbef25ded3e782ce87de43ca0382

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-pp311-pypy311_pp73-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 c15e91fef1789b6d853c11f3425d584bb1d4b4e3f5972cce10c087d5e049e997
MD5 ee1ec3184bada7ca44e4bc9f7575b717
BLAKE2b-256 c87444697bd47977651a427d88ac3c61c31f8ff321310465f79c71eecdfe38d4

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-pp311-pypy311_pp73-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 0d28e346286f9108193d0c90429356dc8de7fe439ebe96f1dca376feff308c50
MD5 ea36db6e691055e29f2c8bfa6b3b8c8e
BLAKE2b-256 43cdbdcc73140efd055f143abf08d7da6fbd03383be95d28df8d1d4e6b3dfed3

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ba97318c7361141da2d2f55234836d75d0f8f4560795a0adef3973848e57622
MD5 b1e3304899322199e1eb2daf03446d0c
BLAKE2b-256 e590c894c6f0c7d497ffb1eb9a1aaaaed26bcc83c2b2e97b34afcd22ccc90ce1

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 7d2f8b2dca2df41541ed68b6a806187574410f4011cc8ebc803c8f31be99df4d
MD5 7e16386824a86f723a4b60c6d6835ca1
BLAKE2b-256 10afe99ec4dab3c086462c8402a81869a8e72047b318f3b2d1daf5632dcec637

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp314-cp314-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp314-cp314-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 9d4308076ea0cf7350ce33201649a4cd246ec6fbdfbb60b75bca41a2999f023e
MD5 30b35c52c3c132fb83fc306ad1858739
BLAKE2b-256 5f572c57e82caa255352eff8266efc0a4a1c287d04ffd2b87655859666ffbf87

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp314-cp314-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp314-cp314-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 1a68b145996951f601a60c49fbb0e33b65cbfd613c7a86d9de1dd07587a62649
MD5 56553c6e2cd75638b82062174f4d0b52
BLAKE2b-256 397800a1007b15651283c70d9d1c410b0ae1043ddbafebd9a6935fb36ead293c

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d906efbacc980b3eb685acd9e744b9f83e132ada5471d0d1a8c3d2cc8a5edd38
MD5 1b7fc2175e402905a49b071ca3245bbb
BLAKE2b-256 046268da4054495a9d2ff175d9c646c771eb4a265243bec8c13d8589c7166d2d

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e2f7b020a0438dd64cfa47fa92840fba2359287e04fe3a40a5d1ae1379e983d9
MD5 114fd5aaa050da5271a17aace6e83705
BLAKE2b-256 43f487fed82a6dcac3fb8f3ca8a9c7d435624d1025880b383149a1402655a03a

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 cefc613661e517922e4b5e9ebbf7147a326cd6a34c0f49609dcb278f40498113
MD5 1b198f51619de59297e8e16cb2364f6d
BLAKE2b-256 d971e49b18443f9e2048f545c1f5107e5653101fa080f9df096ec6db5758bd30

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 0e4cd91a7c9ce58a3f6858e81c207199ca855b33f785eb1475fb028be2ee5348
MD5 5f96aa88a4d3e3e6de96b74a721c65dd
BLAKE2b-256 b4063cf03bc1909c83fb93a283a6fa85c260830ac2a2be9f4f136e8f882fc5d5

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d582345d1e14bd79350af87597c060e1a78d8eec0cc99333228a06442ceff2e4
MD5 362eb98f8c1eb064fb9ec51cf5843dbc
BLAKE2b-256 79e2395eb05caaba5ac2e26703ee7c89e09431d0f1db3ef26ae8243acbd613f7

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c009603accc9508365c879f55c15d12ce22bb03100bcf1e3571e58a77604fd00
MD5 172e90f69fd05e55cb6d994da14362d1
BLAKE2b-256 c7657f4be2d10ff09aa310c306a7da6227373557b24966a0d5436f796e47f118

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 6d4b91f1ea3f6433318cade131f520a4367c448c87ab04db1b99ff877d123ff4
MD5 f24cf07c12fb9669ae3bec5e0c718d4d
BLAKE2b-256 afd7032fecdd1546a5ff654c60758f514dd3d7e4019995fe653ba713b634eaa6

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b154911aad9455dd619b7972a4303562721b62aa3da7077aea9805fff1c7c41d
MD5 2569fdc6f93ad2c71e88a4e7e73fa9f2
BLAKE2b-256 fe48204c14f8bea45ecc7a8a8d75dd04b1989f2a6b82ab25bcdc800197e41305

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e9b5f6918c281dc6abb7f5165009d6f395f3685ddb55ae2c6e2075474b9fe30a
MD5 d3b9a93cb8666a21a415d03e662ad950
BLAKE2b-256 33a84bfbd7d95c73d9ed88822bbf5c900a9d29c3c4cff83f9f0bdeb668c8786d

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 fda9f496d3c95963d748a4a071a2f877c6538becb5b6bfc2a051ea5af1fa4ad2
MD5 1e63f0c1a782ff58fc0495297d45e102
BLAKE2b-256 f11675ee1c03c0725ad9d3c839149389fc1b3e1c4304ba0894e0e467e217a68b

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2b7b0e97d1286bd5fff561974efdc9bba39e2a1bce2940c44666af26ab183055
MD5 14e620f263bed69e635f62e2279fda77
BLAKE2b-256 056cf67b8c2f2b3cf242f7cfc77806c449051a2d6b5fa92aa0a635c6199b36e7

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 33cc16249986466b5d5556fab7fac0816af53b6f0de11dd834060066de40bd90
MD5 f91631e298cbcf4ea24f7e2b3edf3552
BLAKE2b-256 98a614adf85f7cd27e861a61928e94da6633db98508f9c13c3fe72b55128062d

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5be0b7fe40ea3382811f0704d897834a68deed58ea8e332b2e9d8e85679017de
MD5 4aa406cb0d6868d7b2be1542c2355ff5
BLAKE2b-256 23f81863c88bd5619dacc357bc00e5a67e5e1da019f773bd1ec44397cb786946

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 4b23f531d91d731b261e095d3891cef95242c02a5891b020e0bf9de3219c7648
MD5 f4edcca60d6cdeefb7d9d7f7831dee1b
BLAKE2b-256 06fe9d9924d016c80c5c50a31f5c7ef47bf074429835ef738686bd95d6c8b45e

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 001cfc1a6270f35403b3d31fb6373c1a05c3806ece60eb1a01bebab2eb7a4a3e
MD5 4a224ff18f04585bde8b83001a6cd8af
BLAKE2b-256 59e8dc2336d5465611ad9941adcab56ccc1aedd494387f7826a3aba998df396d

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 d2fe2c6d8007c119748c835121eb4d385eec67681efa1163fb93b59918ec9e5e
MD5 a784c3d21af722b23602f2c7df7ede2c
BLAKE2b-256 8b7575e9f4fbad2905b9cf6a37ec95940c9cba9184451f543b297acf2ad867e6

See more details on using hashes here.

File details

Details for the file lakers_python-0.6.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for lakers_python-0.6.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ada506362ffe28df80d5de86bf72908065c461b13776369c1d1c832f8ae71c3c
MD5 2d3d2a43b97c5f5bce3cd1500ae69e0e
BLAKE2b-256 f1fffc5fe108c8a65e8ea70dfb2fa687b2753e86769b015c7050d078b1401d4f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page