Skip to content

GCM encryption not available on linux when using DataProtection #20689

@webczat

Description

@webczat

It seems that DataProtection does not support gcm on linux, I get System.PlatformNotSupportedException stating that gcm is windows only.
That happens both in aspnetcore 3.1, and according to my code reading, also in current master.
I discovered that the AuthenticatedEncryptorFactory checks if the os is windows in the gcm case and throws, but https://github.com/dotnet/runtime/blob/master/docs/design/features/cross-platform-cryptography.md seems to state that dotnet core does support gcm on non windows. I haven't tested so it is still possible it is not supported in dotnet core 3.0/3.1, though.

Metadata

Metadata

Assignees

Labels

✔️ Resolution: FixedThe bug or enhancement requested in this issue has been checked-in!DoneThis issue has been fixedaffected-mediumThis issue impacts approximately half of our customersarea-dataprotectionIncludes: DataProtectionbugThis issue describes a behavior which is not expected - a bug.severity-majorThis label is used by an internal tool

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions