Skip to content

Commit 7822e76

Browse files
committed
fixed
1 parent e9d7bae commit 7822e76

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.{
22
.name = "zig-jwt",
33
.description = "A JWT library for zig.",
4-
.version = "1.0.6",
4+
.version = "1.0.7",
55
.paths = .{
66
"build.zig",
77
"build.zig.zon",

src/jwt.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn JWT(comptime Signer: type, comptime SecretKeyType: type, comptime PublicK
9595

9696
defer self.alloc.free(signed);
9797

98-
const msg = t.getRawNoSignature();
98+
const msg = try t.signingString();
9999
if (!self.signer.verify(msg, signed, key)) {
100100
return Error.JWTVerifyFail;
101101
}

src/rsa/rsa.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ pub const SecretKey = struct {
141141
d: Fe,
142142
primes: [2]Fe,
143143

144-
// Precomputed contains precomputed values that speed up private
145-
// operations, if available.
144+
// Precomputed contains precomputed values that speed up private
145+
// operations, if available.
146146
precomputed: ?PrecomputedValues = null,
147147

148148
pub fn fromBytes(public: PublicKey, dbytes: []const u8, p: Fe, q: Fe) !SecretKey {

0 commit comments

Comments
 (0)