Check-in [3956295cf1]
Overview
Comment:ChromeOS: Fixed name of hashing algorithms we do support
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:3956295cf110905568d2c424b81659621ef78527
User & Date: rkeene on 2016-02-26 20:30:30
Other Links: manifest | tags
Context
2016-02-26
20:51
ChromeOS: Declare additional permissions check-in: 79a26e5dbf user: rkeene tags: trunk
20:30
ChromeOS: Fixed name of hashing algorithms we do support check-in: 3956295cf1 user: rkeene tags: trunk
20:24
ChromeOS: Updated PIN entry prompt to accept "Escape" to close it check-in: b297c8220e user: rkeene tags: trunk
Changes

Modified build/chrome/cackey.js from [f87cf78128] to [20b2fe6d64].

   327    327   	var certificateId;
   328    328   	var digest, digestHeader;
   329    329   
   330    330   	/*
   331    331   	 * Prefix the digest with the ASN.1 header required of it
   332    332   	 */
   333    333   	switch (signRequest.hash) {
   334         -		case "SHA-1":
          334  +		case "SHA1":
   335    335   			digestHeader = new Uint8Array([0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14]);
   336    336   			break;
   337         -		case "SHA-256":
          337  +		case "SHA256":
   338    338   			digestHeader = new Uint8Array([0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20]);
   339    339   			break;
   340    340   		case "MD5_SHA1":
   341    341   			digestHeader = new Uint8Array();
   342    342   			break;
   343    343   		default:
   344    344   			console.error("[cackey] Asked to sign a message with a hash we do not support: " + signRequest.hash);