(self, id_block_ciphertext, nonce, target_key)
return aes_key.map_values_decrypt(id_block_ciphertext, mode=0)
Use non-committing cipher to encrypt id blocks
        :param id_block_ciphertext: (Ei, Eval)
        :param nonce: bytes
        :param target_key: ObliviousTransferKey
        :return:
Use non-committing cipher to encrypt id blocks
        :param id_block_ciphertext: (Ei, Eval)
        :param nonce: bytes
        :param target_key: ObliviousTransferKey
        :return:
Use non - committing cipher to encrypt id blocks : param id_block_ciphertext : ( Ei Eval ) : param nonce : bytes : param target_key : ObliviousTransferKey : return :
def _non_committing_decrypt(self, id_block_ciphertext, nonce, target_key):
        """
        Use non-committing cipher to encrypt id blocks
        :param id_block_ciphertext: (Ei, Eval)
        :param nonce: bytes
        :param target_key: ObliviousTransferKey
        :return:
        """
        if self.model_param.non_committing_encryption == consts.AES.lower():
            aes_key = CryptoExecutor(AESDecryptKey(key=target_key.key, nonce=nonce))
        else:
            raise ValueError("only supports AES cipher for non-committing decryption")

        return aes_key.map_values_decrypt(id_block_ciphertext, mode=0)
def _non_committing_decrypt ( self , id_block_ciphertext , nonce , target_key ) : if self . model_param . non_committing_encryption == consts . AES . lower ( ) : aes_key = CryptoExecutor ( AESDecryptKey ( key = target_key . key , nonce = nonce ) ) else : raise ValueError ( "only supports AES cipher for non-committing decryption" ) return aes_key . map_values_decrypt ( id_block_ciphertext , mode = 0 )