Secure Multiparty Key Agreements: Theory and Practice