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

Generalize ProtectionProfiles #87

Merged
merged 1 commit into from
Jul 18, 2020
Merged

Generalize ProtectionProfiles #87

merged 1 commit into from
Jul 18, 2020

Conversation

Sean-Der
Copy link
Member

This removes a lot of profile specific constants and insteads
put them behind the profile. Key, Salt and TagLen need to be
determined by the profile.

Relates to #85

@Sean-Der Sean-Der requested review from jeremija and at-wat July 16, 2020 22:42
@Sean-Der
Copy link
Member Author

I didn't change any APIs, just moved all the AES-CM stuff into their own files! Wanted to get this refactoring/changes in its own commit to make debugging easier if anything happens.

When this gets approved will open up AES-GCM in next commit!

@codecov
Copy link

codecov bot commented Jul 16, 2020

Codecov Report

Merging #87 into master will increase coverage by 0.04%.
The diff coverage is 71.34%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #87      +/-   ##
==========================================
+ Coverage   77.60%   77.65%   +0.04%     
==========================================
  Files          11       14       +3     
  Lines         661      716      +55     
==========================================
+ Hits          513      556      +43     
- Misses         83       90       +7     
- Partials       65       70       +5     
Flag Coverage Δ
#go 77.65% <71.34%> (+0.04%) ⬆️
#wasm 77.65% <71.34%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
keying.go 79.31% <33.33%> (-12.00%) ⬇️
context.go 89.61% <40.00%> (+9.88%) ⬆️
srtp_cipher_aes_cm_hmac_sha1.go 64.44% <64.44%> (ø)
srtcp.go 78.37% <75.00%> (+1.45%) ⬆️
key_derivation.go 86.95% <86.95%> (ø)
protection_profile.go 88.88% <88.88%> (ø)
srtp.go 87.50% <100.00%> (+7.10%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update add2176...7681fc3. Read the comment docs.

This removes a lot of profile specific constants and insteads
put them behind the profile. Key, Salt and TagLen need to be
determined by the profile.

Relates to #85
ProtectionProfileAes128CmHmacSha1_80 ProtectionProfile = 0x0001
)

func (p ProtectionProfile) keyLen() (int, error) {
Copy link
Member

Choose a reason for hiding this comment

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

These profile spec getter would be nice to be exposed.

@Sean-Der Sean-Der merged commit 2f1e8b4 into master Jul 18, 2020
@Sean-Der Sean-Der deleted the issue-85 branch July 18, 2020 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants