Skip to content

Commit 4eab03f

Browse files
committed
deps: @sigstore/core@3.2.1
1 parent 74c7323 commit 4eab03f

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

node_modules/@sigstore/core/dist/dsse.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ limitations under the License.
1919
const PAE_PREFIX = 'DSSEv1';
2020
// DSSE Pre-Authentication Encoding
2121
function preAuthEncoding(payloadType, payload) {
22-
const prefix = [
23-
PAE_PREFIX,
24-
payloadType.length,
25-
payloadType,
26-
payload.length,
27-
'',
28-
].join(' ');
29-
return Buffer.concat([Buffer.from(prefix, 'ascii'), payload]);
22+
const typeBytes = Buffer.from(payloadType, 'utf-8');
23+
return Buffer.concat([
24+
Buffer.from(`${PAE_PREFIX} ${typeBytes.length} `, 'ascii'),
25+
typeBytes,
26+
Buffer.from(` ${payload.length} `, 'ascii'),
27+
payload,
28+
]);
3029
}

node_modules/@sigstore/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sigstore/core",
3-
"version": "3.2.0",
3+
"version": "3.2.1",
44
"description": "Base library for Sigstore",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

package-lock.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,9 +2145,9 @@
21452145
}
21462146
},
21472147
"node_modules/@sigstore/core": {
2148-
"version": "3.2.0",
2149-
"resolved": "https://registry.npmjs.org/@sigstore/core/-/core-3.2.0.tgz",
2150-
"integrity": "sha512-kxHrDQ9YgfrWUSXU0cjsQGv8JykOFZQ9ErNKbFPWzk3Hgpwu8x2hHrQ9IdA8yl+j9RTLTC3sAF3Tdq1IQCP4oA==",
2148+
"version": "3.2.1",
2149+
"resolved": "https://registry.npmjs.org/@sigstore/core/-/core-3.2.1.tgz",
2150+
"integrity": "sha512-qRsxPnCrbC/puegGxKuynfnxgLiHqWStrSjxkoB4YKqq3Z3s4cyZyj42ZdWFAEblNP65C+rBH8EuREHIXoi83g==",
21512151
"inBundle": true,
21522152
"license": "Apache-2.0",
21532153
"engines": {

0 commit comments

Comments
 (0)