File tree Expand file tree Collapse file tree
node_modules/@sigstore/core Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,11 @@ limitations under the License.
1919const PAE_PREFIX = 'DSSEv1' ;
2020// DSSE Pre-Authentication Encoding
2121function 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}
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments