Skip to content

Commit 30dc3de

Browse files
build(deps): bump ring from 0.17.8 to 0.17.13 (#202)
* build(deps): bump ring from 0.17.8 to 0.17.13 Bumps [ring](https://github.com/briansmith/ring) from 0.17.8 to 0.17.13. - [Changelog](https://github.com/briansmith/ring/blob/main/RELEASES.md) - [Commits](https://github.com/briansmith/ring/commits) --- updated-dependencies: - dependency-name: ring dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * fix ci --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: john-cremit <john@cremit.io>
1 parent 7e61cca commit 30dc3de

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

Cargo.lock

Lines changed: 5 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/nebula-miracl/src/gcm.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl GCM {
6464
for i in 1..128 {
6565
let mut c: u32 = 0;
6666
for j in 0..GCM_NB {
67-
self.table[i][j] = c | (self.table[i - 1][j]) >> 1;
67+
self.table[i][j] = c | ((self.table[i - 1][j]) >> 1);
6868
c = self.table[i - 1][j] << 31;
6969
}
7070
if c != 0 {
@@ -114,9 +114,9 @@ impl GCM {
114114
let mut el: [u8; 16] = [0; 16];
115115

116116
/* convert lengths from bytes to bits */
117-
f[0] = (self.lena[0] << 3) | (self.lena[1] & 0xE0000000) >> 29;
117+
f[0] = (self.lena[0] << 3) | ((self.lena[1] & 0xE0000000) >> 29);
118118
f[1] = self.lena[1] << 3;
119-
f[2] = (self.lenc[0] << 3) | (self.lenc[1] & 0xE0000000) >> 29;
119+
f[2] = (self.lenc[0] << 3) | ((self.lenc[1] & 0xE0000000) >> 29);
120120
f[3] = self.lenc[1] << 3;
121121
let mut j = 0;
122122
for i in 0..GCM_NB {

crates/nebula-token/src/jwt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ impl Jwt {
6767
}
6868

6969
pub fn is_expired(&self) -> bool {
70-
self.payload.expires_at().map_or(true, |exp| exp < SystemTime::now())
70+
self.payload.expires_at().is_none_or(|exp| exp < SystemTime::now())
7171
}
7272

7373
pub fn kid(&self) -> Option<&str> {

0 commit comments

Comments
 (0)