Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line numberDiff line numberDiff line change
Expand Up@@ -1766,6 +1766,8 @@ private void finishAesDesOperation(KMOperationState op){
if (op.getPurpose() == KMType.DECRYPT && (len < (short) (op.getMacLength() / 8))) {
KMException.throwIt(KMError.INVALID_INPUT_LENGTH);
}
// update aad if there is any
updateAAD(op, KMType.INVALID_VALUE, (byte) 0x01);
if(op.isAesGcmUpdateAllowed()){
op.setAesGcmUpdateComplete();
}
Expand DownExpand Up@@ -2206,7 +2208,7 @@ private void updateAAD(KMOperationState op, short associatedData, byte finish) {
if (!op.isAesGcmUpdateAllowed()) {
KMException.throwIt(KMError.INVALID_TAG);
}
aData = KMByteTag.cast(tmpVariables[1]).getValue();
aData = KMByteTag.cast(tag).getValue();
}
}
try {
Expand Down