Port Ciphersuite implementation onto secrets library