This commit is contained in:
@@ -17,7 +17,7 @@ object `SHA-224` : HashFunction {
|
||||
0x64f98fa7U, 0xbefa4fa4U,
|
||||
).asIntArray()
|
||||
|
||||
override fun hashInto(value: ByteArray, destination: ByteArray) {
|
||||
override fun hashInto(value: ByteArray, destination: ByteArray, destinationOffset: Int) {
|
||||
val input = `SHA-256`.pad(value)
|
||||
val h = initial.copyOf()
|
||||
val w = IntArray(64)
|
||||
@@ -26,6 +26,6 @@ object `SHA-224` : HashFunction {
|
||||
for (i in input.indices step block) {
|
||||
`SHA-256`.process(h, input, i, w, v)
|
||||
}
|
||||
h.copyInto(destination, endIndex = 7)
|
||||
h.copyInto(destination, destinationOffset, endIndex = 7)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user