Package: mx.crypto 0.2.0

Troy Hernandez

mx.crypto: Matrix End-to-End Encryption Primitives

'Olm' and 'Megolm' encryption ratchet primitives for the 'Matrix' messaging protocol <https://matrix.org/>, wrapping the 'vodozemac' Rust crate. Provides device-key generation, one-time-key management, 1:1 'Olm' sessions, and 'Megolm' group sessions. Pairs with the 'mx.api' package, which handles 'Matrix' HTTP transport.

Authors:Troy Hernandez [aut, cre], cornball.ai [cph], The Matrix.org Foundation C.I.C. [ctb, cph], Authors of the dependency Rust crates [ctb]

mx.crypto_0.2.0.tar.gz
mx.crypto_0.2.0.tar.gz(r-4.7-arm64)mx.crypto_0.2.0.tar.gz(r-4.7-x86_64)mx.crypto_0.2.0.tar.gz(r-4.6-arm64)mx.crypto_0.2.0.tar.gz(r-4.6-x86_64)
mx.crypto_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
mx.crypto/json (API)
NEWS

# Install 'mx.crypto' in R:
install.packages('mx.crypto', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cornball-ai/mx.crypto/issues

On CRAN:

Conda:

rustcargo

2.70 score 27 exports 0 dependencies

Last updated from:17fa2b4135. Checks:4 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING183
linux-devel-x86_64WARNING171
source / vignettesOK241
linux-release-arm64WARNING184
linux-release-x86_64WARNING173
wasm-releaseOK167

Exports:mxc_account_fallback_keymxc_account_generate_one_time_keysmxc_account_identity_keysmxc_account_mark_publishedmxc_account_newmxc_account_one_time_keysmxc_account_picklemxc_account_signmxc_account_unpicklemxc_ed25519_verifymxc_megolm_decryptmxc_megolm_encryptmxc_megolm_inbound_newmxc_megolm_inbound_picklemxc_megolm_inbound_unpicklemxc_megolm_outbound_infomxc_megolm_outbound_newmxc_megolm_outbound_picklemxc_megolm_outbound_unpicklemxc_olm_create_inboundmxc_olm_create_outboundmxc_olm_decryptmxc_olm_encryptmxc_olm_session_picklemxc_olm_session_unpicklemxc_verify_device_keysmxc_verify_one_time_key

Dependencies:

Security audit (mx.crypto 0.2.0)

Rendered fromsecurity-audit.Rmdusingsimplermarkdown::mdweave_to_htmlon Jun 12 2026.

Last update: 2026-06-12
Started: 2026-06-12

Readme and manuals

Help Manual

Help pageTopics
mx.crypto: Matrix End-to-End Encryption Primitivesmx.crypto-package mx.crypto
Generate and return a fallback keymxc_account_fallback_key
Generate one-time keysmxc_account_generate_one_time_keys
Public identity keys for an Accountmxc_account_identity_keys
Mark current one-time keys as publishedmxc_account_mark_published
Create a new Olm Accountmxc_account_new
Read pending one-time keysmxc_account_one_time_keys
Pickle an Account to an encrypted blobmxc_account_pickle
Sign canonical JSON with the Account's ed25519 keymxc_account_sign
Restore an Account from an encrypted picklemxc_account_unpickle
Verify an Ed25519 signaturemxc_ed25519_verify
Decrypt a room messagemxc_megolm_decrypt
Encrypt a room messagemxc_megolm_encrypt
Build an inbound Megolm session from a shared session_keymxc_megolm_inbound_new
Pickle an inbound group sessionmxc_megolm_inbound_pickle
Restore an inbound group session from a picklemxc_megolm_inbound_unpickle
Inspect an outbound group sessionmxc_megolm_outbound_info
Create an outbound Megolm group sessionmxc_megolm_outbound_new
Pickle an outbound group sessionmxc_megolm_outbound_pickle
Restore an outbound group session from a picklemxc_megolm_outbound_unpickle
Build an inbound Olm session from a pre-key messagemxc_olm_create_inbound
Start an outbound Olm sessionmxc_olm_create_outbound
Decrypt a message on an Olm sessionmxc_olm_decrypt
Encrypt a message on an Olm sessionmxc_olm_encrypt
Pickle an Olm sessionmxc_olm_session_pickle
Restore an Olm session from a picklemxc_olm_session_unpickle
Verify a Matrix device-keys objectmxc_verify_device_keys
Verify a signed one-time / fallback keymxc_verify_one_time_key