layer-crypto 0.1.1

Cryptographic primitives for Telegram MTProto: AES-IGE, RSA, SHA-1/256, auth key derivation
Documentation

Cryptographic primitives for Telegram MTProto.

Provides:

  • AES-256-IGE encryption/decryption
  • SHA-1 / SHA-256 hash macros
  • Pollard-rho PQ factorization
  • RSA padding (MTProto RSA-PAD scheme)
  • AuthKey — 256-byte session key
  • MTProto 2.0 message encryption / decryption
  • DH nonce→key derivation