Domain.com has been contracted by the local hospital to create an application that forwards private
patient information to various insurance providers.
The patient information is sent via a secured VPN to ensure confidentiality.
You also need to guarantee data integrity, and verify that the patient data originated from the local hospital.
To achieve this objective, you elect to utilize asymmetric encryption and a digital signature technology.
What code would you use to complete your task?
A.
public byte [] SignAndHash(byte [] PatientInfo, RSAParameters RSAInfo){
RSACryptoServiceProvider RSAProvider = new RSACryptoServiceProvider ();
RSAProvider.ImportParameters(RSAInfo);
Return RSAProvider.Encrypt(PatientInfo, true);
}
B.
public byte [] SignAndHash(byte [] PatientInfo, DSAParameters DSAInfo){
DSACryptoServiceProvider DSAProvider = new DSACryptoServiceProvider();
DSAProvider.ImportParameters(DSAInfo);
Return DSAProvider.SignHash(PatientInfo);
}
C.
public byte [] SignAndHash(byte [] PatientInfo, RSAParameters RSAInfo){
RSACryptoServiceProvider RSAProvider = new RSACryptoServiceProvider();
RSAProvider.ImportParameters(RSAInfo);
Return RSAProvider.SignEncrypt(PatientInfo, true);
}
D.
public byte [] SignAndHash(byte [] PatientInfo, DSAParameters DSAInfo){
DSACryptoServiceProvider DSAProvider = new DSACryptoServiceProvider();
DSAProvider.ImportParameters(DSAInfo);
Return DSAProvider.SignData(PatientInfo);
}
D