This contract performs encryption and decryption functions. Decrypt is used by SkaleDKG contract to decrypt secret key contribution to validate complaints during the DKG procedure.

encrypt encrypt(uint256 secretNumber, bytes32 key) → bytes32 external

Returns an encrypted text given a secret and a key.

decrypt decrypt(bytes32 cipherText, bytes32 key) → uint256 external

Returns a secret given an encrypted text and a key.