Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Dunitrust
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nodes
rust
Dunitrust
Commits
f2fe286c
Commit
f2fe286c
authored
5 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
[ci] wine does not support scrypt
parent
a24c1126
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!194
Elois/indexs
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/core/conf/src/keys.rs
+4
-0
4 additions, 0 deletions
lib/core/conf/src/keys.rs
lib/crypto/src/keys/ed25519.rs
+2
-0
2 additions, 0 deletions
lib/crypto/src/keys/ed25519.rs
with
6 additions
and
0 deletions
lib/core/conf/src/keys.rs
+
4
−
0
View file @
f2fe286c
...
...
@@ -182,6 +182,7 @@ mod tests {
static
SALT_TEST
:
&
'static
str
=
"testsalt"
;
static
PASSWORD_TEST
:
&
'static
str
=
"testpassword"
;
#[cfg(unix)]
#[test]
fn
test_modify_member_keys
()
{
let
key_pairs
=
DuniterKeyPairs
{
...
...
@@ -227,6 +228,7 @@ mod tests {
);
}
#[cfg(unix)]
#[test]
fn
test_modify_network_keys
()
{
let
key_pairs
=
DuniterKeyPairs
{
...
...
@@ -258,6 +260,7 @@ mod tests {
assert_eq!
(
result_key_pairs
.member_keypair
,
None
);
}
#[cfg(unix)]
#[test]
fn
test_clear_network_keys
()
{
let
key_pairs
=
DuniterKeyPairs
{
...
...
@@ -308,6 +311,7 @@ mod tests {
);
}
#[cfg(unix)]
#[test]
fn
test_clear_member_keys
()
{
let
key_pairs
=
DuniterKeyPairs
{
...
...
This diff is collapsed.
Click to expand it.
lib/crypto/src/keys/ed25519.rs
+
2
−
0
View file @
f2fe286c
...
...
@@ -624,6 +624,7 @@ Timestamp: 0-E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855
);
}
#[cfg(unix)]
#[test]
fn
keypair_generate
()
{
let
key_pair1
=
KeyPairFromSaltedPasswordGenerator
::
with_default_parameters
()
.generate
(
...
...
@@ -656,6 +657,7 @@ Timestamp: 0-E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855
assert!
(
!
key_pair2
.eq
(
&
other_key_pair
));
}
#[cfg(unix)]
#[test]
fn
keypair_generate_sign_and_verify
()
{
let
keypair
=
KeyPairFromSaltedPasswordGenerator
::
with_default_parameters
()
...
...
This diff is collapsed.
Click to expand it.
Éloïs
@librelois
mentioned in commit
fecf107e
·
5 years ago
mentioned in commit
fecf107e
mentioned in commit fecf107ee81405e5725db8a69c06aa26239593d1
Toggle commit list
Éloïs
@librelois
mentioned in commit
fb989691
·
5 years ago
mentioned in commit
fb989691
mentioned in commit fb9896913416960622e27a5c9752402d2b4df7c4
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment