Module: sage.crypto.cryptosystem
Cryptosystems.
Class: Cryptosystem
where
We may assume that
and
are injective, hence identify a key
in
with its image
in
.
The cryptosystem has the property that for every encryption key
there is a decryption key
such that
.
A cryptosystem with the property that
, is called a
symmetric cryptosystem. Otherwise, if the key
, nor is
easily derived from
, we call the cryptosystem asymmetric
of public key. In that case,
is called the public key and
is called the private key.
self, plaintext_space, ciphertext_space, key_space, [block_length=1], [period=None]) |
Functions: block_length,
cipher_codomain,
cipher_domain,
ciphertext_space,
key_space,
period,
plaintext_space
Special Functions: __eq__,
__init__
Class: PublicKeyCryptosystem
Class: SymmetricKeyCryptosystem
See About this document... for information on suggesting changes.