aboutsummaryrefslogtreecommitdiff
path: root/lib/Hashing.Portable/src
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-12-30 21:15:51 -0500
committerLibravatar vnugent <public@vaughnnugent.com>2023-12-30 21:15:51 -0500
commit484c7bc63baab39904a1a715d199f879fd7a067a (patch)
tree949383bee253c5094536468be298c1ab1c03f7bf /lib/Hashing.Portable/src
parenta241620dd73f97496855284cf1fb1503debd28ab (diff)
tcp lib refactor, hardware accelerated memcopy, service stack features
Diffstat (limited to 'lib/Hashing.Portable/src')
-rw-r--r--lib/Hashing.Portable/src/IdentityUtility/JsonWebKey.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Hashing.Portable/src/IdentityUtility/JsonWebKey.cs b/lib/Hashing.Portable/src/IdentityUtility/JsonWebKey.cs
index a741762..576c096 100644
--- a/lib/Hashing.Portable/src/IdentityUtility/JsonWebKey.cs
+++ b/lib/Hashing.Portable/src/IdentityUtility/JsonWebKey.cs
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2023 Vaughn Nugent
+* Copyright (c) 2024 Vaughn Nugent
*
* Library: VNLib
* Package: VNLib.Hashing.Portable
@@ -269,7 +269,7 @@ namespace VNLib.Hashing.IdentityUtility
{
using ECDsa? eCDsa = GetECDsaPrivateKey(jwk);
_ = eCDsa ?? throw new InvalidOperationException("JWK Does not contain an ECDsa private key");
- token.Sign(eCDsa, HashAlg.SHA512);
+ token.Sign(eCDsa, HashAlg.SHA256);
return;
}
default:
@@ -431,7 +431,7 @@ namespace VNLib.Hashing.IdentityUtility
if(base64.Length <= 64)
{
//Use stack buffer
- Span<byte> buffer = stackalloc byte[84];
+ Span<byte> buffer = stackalloc byte[64];
//base64url decode
ERRNO count = VnEncoding.Base64UrlDecode(base64, buffer);