Check-in [ea7a58ef60]
Overview
SHA1:ea7a58ef60b80f898295776adb9a7d76424e753d
Date: 2016-02-26 16:23:40
User: rkeene
Edited Comment: ChromeOS: Updated to support raw PKCS#1 message signing using the interface Chrome provides it
Original Comment: Updated to support raw PKCS#1 message signing using the interface Chrome provides it
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2016-02-26
16:35
[3783f79015] ChromeOS: Updated to pass original message back correctly (user: rkeene, tags: trunk)
16:23
[ea7a58ef60] ChromeOS: Updated to support raw PKCS#1 message signing using the interface Chrome provides it (user: rkeene, tags: trunk)
16:23
[42d0db67a2] ChromeOS: Updated to delete the entire retry queue when we are done with it (user: rkeene, tags: trunk)
Changes

Modified build/chrome/cackey.js from [fc0c6a8a4f] to [3ee1c2da74].

323
324
325
326
327
328
329



330
331
332
333
334
335
336
	switch (signRequest.hash) {
		case "SHA-1":
			digestHeader = new Uint8Array([0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14]);
			break;
		case "SHA-256":
			digestHeader = new Uint8Array([0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20]);
			break;



		default:
			console.error("[cackey] Asked to sign a message with a hash we do not support: " + signRequest.hash);

			chromeCallback();

			return;
	}







>
>
>







323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
	switch (signRequest.hash) {
		case "SHA-1":
			digestHeader = new Uint8Array([0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2b, 0x0e, 0x03, 0x02, 0x1a, 0x05, 0x00, 0x04, 0x14]);
			break;
		case "SHA-256":
			digestHeader = new Uint8Array([0x30, 0x31, 0x30, 0x0d, 0x06, 0x09, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20]);
			break;
		case "MD5_SHA1":
			digestHeader = new Uint8Array();
			break;
		default:
			console.error("[cackey] Asked to sign a message with a hash we do not support: " + signRequest.hash);

			chromeCallback();

			return;
	}