Skip to content

Proposals for traits for symmetric ciphers#13

Open
ounsworth wants to merge 3 commits into
bcgit:release/0.1.2alphafrom
ounsworth:feature/mikeo/sym_cipher_traits
Open

Proposals for traits for symmetric ciphers#13
ounsworth wants to merge 3 commits into
bcgit:release/0.1.2alphafrom
ounsworth:feature/mikeo/sym_cipher_traits

Conversation

@ounsworth

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread crypto/core-test-framework/src/symmetric_ciphers.rs
Comment thread crypto/core-test-framework/src/symmetric_ciphers.rs
Comment thread crypto/core-test-framework/src/symmetric_ciphers.rs
Comment thread crypto/core-test-framework/src/symmetric_ciphers.rs
Comment thread crypto/core-test-framework/src/symmetric_ciphers.rs
Comment thread crypto/core/src/traits.rs
Comment thread crypto/core/src/traits.rs
Comment thread crypto/core-test-framework/src/symmetric_ciphers.rs

@officialfrancismendoza officialfrancismendoza left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wanted to check possible bugs in tests and the AEAD tampering test potentially allowing successful corrupted decrypts.

@officialfrancismendoza

Copy link
Copy Markdown

@ounsworth merge conflict in QUALITY_AND_STYLE.md. Also had a few unresolved comments about presumably mismatched key usage (ie: mac_key instead of key and vice versa), permuting over a different key, etc.

Comment thread crypto/core/src/traits.rs Outdated
}

pub trait Hash : Default {
/// The basic one-shat encrypt and decrypt that all types of symmetric ciphers must implement.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Funny typo ? Or intentionally sassy?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lol

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

OOOPS.

@ounsworth

Copy link
Copy Markdown
Contributor Author

Wanted to check possible bugs in tests and the AEAD tampering test potentially allowing successful corrupted decrypts.

Well-spotted. I'm I have you as a second pair of eyes! As I said, I wrote these traits and tests without any actual code, so I entrust this to you: feel free to adjust any of it as you develop ascon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants