ref: Use the HEADER_LENGTH constant. (#252)

This commit is contained in:
bgrozev 2022-03-02 09:00:07 -07:00 committed by GitHub
parent f195378a3d
commit 2baae57d53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -313,7 +313,7 @@ public class MessageIntegrityAttribute
this.hmacSha1Content = calculateHmacSha1(content, offset, length, key); this.hmacSha1Content = calculateHmacSha1(content, offset, length, key);
//username //username
System.arraycopy(hmacSha1Content, 0, binValue, 4, getDataLength()); System.arraycopy(hmacSha1Content, 0, binValue, HEADER_LENGTH, getDataLength());
return binValue; return binValue;
} }