templates.exceptions module

Custom exceptions for the tno.mpc.encryption_scheme modules.

exception templates.exceptions.EncryptionSchemeError[source]

Bases: Exception

Generic error type for encryption schemes.

exception templates.exceptions.EncryptionSchemeWarning[source]

Bases: UserWarning

Issued to suggest cryptographic best practises.

exception templates.exceptions.RandomizedEncryptionSchemeWarning[source]

Bases: EncryptionSchemeWarning

Issued for warnings related to the randomness generation.

exception templates.exceptions.SerializationError(m=None)[source]

Bases: EncryptionSchemeError

Serialization error for encryption schemes.

exception templates.exceptions.TooLittleRandomnessWarning[source]

Bases: RandomizedEncryptionSchemeWarning

Issued when less randomness has been generated than required by the protocol, resulting in randomness needing to be generated on the fly.

exception templates.exceptions.TooMuchRandomnessWarning[source]

Bases: RandomizedEncryptionSchemeWarning

Issued when more randomness has been generated than used by the protocol.