Privacy-preserving Cosine Similarity Computation with Malicious Security Applied to Biometric Authentication