Check-in [3956295cf1]
Overview
SHA1:3956295cf110905568d2c424b81659621ef78527
Date: 2016-02-26 20:30:30
User: rkeene
Comment:ChromeOS: Fixed name of hashing algorithms we do support
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-02-26
20:51
[79a26e5dbf] ChromeOS: Declare additional permissions (user: rkeene, tags: trunk)
20:30
[3956295cf1] ChromeOS: Fixed name of hashing algorithms we do support (user: rkeene, tags: trunk)
20:24
[b297c8220e] ChromeOS: Updated PIN entry prompt to accept "Escape" to close it (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);