using System.Security.Cryptography; using IdentityShroud.Core.Messages; namespace IdentityShroud.Core.Security.Keys.Aes; public class AesProvider : IKeyProvider { public bool IsPublic => false; public KeyData CreateKey(KeyPolicy policy) { return new KeyData(RandomNumberGenerator.GetBytes(policy.KeySize / 8)); } public void SetJwkParameters(Dictionary parameters, JsonWebKey jwk) { // Can we use this for Jwe? throw new NotImplementedException(); } }