Skip to content

Commit ded045f

Browse files
committed
style: apply forge fmt formatting fixes
1 parent 96105bf commit ded045f

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

src/Asn1Decode.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,8 +262,8 @@ library Asn1Decode {
262262
int256 _month = int256(month);
263263
int256 _day = int256(day);
264264

265-
int256 _days = _day - 32075 + 1461 * (_year + 4800 + (_month - 14) / 12) / 4
266-
+ 367 * (_month - 2 - (_month - 14) / 12 * 12) / 12 - 3 * ((_year + 4900 + (_month - 14) / 12) / 100) / 4
265+
int256 _days = _day - 32075 + 1461 * (_year + 4800 + (_month - 14) / 12) / 4 + 367
266+
* (_month - 2 - (_month - 14) / 12 * 12) / 12 - 3 * ((_year + 4900 + (_month - 14) / 12) / 100) / 4
267267
- 2440588;
268268

269269
return ((uint256(_days) * 24 + hour) * 60 + minute) * 60 + second;

src/CertManager.sol

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,9 @@ contract CertManager is ICertManager {
104104

105105
_verifyCertSignature(certificate, tbsCertPtr, parent.pubKey);
106106

107-
cert =
108-
VerifiedCert({ca: ca, notAfter: notAfter, maxPathLen: maxPathLen, subjectHash: subjectHash, pubKey: pubKey});
107+
cert = VerifiedCert({
108+
ca: ca, notAfter: notAfter, maxPathLen: maxPathLen, subjectHash: subjectHash, pubKey: pubKey
109+
});
109110
_saveVerified(certHash, cert);
110111

111112
emit CertVerified(certHash);
@@ -313,11 +314,7 @@ contract CertManager is ICertManager {
313314
}
314315
bytes memory pubKey = packed.slice(0x31, packed.length - 0x31);
315316
return VerifiedCert({
316-
ca: ca != 0,
317-
notAfter: notAfter,
318-
maxPathLen: maxPathLen,
319-
subjectHash: subjectHash,
320-
pubKey: pubKey
317+
ca: ca != 0, notAfter: notAfter, maxPathLen: maxPathLen, subjectHash: subjectHash, pubKey: pubKey
321318
});
322319
}
323320
}

src/ECDSA384Curve.sol

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ library ECDSA384Curve {
2323

2424
function p384() internal pure returns (ECDSA384.Parameters memory) {
2525
return ECDSA384.Parameters({
26-
a: CURVE_A,
27-
b: CURVE_B,
28-
gx: CURVE_GX,
29-
gy: CURVE_GY,
30-
p: CURVE_P,
31-
n: CURVE_N,
32-
lowSmax: CURVE_LOW_S_MAX
26+
a: CURVE_A, b: CURVE_B, gx: CURVE_GX, gy: CURVE_GY, p: CURVE_P, n: CURVE_N, lowSmax: CURVE_LOW_S_MAX
3327
});
3428
}
3529
}

0 commit comments

Comments
 (0)