-
Notifications
You must be signed in to change notification settings - Fork 160
feat: Authcrypt Encrypt Using (X)Chach20Poly1035 #107
Conversation
Codecov Report
@@ Coverage Diff @@
## master #107 +/- ##
=========================================
+ Coverage 89.95% 90.5% +0.55%
=========================================
Files 24 26 +2
Lines 816 906 +90
=========================================
+ Hits 734 820 +86
- Misses 44 47 +3
- Partials 38 39 +1
Continue to review full report at Codecov.
|
Test coverage is a bit low. |
1eea58d
to
34f2e31
Compare
f606bb5
to
88e24e9
Compare
@Baha-sk Does this close #37 now? |
5735a9e
to
15f45d6
Compare
@@ -0,0 +1,104 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need test cases.
- against externally generated cases.
- against internal methods (when they are available).
(I don't see a TODO with a plan.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do have a test case that generates a JWE using the PHP example keys, but we can't compare the cipher output as it's based on cryptographically random keys/nonce generation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pushed a patch with a TODO comment... will definitely need to test interoperability with other libraries (like the reference php one: https://github.com/gamringer/php-authcrypt)
Begins: - Defining JSON structure for messages - Building crypter Note: expected to involve a fair bit of code duplication with PR hyperledger-archives#107. Refactoring will follow. Signed-off-by: Filip Burlacu <filip.burlacu@securekey.com>
3ec6ef1
to
55757c6
Compare
eda76ac
to
66bcc2a
Compare
ee97025
to
6488ee7
Compare
fb6f9d3
to
0e5bcfb
Compare
This change adds support to encrypt agent's payloads for the Pack() call at the transport layer It follows JWE encryption instructions from Aries Issue: hyperledger/aries-rfcs#133 Signed-off-by: Baha Shaaban <baha.shaaban@securekey.com>
Begins: - Defining JSON structure for messages - Building crypter Note: expected to involve a fair bit of code duplication with PR hyperledger-archives#107. Refactoring will follow. Signed-off-by: Filip Burlacu <filip.burlacu@securekey.com>
Signed-off-by: Baha Shaaban baha.shaaban@securekey.com
Title:
Authcrypt Encrypt Using (X)Chach20Poly1035
Description:
This is part of #37 and allows encrypting payloads at the transport layer of DidComm Agent
Summary:
This PR adds support to encrypt payloads using (X)Chacha20Poly35 IETF authenticated encryption.
Closes: #150