Skip to content

Commit

Permalink
Fix the bug caused by the segmentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
gefeili committed Nov 20, 2024
1 parent 2dadaa5 commit 5badfff
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private ContainedPacket generateV6ESK(int kekAlgorithm, int aeadAlgorithm, byte[

int tagLen = AEADUtils.getAuthTagLength(aeadAlgorithm);
byte[] sessionKey = getSessionKey(sessionInfo);
byte[] eskAndTag = getEskAndTag(kekAlgorithm, aeadAlgorithm, sessionKey, ikm, iv, info);
byte[] eskAndTag = getEskAndTag(kekAlgorithm, aeadAlgorithm, sessionKey, kek, iv, info);
byte[] esk = Arrays.copyOfRange(eskAndTag, 0, eskAndTag.length - tagLen);
byte[] tag = Arrays.copyOfRange(eskAndTag, esk.length, eskAndTag.length);

Expand Down

0 comments on commit 5badfff

Please sign in to comment.