aries_cloudagent.core.in_memory.didcomm package

Submodules

aries_cloudagent.core.in_memory.didcomm.derive_1pu module

Functions for performing Key Agreement using ECDH-1PU.

aries_cloudagent.core.in_memory.didcomm.derive_1pu.derive_1pu(ze, zs, alg, apu, apv, keydatalen)[source]

Generate shared encryption key from two ECDH shared secrets.

aries_cloudagent.core.in_memory.didcomm.derive_1pu.derive_receiver_1pu(epk, sender_pk, recip_sk, alg, apu, apv, keydatalen)[source]

Generate two shared secrets (ze, zs).

aries_cloudagent.core.in_memory.didcomm.derive_1pu.derive_sender_1pu(epk, sender_sk, recip_pk, alg, apu, apv, keydatalen)[source]

Generate two shared secrets (ze, zs).

aries_cloudagent.core.in_memory.didcomm.derive_ecdh module

Functions for performing Key Agreement.

aries_cloudagent.core.in_memory.didcomm.derive_ecdh.concat_kdf(shared_secret: bytes, alg: Union[str, bytes], apu: Union[str, bytes], apv: Union[str, bytes], keydatalen: int)[source]

Generate a shared encryption key from a shared secret.

aries_cloudagent.core.in_memory.didcomm.derive_ecdh.derive_shared_secret(private_key: bytes, public_key: bytes)[source]

Generate a shared secret from keys in byte format.

aries_cloudagent.core.in_memory.didcomm.derive_ecdh.derive_shared_secret_from_key(private_key, public_key)[source]

Generate a shared secret from keys in ecdsa.Keys format.