Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split provider code into separate modules #165

Merged
merged 1 commit into from
May 1, 2020

Conversation

ionut-arm
Copy link
Member

This commit splits the code for the 3 existing providers into separate
modules: one for key management (containing the code for key
destruction, creation, import and export) and one for asymetric signing
(currently containing code for signing and verifying hashes).

Signed-off-by: Ionut Mihalcea [email protected]

Fixes #133

This commit splits the code for the 3 existing providers into separate
modules: one for key management (containing the code for key
destruction, creation, import and export) and one for asymetric signing
(currently containing code for signing and verifying hashes).

Signed-off-by: Ionut Mihalcea <[email protected]>
@ionut-arm ionut-arm added the enhancement New feature or request label Apr 30, 2020
@ionut-arm ionut-arm added this to the Parsec production ready milestone Apr 30, 2020
@ionut-arm ionut-arm requested a review from hug-dev April 30, 2020 16:02
@ionut-arm ionut-arm self-assigned this Apr 30, 2020
Copy link
Member

@hug-dev hug-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot for this!
Will definitely be helpful for our operations to grow.

Comment on lines +74 to +84
// Build a valid ASN.1 DigestInfo DER-encoded structure by appending the hash to a
// DigestAlgorithmIdentifier value representing the SHA256 OID with no parameters.
// The OID used is: "2.16.840.1.101.3.4.2.1".
// It would be better to use the DigestInfo structure defined in this file but the
// AlgorithmIdentifier structure does not currently support the simple SHA256 OID.
// See Devolutions/picky-rs#19
let mut digest_info = vec![
0x30, 0x31, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04,
0x02, 0x01, 0x05, 0x00, 0x04, 0x20,
];
digest_info.append(&mut hash);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related at all with your PR but we should change that one of these days, since it has been fixed... by you 😋

@ionut-arm ionut-arm merged commit 69d95fb into parallaxsecond:master May 1, 2020
@ionut-arm ionut-arm deleted the split-providers branch May 1, 2020 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate provider code into modules
2 participants