mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-10-01 01:26:08 -04:00
fixes
This commit is contained in:
parent
2d075626f1
commit
069926aba8
14
veilid-core/src/tests/android/.gitignore
vendored
Normal file
14
veilid-core/src/tests/android/.gitignore
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
gradle-wrapper.jar
|
||||||
|
/.gradle
|
||||||
|
/.idea
|
||||||
|
/captures/
|
||||||
|
/gradlew
|
||||||
|
/gradlew.bat
|
||||||
|
/local.properties
|
||||||
|
GeneratedPluginRegistrant.java
|
||||||
|
|
||||||
|
# Remember to never publicly share your keystore.
|
||||||
|
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app
|
||||||
|
key.properties
|
||||||
|
**/*.keystore
|
||||||
|
**/*.jks
|
1
veilid-core/src/tests/android/build.gradle
Normal file
1
veilid-core/src/tests/android/build.gradle
Normal file
@ -0,0 +1 @@
|
|||||||
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
5
veilid-core/src/tests/android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
veilid-core/src/tests/android/gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
distributionBase=GRADLE_USER_HOME
|
||||||
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
|
||||||
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
zipStorePath=wrapper/dists
|
@ -215,7 +215,8 @@ abstract class VeilidCryptoSystem {
|
|||||||
final nonce = await randomNonce();
|
final nonce = await randomNonce();
|
||||||
final saltBytes = nonce.decode();
|
final saltBytes = nonce.decode();
|
||||||
final sharedSecret = await deriveSharedSecret(ekbytes, saltBytes);
|
final sharedSecret = await deriveSharedSecret(ekbytes, saltBytes);
|
||||||
return (await cryptNoAuth(body, nonce, sharedSecret))..addAll(saltBytes);
|
return Uint8List.fromList(
|
||||||
|
(await cryptNoAuth(body, nonce, sharedSecret)) + saltBytes);
|
||||||
}
|
}
|
||||||
|
|
||||||
Future<Uint8List> decryptNoAuthWithPassword(
|
Future<Uint8List> decryptNoAuthWithPassword(
|
||||||
|
Loading…
Reference in New Issue
Block a user