Skip to content

Commit 0b235fa

Browse files
authored
Merge pull request #25763 from microsoftgraph/jessezhu-webhooks-decryptionchange
Update change-notifications-with-resource-data.md with correct decryp…
2 parents 89d05ae + 9dbeeea commit 0b235fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

concepts/change-notifications-with-resource-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ RSA rsa = certificate.GetRSAPrivateKey();
461461
byte[] encryptedSymmetricKey = Convert.FromBase64String(<value from dataKey property>);
462462

463463
// Decrypt using OAEP padding.
464-
byte[] decryptedSymmetricKey = rsa.Decrypt(encryptedSymmetricKey, fOAEP: true);
464+
byte[] decryptedSymmetricKey = rsa.Decrypt(encryptedSymmetricKey, RSAEncryptionPadding.OaepSHA1);
465465

466466
// Can now use decryptedSymmetricKey with the AES algorithm.
467467
```

0 commit comments

Comments
 (0)