We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95d4d76 commit 7cd6a3bCopy full SHA for 7cd6a3b
1 file changed
sdk/js/src/index.ts
@@ -101,9 +101,9 @@ function replay_rtmr(history: string[]): string {
101
const padding = Buffer.alloc(48 - contentBuffer.length, 0)
102
contentBuffer = Buffer.concat([contentBuffer, padding])
103
}
104
- mr = crypto.createHash('sha384')
+ mr = Buffer.from(crypto.createHash('sha384')
105
.update(Buffer.concat([mr, contentBuffer]))
106
- .digest()
+ .digest())
107
108
return mr.toString('hex')
109
0 commit comments