Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/pip/wrappers/python/pytest-approx…
Browse files Browse the repository at this point in the history
…-eq-8.2.2
  • Loading branch information
swcurran authored Jun 10, 2024
2 parents 8923c50 + 9ff1271 commit 1a2f90a
Show file tree
Hide file tree
Showing 146 changed files with 14,809 additions and 8,146 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,10 @@ jobs:
with:
node-version: 18.x

- uses: pnpm/action-setup@v4
with:
version: 8

- name: Fetch library artifacts
uses: actions/download-artifact@v4
with:
Expand All @@ -351,26 +355,26 @@ jobs:
pip install setuptools wheel twine auditwheel
- name: Install dependencies
run: yarn install
run: pnpm install

- name: Build
run: yarn build
run: pnpm build

- name: Lint
run: yarn lint
run: pnpm lint

- name: Check format
run: yarn check-format
run: pnpm check-format

- name: Check types
run: yarn check-types
run: pnpm check-types

- name: Run tests
if: ${{ matrix.architecture != 'linux-aarch64' }}
env:
# binary is downloaded to root of repository
LIB_ARIES_ASKAR_PATH: ../../../
run: yarn test
LIB_ARIES_ASKAR_PATH: ../../
run: pnpm test

- name: Set NPM config
if: |
Expand Down
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,11 @@ target
*.so
.npmrc
out

# react Native Libraries
wrappers/javascript/packages/aries-askar-react-native/native/mobile/

# Example app
wrappers/javascript/packages/aries-askar-react-native-example/android
wrappers/javascript/packages/aries-askar-react-native-example/ios
wrappers/javascript/packages/aries-askar-react-native-example/.expo
151 changes: 10 additions & 141 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion askar-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ p384 = { version = "0.13", default-features = false, features = [
"ecdh",
], optional = true }
rand = { version = "0.8", default-features = false }
secure-env = { package = "animo-secure-env", version = "0.3", optional = true }
secure-env = { package = "animo-secure-env", version = "0.4", optional = true }
serde = { version = "1.0", default-features = false, features = ["derive"] }
serde-json-core = { version = "0.5", default-features = false }
sha2 = { version = "0.10", default-features = false }
Expand Down
4 changes: 3 additions & 1 deletion askar-crypto/src/alg/aes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use aes_gcm::{Aes128Gcm, Aes256Gcm};
use serde::{Deserialize, Serialize};
use zeroize::Zeroize;

use super::{AesTypes, HasKeyAlg, KeyAlg};
use super::{AesTypes, HasKeyAlg, HasKeyBackend, KeyAlg};
use crate::{
buffer::{ArrayKey, ResizeBuffer, Writer},
encrypt::{KeyAeadInPlace, KeyAeadMeta, KeyAeadParams},
Expand Down Expand Up @@ -80,6 +80,8 @@ impl<T: AesType> PartialEq for AesKey<T> {

impl<T: AesType> Eq for AesKey<T> {}

impl<T: AesType> HasKeyBackend for AesKey<T> {}

impl<T: AesType> HasKeyAlg for AesKey<T> {
fn algorithm(&self) -> KeyAlg {
KeyAlg::Aes(T::ALG_TYPE)
Expand Down
Loading

0 comments on commit 1a2f90a

Please sign in to comment.