1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701
|
<pre>Network Working Group D. Pinkas
Request for Comments: 3126 Integris
Category: Informational J. Ross
N. Pope
Security & Standards
September 2001
<span class="h1">Electronic Signature Formats</span>
<span class="h1">for long term electronic signatures</span>
Status of this Memo
This memo provides information for the Internet community. It does
not specify an Internet standard of any kind. Distribution of this
memo is unlimited.
Copyright Notice
Copyright (C) The Internet Society (2001). All Rights Reserved.
Abstract
This document defines the format of an electronic signature that can
remain valid over long periods. This includes evidence as to its
validity even if the signer or verifying party later attempts to deny
(i.e., repudiates the validity of the signature).
The format can be considered as an extension to <a href="./rfc2630">RFC 2630</a> and <a href="./rfc2634">RFC</a>
<a href="./rfc2634">2634</a>, where, when appropriate additional signed and unsigned
attributes have been defined.
The contents of this Informational RFC is technically equivalent to
ETSI TS 101 733 V.1.2.2. The ETSI TS is under the ETSI Copyright (C).
Individual copies of this ETSI deliverable can be downloaded from
<a href="http://www.etsi.org">http://www.etsi.org</a>
<span class="grey">Pinkas, et al. Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
Table of Contents
1. Introduction 4
2 Overview 5
2.1 Aim 5
2.2 Basis of Present Document 5
2.3 Major Parties 6
2.4 Electronic Signatures and Validation Data 7
2.5 Forms of Validation Data 8
2.6 Extended Forms of Validation Data 11
2.7 Archive Validation Data 13
2.8 Arbitration 15
2.9 Validation Process 15
2.10 Example Validation Sequence 16
2.11 Additional optional features 21
3. Data structure of an Electronic Signature 22
3.1 General Syntax 22
3.2 Data Content Type 22
3.3 Signed-data Content Type 22
3.4 SignedData Type 22
3.5 EncapsulatedContentInfo Type 23
3.6 SignerInfo Type 23
3.6.1 Message Digest Calculation Process 23
3.6.2 Message Signature Generation Process 24
3.6.3 Message Signature Verification Process 24
3.7 CMS Imported Mandatory Present Attributes 24
3.7.1 Content Type 24
3.7.2 Message Digest 24
3.7.3 Signing Time 24
3.8 Alternative Signing Certificate Attributes 24
3.8.1 ESS Signing Certificate Attribute Definition 25
3.8.2 Other Signing Certificate Attribute Definition 25
3.9 Additional Mandatory Attributes 26
3.9.1 Signature policy Identifier 26
3.10 CMS Imported Optional Attributes 28
3.10.1 Countersignature 29
3.11 ESS Imported Optional Attributes 29
3.11.1 Content Reference Attribute 29
3.11.2 Content Identifier Attribute 29
3.11.3 Content Hints Attribute 29
3.12 Additional Optional Attributes 30
3.12.1 Commitment Type Indication Attribute 30
3.12.2 Signer Location attribute 32
3.12.3 Signer Attributes attribute 33
3.12.4 Content Time-Stamp attribute 34
3.13 Support for Multiple Signatures 34
3.13.1 Independent Signatures 34
3.13.2 Embedded Signatures 34
<span class="grey">Pinkas, et al. Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
4. Validation Data 35
4.1 Electronic Signature Time-Stamp 36
4.1.1 Signature Time-Stamp Attribute Definition 36
4.2 Complete Validation Data 37
4.2.1 Complete Certificate Refs Attribute Definition 38
4.2.2 Complete Revocation Refs Attribute Definition 38
4.3 Extended Validation Data 40
4.3.1 Certificate Values Attribute Definition 40
4.3.2 Revocation Values Attribute Definition 41
4.3.3 ES-C Time-Stamp Attribute Definition 42
4.3.4 Time-Stamped Certificates and CRLs Attribute Definition 42
4.4 Archive Validation Data 43
4.4.1 Archive Time-Stamp Attribute Definition 43
5. Security Considerations 44
5.1 Protection of Private Key 44
5.2 Choice of Algorithms 44
6. Conformance Requirements 45
6.1 Signer 45
6.2 Verifier using time-stamping 46
6.3 Verifier using secure records 46
7. References 47
8. Authors' Addresses 48
Annex A (normative): ASN.1 Definitions 49
A.1 Definitions Using X.208 (1988) ASN.1 Syntax 49
A.2 Definitions Using X.680 1997 ASN.1 Syntax 57
Annex B (informative): General Description 66
B.1 The Signature Policy 66
B.2 Signed Information 67
B.3 Components of an Electronic Signature 68
B.3.1 Reference to the Signature Policy 68
B.3.2 Commitment Type Indication 69
B.3.3 Certificate Identifier from the Signer 69
B.3.4. Role Attributes 70
B.3.4.1 Claimed Role 71
B.3.4.2 Certified Role 71
B.3.5 Signer Location 72
B.3.6 Signing Time 72
B.3.7 Content Format 73
B.4 Components of Validation Data 73
B.4.1 Revocation Status Information 73
B.4.2 CRL Information 74
B.4.3 OCSP Information 74
B.4.4 Certification Path 75
B.4.5 Time-Stamping for Long Life of Signature 76
B.4.6 Time-Stamping before CA Key Compromises 77
B.4.6.1 Time-Stamping the ES with Complete validation data 77
B.4.6.2 Time-Stamping Certificates and Revocation Information 78
B.4.7 Time-Stamping for Long Life of Signature 79
<span class="grey">Pinkas, et al. Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
B.4.8 Reference to Additional Data 80
B.4.9 Time-Stamping for Mutual Recognition 80
B.4.10 TSA Key Compromise 81
B.5 Multiple Signatures 81
Annex C (informative): Identifiers and roles 82
C.1 Signer Name Forms 82
C.2 TSP Name Forms 82
C.3 Roles and Signer Attributes 83
Full Copyright Statement 84
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document is intended to cover electronic signatures for various
types of transactions, including business transactions (e.g.,
purchase requisition, contract, and invoice applications) where long
term validity of such signatures is important. This includes
evidence as to its validity even if the signer or verifying party
later attempts to deny (i.e., repudiates, see [<a href="#ref-ISONR">ISONR</a>]) the validity
of the signature).
Electronic signatures can be used for any transaction between an
individual and a company, between two companies, between an
individual and a governmental body, etc. This document is
independent of any environment. It can be applied to any environment
e.g., smart cards, GSM SIM cards, special programs for electronic
signatures etc.
An electronic signature produced in accordance with this document
provides evidence that can be processed to get confidence that some
commitment has been explicitly endorsed under a signature policy, at
a given time, by a signer under an identifier, e.g., a name or a
pseudonym, and optionally a role.
The European Directive on a community framework for Electronic
Signatures defines an electronic signature as: "data in electronic
form which is attached to or logically associated with other
electronic data and which serves as a method of authentication". An
electronic signature as used in the current document is a form of
advanced electronic signature as defined in the Directive.
The key words "MUST", "MUST NOT", "REQUIRED", "SHOULD", "SHOULD NOT",
"RECOMMENDED", "MAY", and "OPTIONAL" in this document (in uppercase,
as shown) are to be interpreted as described in [<a href="./rfc2119" title=""Key words for use in RFCs to Indicate Requirement Levels"">RFC2119</a>].
<span class="grey">Pinkas, et al. Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a> Overview</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a> Aim</span>
The aim of this document is to define an Electronic Signature (ES)
that remains valid over long periods. This includes evidence as to
its validity even if the signer or verifying party later attempts to
deny (repudiates) the validity of the signature.
This document specifies the use of trusted service providers (e.g.,
Time-Stamping Authorities (TSA)), and the data that needs to be
archived (e.g., cross certificates and revocation lists) to meet the
requirements of long term electronic signatures. An electronic
signature defined by this document can be used for arbitration in
case of a dispute between the signer and verifier, which may occur at
some later time, even years later. This document uses a signature
policy, referenced by the signer, as the basis for establishing the
validity of an electronic signature.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a> Basis of Present Document</span>
This document is based on the use of public key cryptography to
produce digital signatures, supported by public key certificates.
A Public key certificate is a public keys of a user, together with
some other information, rendered unforgeable by encipherment with the
private key of the Certification Authority (CA) which issued it
(ITU-T Recommendation X.509 [1]).
This document also specifies the uses of time-stamping services to
prove the validity of a signature long after the normal lifetime of
critical elements of an electronic signature and to support non-
repudiation. It also, as an option, defines the use of additional
time-stamps to provide very long-term protection against key
compromise or weakened algorithms.
This document builds on existing standards that are widely adopted.
This includes:
* <a href="./rfc2459">RFC 2459</a> [<a href="./rfc2459" title=""Internet X.509 Public Key Infrastructure, Certificate and CRL Profile"">RFC2459</a>] Internet X.509 Public Key Infrastructure
Certificate and CRL Profile (PKIX);
* <a href="./rfc2630">RFC 2630</a> [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>] Crytographic Message Syntax (CMS);
* <a href="./rfc2634">RFC 2634</a> [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>] Enhanced Security Services (ESS);
* <a href="./rfc2439">RFC 2439</a> [<a href="#ref-OCSP" title=""On-line Status Certificate Protocol"">OCSP</a>] One-line Certificate Status Protocol (OCSP);
* ITU-T Recommendation X.509 [1] Authentication framework;
* RFC (to be published) [<a href="#ref-TSP" title=""Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP)"">TSP</a>] PKIX Time Stamping protocol (TSP).
NOTE: See clause 8 for a full set of references.
<span class="grey">Pinkas, et al. Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h3"><a class="selflink" id="section-2.3" href="#section-2.3">2.3</a> Major Parties</span>
The following are the major parties involved in a business
transaction supported by electronic signatures as defined in this
document:
* the Signer;
* the Verifier;
* the Arbitrator;
* Trusted Service Providers (TSP).
A Signer is an entity that initially creates the electronic
signature. When the signer digitally signs over data using the
prescribed format, this represents a commitment on behalf of the
signing entity to the data being signed.
A verifier is an entity that verifies an evidence. (ISO/IEC 13888-1
[13]). Within the context of this document this is an entity that
validates an electronic signature.
An arbitrator, is an entity which arbitrates disputes between a
signer and a verifier when there is a disagreement on the validity of
a digital signature.
Trusted Service Providers (TSPs) are one or more entities that help
to build trust relationships between the signer and verifier. Use of
some specific TSP services MAY be mandated by signature policy. TSP
supporting services may provide the following information: user
certificates, cross-certificates, time-stamping tokens, CRLs, ARLs,
OCSP responses.
The following TSPs are used to support the validation or the
verification of electronic signatures:
* Certification Authorities;
* Registration Authorities;
* Repository Authorities (e.g., a Directory);
* Time-Stamping Authorities;
* One-line Certificate Status Protocol responders;
* Attribute Authorities;
* Signature Policy Issuers.
Certification Authorities provide users with public key certificates.
Registration Authorities allows the registration of entities before a
CA generates certificates.
<span class="grey">Pinkas, et al. Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
Repository Authorities publish CRLs issued by CAs, cross-certificates
(i.e., CA certificates) issued by CAs, signature policies issued by
Signature Policy Issuers and optionally public key certificates
(i.e., leaf certificates) issued by CAs.
Time-Stamping Authorities attest that some data was formed before a
given trusted time.
One-line Certificate Status Protocol responders (OSCP responders)
provide information about the status (i.e., revoked, not revoked,
unknown) of a particular certificate.
A Signature Policy Issuer issues signatures policies that define the
technical and procedural requirements for electronic signature
creation, validation and verification, in order to meet a particular
business need.
Attributes Authorities provide users with attributes linked to public
key certificates
<span class="h3"><a class="selflink" id="section-2.4" href="#section-2.4">2.4</a> Electronic Signatures and Validation Data</span>
Validation of an electronic signature in accordance with this
document requires:
* The electronic signature; this includes:
- the signature policy;
- the signed user data;
- the digital signature;
- other signed attributes provided by the signer;
- other unsigned attributes provided by the signer.
Validation data which is the additional data needed to validate the
electronic signature; this includes:
- certificates references;
- certificates;
- revocation status information references;
- revocation status information;
- time-stamps from Time Stamping Authorities (TSAs).
* The signature policy specifies the technical requirements on
signature creation and validation in order to meet a particular
business need. A given legal/contractual context may recognize
a particular signature policy as meeting its requirements.
<span class="grey">Pinkas, et al. Informational [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
For example: a specific signature policy may be recognized by court
of law as meeting the requirements of the European Directive for
electronic commerce. A signature policy may be written using a
formal notation like ASN.1 or in an informal free text form provided
the rules of the policy are clearly identified. However, for a given
signature policy there shall be one definitive form which has a
unique binary encoded value.
Signed user data is the user's data that is signed.
The Digital Signature is the digital signature applied over the
following attributes provided by the signer:
* hash of the user data (message digest);
* signature Policy Identifier;
* other signed attributes
The other signed attributes include any additional information which
must be signed to conform to the signature policy or this document
(e.g., signing time).
According to the requirements of a specific signature policy in use,
various Validation Data shall be collected and attached to or
associated with the signature structure by the signer and/or the
verifier. The validation data includes CA certificates as well as
revocation status information in the form of certificate revocation
lists (CRLs) or certificate status information provided by an on-line
service. Additional data also includes time-stamps and other time
related data used to provide evidence of the timing of given events.
It is required, as a minimum, that either the signer or verifier
obtains a time-stamp over the signer's signature or a secure time
record of the electronic signature must be maintained. Such secure
records must not be undetectably modified and must record the time
close to when the signature was first validated.
<span class="h3"><a class="selflink" id="section-2.5" href="#section-2.5">2.5</a> Forms of Validation Data</span>
An electronic signature may exist in many forms including:
* the Electronic Signature (ES), which includes the digital
signature and other basic information provided by the signer;
* the ES with Time-Stamp (ES-T), which adds a time-stamp to the
Electronic Signature, to take initial steps towards providing
long term validity;
<span class="grey">Pinkas, et al. Informational [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
* the ES with Complete validation data (ES-C), which adds to the
ES-T references to the complete set of data supporting the
validity of the electronic signature (i.e., revocation status
information).
The signer must provide at least the ES form, but in some cases may
decide to provide the ES-T form and in the extreme case could provide
the ES-C form. If the signer does not provide ES-T, the verifier
must either create the ES-T on first receipt of an electronic
signature or shall keep a secure time record of the ES. Either of
these two approaches provide independent evidence of the existence of
the signature at the time it was first verified which should be near
the time it was created, and so protects against later repudiation of
the existence of the signature. If the signer does not provide ES-C
the verifier must create the ES-C when the complete set of revocation
and other validation data is available.
The ES satisfies the legal requirements for electronic signatures as
defined in the European Directive on electronic signatures, see Annex
C for further discussion on relationship of this document to the
Directive. It provides basic authentication and integrity protection
and can be created without accessing on-line (time-stamping)
services. However, without the addition of a time-stamp or a secure
time record the electronic signature does not protect against the
threat that the signer later denies having created the electronic
signature (i.e., does not provide non-repudiation of its existence).
The ES-T time-stamp or time record should be created close to the
time that ES was created to provide protection against repudiation.
At this time all the data needed to complete the validation may not
be available but what information is readily available may be used to
carry out some of the initial checks. For example, only part of the
revocation information may be available for verification at that
point in time. Generally, the ES-C form cannot be created at the
same time as the ES, as it is necessary to allow time for any
revocation information to be captured. Also, if a certificate is
found to be temporarily suspended, it will be necessary to wait until
the end of the suspension period.
The signer should only create the ES-C in situations where it was
prepared to wait for a sufficient length of time after creating the
ES form before dispatching the ES-C. This, however, has the
advantage that the verifier can be presented with the complete set of
data supporting the validity of the ES.
Support for ES-C by the verifier is mandated (see clause 6 for
specific conformance requirements).
<span class="grey">Pinkas, et al. Informational [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
An Electronic Signature (ES), with the additional validation data
forming the ES-T and ES-C is illustrated in Figure 1:
+------------------------------------------------------------ES-C-----+
|+--------------------------------------------ES-T-----+ |
||+------Elect.Signature (ES)----------+ +------------+| +-----------+|
|||+---------+ +----------+ +---------+| |Time-Stamp || |Complete ||
||||Signature| | Other | | Digital || |over digital|| |certificate||
||||Policy ID| | Signed | |Signature|| |signature || |and ||
|||| | |Attributes| | || +------------+| |revocation ||
|||+---------+ +----------+ +---------+| | |references ||
||+------------------------------------+ | +-----------+|
|+-----------------------------------------------------+ |
+---------------------------------------------------------------------+
Figure 1: Illustration of an ES, ES-T and ES-C
The verifiers conformance requirements of an ES with a time-stamp of
the digital signature is defined in subclause 6.2.
The ES on its own satisfies the legal requirements for electronic
signatures as defined in the European Directive on electronic
signatures. The signers conformance requirements of an ES are
defined in subclause 6.1, and are met using a structure as indicated
in figure 2:
+------Elect.Signature (ES)-----------|
|+---------+ +----------+ +---------+ |
||Signature| | Other | | Digital | |
||Policy ID| | Signed | |Signature| |
|| | |Attributes| | | |
|+---------+ +----------+ +---------+ |
|+-----------------------------------+|
Figure 2: Illustration of an ES
<span class="grey">Pinkas, et al. Informational [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
Where there are requirements for long term signatures without time-
stamping the digital signature, then a secure record is needed of the
time of verification in association with the electronic signature
(i.e., both must be securely recorded). In addition the certificates
and revocation information used at the time of verification should to
be recorded as indicated in figure 3 as an ES-C(bis).
+-------------------------------------------------------ES-C-----+
| |
| +------Elect.Signature (ES)----------+| +-----------+|
| |+---------+ +----------+ +---------+|| |Complete ||
| ||Signature| | Other | | Digital ||| |certificate||
| ||Policy ID| | Signed | |Signature||| |and ||
| || | |Attributes| | ||| |revocation ||
| |+---------+ +----------+ +---------+|| |references ||
| +------------------------------------+| +-----------+|
| |
+----------------------------------------------------------------+
Figure 3: Illustration of an ES-C(bis)
The verifiers conformance requirements of an ES-C(bis) is defined in
subclause 6.3.
Note: A time-stamp attached to the electronic signature or a secure
time record helps to protect the validity of the signature even if
some of the verification data associated with the signature become
compromised AFTER the signature was generated. The time-stamp or a
secure time record provides evidence that the signature was generated
BEFORE the event of compromise; hence the signature will maintain its
validity status.
<span class="h3"><a class="selflink" id="section-2.6" href="#section-2.6">2.6</a> Extended Forms of Validation Data</span>
The complete validation data (ES-C) described above may be extended
to form an ES with eXtended validation data (ES-X) to meet following
additional requirements.
Firstly, when the verifier does not has access to,
* the signer's certificate,
* all the CA certificates that make up the full certification
path,
* all the associated revocation status information, as referenced
in the ES-C.
<span class="grey">Pinkas, et al. Informational [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
then the values of these certificates and revocation information may
be added to the ES-C. This form of extended validation data is
called a X-Long.
Secondly, if there is a risk that any CA keys used in the certificate
chain may be compromised, then it is necessary to additionally time-
stamp the validation data by either:
* time-stamping all the validation data as held with the ES(ES-
C), this eXtended validation data is called a Type 1 X-Time-
Stamp; or
* time-stamping individual reference data as used for complete
validation.
This form of eXtended validation data is called a Type 2 X-Time-
Stamp.
NOTE: The advantages/drawbacks for Type 1 and Type 2 X-Time-Stamp
are discussed in this document (see clause B.4.6.)
If all the above conditions occur then a combination of the two
formats above may be used. This form of eXtended validation data is
called a X-Long-Time-Stamped.
Support for the extended forms of validation data is optional.
An Electronic Signature (ES) , with the additional validation data
forming the ES-X long is illustrated in Figure 4:
+-------------------------------------------------------- ES-X Long--+
|+---------------------------------------- EC-C --------+ |
||+---- Elect.Signature (ES)----+ +--------+| +--------+ |
|||+-------+-+-------+-+-------+| +----------+|Complete|| |Complete| |
||||Signa- | |Other | |Digital|| |Time-Stamp||certi- || |certi- | |
||||ture | |Signed | |Signa- || |over ||ficate || |ficate | |
||||Policy | |Attri- | |ture || |digital ||and || |and | |
||||ID | |butes | | || |signature ||revoc. || |revoc. | |
|||+-------+ +-------+ +-------+| +----------+|refs || |data | |
||+-----------------------------+ +--------+| +--------+ |
|+------------------------------------------------------+ |
+--------------------------------------------------------------------+
Figure 4: Illustration of an ES and ES-X long.
<span class="grey">Pinkas, et al. Informational [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
An Electronic Signature (ES) , with the additional validation data
forming the eXtended Validation Data - Type 1 is illustrated in
Figure 5:
+----------------------------------------------------------- ES-X 1 -+
|+----------------------------------------- EC-C --------+ |
|| +---- Elect.Signature (ES)----+ +--------+| +-------+ |
|| |+-------+ +-------+ +-------+| +----------+|Complete|| | | |
|| ||Signa- | |Other | |Digital|| |Time-Stamp||certifi-|| | Time- | |
|| ||ture | |Signed | |Signa- || |over ||cate and|| | stamp | |
|| ||Policy | |Attri- | |ture || |digital ||revoc. || | over | |
|| ||ID | |butes | | || |signature ||refs || | CES | |
|| |+-------+ +-------+ +-------+| +----------+| || | | |
|| +-----------------------------+ +--------+| +-------+ |
|+-------------------------------------------------------+ |
+--------------------------------------------------------------------+
Figure 5: Illustration of ES with ES-X Type 1
An Electronic Signature (ES) , with the additional validation data
forming the eXtended Validation Data - Type 2 is illustrated in
Figure 6:
+--------------------------------------------------------- ES-X 2 ---+
|+---------------------------------------- EC-C --------+ |
||+---- Elect.Signature (ES)----+ +--------+| +--------+ |
|||+-------+ +-------+ +-------+| +----------+|Complete|| |Times | |
||||Signa- | |Other | |Digital|| |Time-Stamp||certs || |Stamp | |
||||ture | |Signed | |Signa- || |over ||and || |over | |
||||Policy | |Attri- | |ture || |digital ||revoc. || |Complete| |
||||ID | |butes | | || |signature ||refs || |certs | |
|||+-------+ +-------+ +-------+| +----------+| || |and | |
||+-----------------------------+ +--------+| |revoc. | |
|| | |refs | |
|+------------------------------------------------------+ +--------+ |
+--------------------------------------------------------------------+
Figure 6: Illustration of ES with ES-X Type 2
<span class="h3"><a class="selflink" id="section-2.7" href="#section-2.7">2.7</a> Archive Validation Data</span>
Before the algorithms, keys and other cryptographic data used at the
time the ES-C was built become weak and the cryptographic functions
become vulnerable, or the certificates supporting previous time-
stamps expires, the signed data, the ES-C and any additional
information (ES-X) should be time-stamped. If possible this should
use stronger algorithms (or longer key lengths) than in the original
time-stamp.
<span class="grey">Pinkas, et al. Informational [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
This additional data and time-stamp is called Archive Validation Data
(ES-A). The Time-Stamping process may be repeated every time the
protection used to time-stamp a previous ES-A become weak. An ES-A
may thus bear multiple embedded time stamps.
An example of an Electronic Signature (ES), with the additional
validation data for the ES-C and ES-X forming the ES-A is illustrated
in Figure 7.
+-------------------------------- ES-A --------- ----------+
| +-------------------- ES-A -----------------+ |
| | +--------- ES-X -------------- + | |
| | |..............................| +-----+ | +-----+ |
| | |..............................| |Time | | |Time | |
| | |..............................| |Stamp| | |Stamp| |
| | | | +-----+ | +-----+ |
| | +----------------------------- + | |
| +-------------------------------------------+ |
+----------------------------------------------------------+
Figure 7: Illustration of ES -A
Support for ES-A is optional.
<span class="grey">Pinkas, et al. Informational [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h3"><a class="selflink" id="section-2.8" href="#section-2.8">2.8</a> Arbitration</span>
The ES-C may be used for arbitration should there be a dispute
between the signer and verifier, provided that:
* a copy of the signature policy referenced by the signer is
available;
* the arbitrator knows where to retrieve the signer's certificate
(if not already present), all the cross-certificates and the
required CRLs and/or OCSPs responses referenced in the ES-C;
* none of the issuing key from the certificate chain have ever
been compromised;
* the cryptography used at the time the ES-C was built has not
been broken at the time the arbitration is performed.
When the second condition is not met, then the plaintiff must provide
an ES-X Long.
When it is known by some external means that the third condition is
not met, then the plaintiff must provide an ES-X Time-Stamped.
When the two previous conditions are not met, the plaintiff must
provide the two above information (i.e., an ES-X Time-Stamped and
Long).
When the last condition is not met, the plaintiff must provide an
ES-A.
It should be noticed that a verifier may need to get two time stamps
at two different instants of time: one soon after the generation of
the ES and one soon after some grace period allowing any entity from
the certification chain to declare a key compromise.
<span class="h3"><a class="selflink" id="section-2.9" href="#section-2.9">2.9</a> Validation Process</span>
The Validation Process validates an electronic signature in
accordance with the requirements of the signature policy. The output
status of the validation process can be:
* valid;
* invalid;
* incomplete verification.
A Valid response indicates that the signature has passed verification
and it complies with the signature validation policy.
<span class="grey">Pinkas, et al. Informational [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
A signature validation policy is a part of the signature policy which
specifies the technical requirements on the signer in creating a
signature and verifier when validating a signature.
An Invalid response indicates that either the signature format is
incorrect or that the digital signature value fails verification
(e.g., the integrity checks on the digital signature value fails or
any of the certificates on which the digital signature verification
depends is known to be invalid or revoked).
An Incomplete Validation response indicates that the format and
digital signature verifications have not failed but there is
insufficient information to determine if the electronic signature is
valid under the signature policy. This can include situations where
additional information, which does not effect the validity of the
digital signature value, may be available but is invalid.
In the case of Incomplete Validation, it may be possible to request
that the electronic signature be checked again at a later date when
additional validation information might become available. Also, in
the case of incomplete validation, additional information may be made
available to the application or user, thus allowing the application
or user to decide what to do with partially correct electronic
signatures.
The validation process may also output validation data:
* a signature time-stamp;
* the complete validation data;
* the archive validation data.
<span class="h3"><a class="selflink" id="section-2.10" href="#section-2.10">2.10</a> Example Validation Sequence</span>
Figure 8, and subsequent description, describes how the validation
process may build up a complete electronic signature over time.
Soon after receiving the electronic signature (ES) from the signer
(1), the digital signature value may be checked, the validation
process must at least add a time-stamp (2), unless the signer has
provided one which is trusted by the verifier. The validation
process may also validate the electronic signature, as required under
the identified signature policy, using additional data (e.g.,
certificates, CRL, etc.) provided by trusted service providers. If
the validation process is not complete then the output from this
stage is the ES-T.
<span class="grey">Pinkas, et al. Informational [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
When all the additional data (e.g., the complete certificate and
revocation information) necessary to validate the electronic
signature first becomes available, then the validation process:
* obtains all the necessary additional certificate and revocation
status information;
* completes all the validation checks on the ES, using the
complete certificate and revocation information (if a time-
stamp is not already present, this may be added at the same
stage combining ES-T and ES-C process);
* records the complete certificate and revocation references (3);
* indicates the validity status to the user (4).
+----------------------------------------- ES-C ----------+
|+----------------------------- ES-T --------+ |
||+--- Elect.Signature (ES) ----+ | +--------+ |
|||+-------+ +-------+ +-------+|+----------+| |Complete| |
||||Signa- | |Other | |Digital|||Time-Stamp|| |certifi-| |
||||ture | |Signed | |Signa- |||over || |cate and| |
||||Policy | |Attri- | |ture |||digital || |revoca- | |
||||ID | |butes | | |||signature || |tion | |
|||+-------+ +-------+ +-------+|+----------+| |referen-| |
||+------------\----------------+ ^ | |ces | |
|| \ | | +--------+ |
|| \ 1 / | ^ |
|+----------------\----------------/---------+ | |
+------------------\--------------/--------------- /------+
\ /2 ----3------/
+----------+ | / /
| Signed |\ v / |
|User data | \ +--------------------+ +------------+
+----------+ \--->| Validation Process |---> |- Valid |
+---|--^-------|--^--+ 4 |- Invalid |
| | | | |- Validation|
v | v | | Incomplete|
+---------+ +--------+ +------------+
|Signature| |Trusted |
| Policy | |Service |
| Issuer | |Provider|
+---------+ +--------+
Figure 8: Illustration of an ES with Complete validation data (ES-C)
<span class="grey">Pinkas, et al. Informational [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
At the same time as the validation process creates the ES-C, the
validation process may provide and/or record the values of
certificates and revocation status information used in ES-C, called
the ES-X Long (5). This is illustrated in figure 9:
+----------------------------------------------------- ES-X ---------+
|+---------------------------------------- ES-C --------+ +--------+ |
||+--- Elect.Signature (ES) ----+ +--------+ | |Complete| |
|||+-------+ +-------+ +-------+|+----------+|Complete| | |certifi-| |
||||Signa- | |Other | |Digital|||Time-Stamp||certifi-| | |cate | |
||||ture | |Signed | |Signa- |||over ||cate and| | |and | |
||||Policy | |Attri- | |ture |||digital ||revoca- | | |revoca- | |
||||ID | |butes | | |||signature ||tion | | |tion | |
|||+-------+ +---|---+ +-------+|+----------+|referen-| | |Data | |
||+--------------\--------------+ ^ |ces | | +--------+ |
|| \ | +--------+ | ^ |
|| \ 1 2/ ^ | | |
|+------------------\--------------/------------|-------+ / |
+--------------------\------------/------------/-------------/-------+
\ / ---3----/ /
+----------+ | / / ------------5-----/
| Signed |\ v | | /
|User data | \ +--------------------+ +-----------+
+----------+ \--->| Validation Process |---> | - Valid |
+---|--^-------|--^--+ 4 | - Invalid |
| | | | +-----------+
v | v |
+---------+ +--------+
|Signature| |Trusted |
| Policy | |Service |
| Issuer | |Provider|
+---------+ +--------+
Figure 9: Illustration ES with eXtended validation data (Long)
When the validation process creates the ES-C it may also create
extended forms of validation data. A first alternative is to time-
stamp all data forming the Type 1 X-Time-Stamp (6). This is
illustrated in figure 10:
<span class="grey">Pinkas, et al. Informational [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
+----------------------------------------------------- ES-X -------+
|+---------------------------------------- ES-C --------+ +------+ |
||+--- Elect.Signature (ES) ----+ +--------+ | |Time- | |
|||+-------+ +-------+ +-------+|+----------+|Complete| | |Stamp | |
||||Signa- | |Other | |Digital|||Time-Stamp||certifi-| | |over | |
||||ture | |Signed | |Signa- |||over ||cate and| | |CES | |
||||Policy | |Attri- | |ture |||digital ||revoca- | | +------+ |
||||ID | |butes | | |||signature ||tion | | ^ |
|||+-------+ +--|----+ +-------+|+----------+|referen-| | | |
||+-------------|---------------+ ^ |ces | | | |
|| | | +--------+ | | |
|| \ 1 2/ ^ | | |
|+----------------\------------------/----------|-------+ | |
+------------------\----------------/-----------/-------------/----+
\ / ----3---/ /
+----------+ | / / ---------------6---/
| Signed |\ v | | /
|User data | \ +--------------------+ +-----------+
+----------+ \--->| Validation Process |---> | - Valid |
+---|--^-------|--^--+ 4 | - Invalid |
| | | | +-----------+
v | v |
+---------+ +--------+
|Signature| |Trusted |
| Policy | |Service |
| Issuer | |Provider|
+---------+ +--------+
Figure 10: Illustration of ES with eXtended validation data -
Type 1 X-Time-Stamp
<span class="grey">Pinkas, et al. Informational [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
Another alternative is to time-stamp the certificate and revocation
information references used to validate the electronic signature (but
not the signature) (6'); this is called Type 2 X-Time-Stamped. This
is illustrated in figure 11:
+----------------------------------------------------- ES-X -----------+
|+---------------------------------------- ES-C --------+ +----------+ |
||+--- Elect.Signature (ES) ----+ +--------+ | |Time-Stamp| |
|||+-------+ +-------+ +-------+|+----------+|Complete| | |over | |
||||Signa- | |Other | |Digital|||Time-Stamp||certifi-| | |Complete | |
||||ture | |Signed | |Signa- |||over ||cate and| | |Certifi- | |
||||Policy | |Attri- | |ture |||digital ||revoc. | | |cate and | |
||||ID | |butes | | |||signature ||refs | | |revoc. | |
|||+-------+ +---^---+ +-------+|+----^-----++---^----+ | |refs | |
||+--------------\--------------+ | | | +----------+ |
|+----------------\------------------/-----------|------+ ^ |
+----------------1-\----------------/-----------/--------------|-------+
\ / -----3---/ |
+----------+ | 2/ / ---------------6'-----/
| Signed |\ v | | /
|User data | \ +--------------------+ +-----------+
+----------+ \--->| Validation Process |---> | - Valid |
+---|--^-------|--^--+ 4 | - Invalid |
| | | | +-----------+
v | v |
+---------+ +--------+
|Signature| |Trusted |
| Policy | |Service |
| Issuer | |Provider|
+---------+ +--------+
Figure 11: Illustration of ES with eXtended validation data -
Type 2 X-Time-Stamp
Before the algorithms used in any of electronic signatures become or
are likely, to be compromised or rendered vulnerable in the future,
it is necessary to time-stamp the entire electronic signature,
including all the values of the validation and user data as an ES
with Archive validation data (ES-A)
<span class="grey">Pinkas, et al. Informational [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
An ES-A is illustrated in figure 12:
-------------------------------------------- ES-A --------------------+
----------------------------------------------------------------+ |
+------------------------------- EC-C --------++-----+ | |
| ||Time-| | |
|+-- Elect.Signature (ES) -+ +--------+||Stamp| +-------+ |
||+------++-------++-------|+------+|Complete|||over | Complete| |
|||Signa-||Other ||Digital||Time- ||certifi-|||CES | |certi- |+----|
|||ture ||Signed ||Signa- ||Stamp ||cate and||+-----+ |ficate |Arch-|
|||Policy||Attri- ||ture ||over ||revoca- ||+------+ |and |ive |
|||ID ||butes || ||digit.||tion |||Time- | |revoca-|Time |
||+------++---|---++-------||signa-||referen-|||Stamp-| |tion |stamp|
|+------------|------------+|ture ||ces |||over | |data |+----|
| | +------++--------+|Complete\+-------+ ^ |
| | ^ ^ ||cert. | | | |
+-------------|----------------|---------|----+|and rev| | | |
\ | / |refs. | | | |
\ | / +-------+ | | |
-----------------\-------------|-------/------------------------+ | |
+----------+ \ | / / |
| Signed | \2 |3 / /--------------7-------/ |
|User data | \ | | / |
+-------\--+ \ | | / |
---------\------------|--------|----|---/-----------------------------+
\ v | | |
1\ +--------------------+ +-----------+
\------>| Validation Process |---> | - Valid |
+---|--^-------|--^--+ 4 | - Invalid |
| | | | +-----------+
v | v |
+---------+ +--------+
|Signature| |Trusted |
| Policy | |Service |
| Issuer | |Provider|
+---------+ +--------+
Figure 12: Illustration of an ES with Archive validation data (ES-A)
<span class="h3"><a class="selflink" id="section-2.11" href="#section-2.11">2.11</a> Additional optional features of an ES</span>
This document also defines additional optional features of an
electronic signature to:
* indicate a commitment type being made by the signer;
* indicate the role under which a signature was created;
* support multiple signatures.
<span class="grey">Pinkas, et al. Informational [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Data structure of an Electronic Signature</span>
This clause uses and builds upon the Cryptographic Message Syntax
(CMS), as defined in <a href="./rfc2630">RFC 2630</a> [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>], and Enhanced Security Services
(ESS), as defined in <a href="./rfc2634">RFC 2634</a> [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>]. The overall structure of
Electronic Signature is as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>]. The Electronic
Signature (ES) uses attributes defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>], [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>] and this
document. This document defines in full the ES attributes which it
uses and are not defined elsewhere.
The mandated set of attributes and the digital signature value is
defined as the minimum Electronic Signature (ES) required by this
document. A signature policy MAY mandate other signed attributes to
be present.
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a> General Syntax</span>
The general syntax of the ES is as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a> Data Content Type</span>
The data content type of the ES is as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
The data content type is intended to refer to arbitrary octet
strings, such as ASCII text files; the interpretation is left to the
application. Such strings need not have any internal structure
(although they could have their own ASN.1 definition or other
structure).
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a> Signed-data Content Type</span>
The Signed-data content type of the ES is as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
The signed-data content type consists of a content of any type and
zero or more signature values. Any number of signers in parallel can
sign any type of content. The typical application of the signed-data
content type represents one signer's digital signature on content of
the data content type.
To make sure that the verifier uses the right certificate, this
document mandates that the hash of the signers certificate is always
included in the Signing Certificate signed attribute.
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a> SignedData Type</span>
The syntax of the SignedData type of the ES is as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
<span class="grey">Pinkas, et al. Informational [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The fields of type SignedData have the meanings defined [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>] except
that:
* version is the syntax version number. The value of version
must be 3.
* The identification of signer's certificate used to create the
signature is always present as a signed attribute.
* The degenerate case where there are no signers is not valid in
this document.
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a> EncapsulatedContentInfo Type</span>
The syntax of the EncapsulatedContentInfo a type of the ES is as
defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
For the purpose of long term validation as defined by this document,
it is advisable that either the eContent is present, or the data
which is signed is archived in such as way as to preserve the any
data encoding. It is important that the OCTET STRING used to generate
the signature remains the same every time either the verifier or an
arbitrator validates the signature.
The degenerate case where there are no signers is not valid in this
document.
<span class="h3"><a class="selflink" id="section-3.6" href="#section-3.6">3.6</a> SignerInfo Type</span>
The syntax of the SignerInfo a type of the ES is as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
Per-signer information is represented in the type SignerInfo. In the
case of multiple independent signatures, there is an instance of this
field for each signer.
The fields of type SignerInfo have the meanings defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>]
except that signedAttributes must, as a minimum, contain the
following attributes:
* ContentType as defined in clause 3.7.1.
* MessageDigest as defined in clause 3.7.2.
* SigningTime as defined in clause 3.7.3.
* SigningCertificate as defined in clause 3.8.1.
* SignaturePolicyId as defined in clause 3.9.1.
<span class="h4"><a class="selflink" id="section-3.6.1" href="#section-3.6.1">3.6.1</a> Message Digest Calculation Process</span>
The message digest calculation process is as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
<span class="grey">Pinkas, et al. Informational [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h4"><a class="selflink" id="section-3.6.2" href="#section-3.6.2">3.6.2</a> Message Signature Generation Process</span>
The input to the digital signature generation process is as defined
in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
<span class="h4"><a class="selflink" id="section-3.6.3" href="#section-3.6.3">3.6.3</a> Message Signature Verification Process</span>
The procedures for CMS signed data validation are as defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>]
and enhanced in this document.
The input to the signature verification process includes the signer's
public key verified as correct using either the ESS Signing
Certificate attribute or the Other Signing Certificate attribute.
<span class="h3"><a class="selflink" id="section-3.7" href="#section-3.7">3.7</a> CMS Imported Mandatory Present Attributes</span>
The following attributes MUST be present with the signed-data defined
by this document. The attributes are defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
<span class="h4"><a class="selflink" id="section-3.7.1" href="#section-3.7.1">3.7.1</a> Content Type</span>
The syntax of the content-type attribute type of the ES is as defined
in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
<span class="h4"><a class="selflink" id="section-3.7.2" href="#section-3.7.2">3.7.2</a> Message Digest</span>
The syntax of the message-digest attribute type of the ES is as
defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>].
<span class="h4"><a class="selflink" id="section-3.7.3" href="#section-3.7.3">3.7.3</a> Signing Time</span>
The syntax of the message-digest attribute type of the ES is as
defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>] and further qualified by this document.
The signing-time attribute type specifies the time at which the
signer claims to have performed the signing process.
This present document recommends the use of GeneralizedTime.
<span class="h3"><a class="selflink" id="section-3.8" href="#section-3.8">3.8</a> Alternative Signing Certificate Attributes</span>
One, and only one, of the following two alternative attributes MUST
be present with the signed-data defined by this document to identify
the signing certificate. Both attributes include an identifier and a
hash of the signing certificate. The first, which is adopted in
existing standards, may be only used with the SHA-1 hashing
algorithm. The other shall be used when other hashing algorithms are
to be supported.
<span class="grey">Pinkas, et al. Informational [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The signing certificate attribute is designed to prevent the simple
substitution and re-issue attacks, and to allow for a restricted set
of authorization certificates to be used in verifying a signature.
<span class="h4"><a class="selflink" id="section-3.8.1" href="#section-3.8.1">3.8.1</a> ESS Signing Certificate Attribute Definition</span>
The syntax of the signing certificate attribute type of the ES is as
defined in [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>], and further qualified and profile in this document.
The ESS signing certificate attribute must be a signed attribute.
This document mandates the presence of this attribute as a signed CMS
attribute, and the sequence must not be empty. The certificate used
to verify the signature must be identified in the sequence, the
Signature Validation Policy may mandate other certificate references
to be present, that may include all the certificates up to the point
of trust. The encoding of the ESSCertID for this certificate must
include the issuerSerial field.
The issuerAndSerialNumber present in the SignerInfo must be
consistent with issuerSerial field. The certificate identified must
be used during the signature verification process. If the hash of
the certificate does not match the certificate used to verify the
signature, the signature must be considered invalid.
The sequence of policy information field is not used in this
document.
NOTE: Where an attribute certificate is used by the signer to
associate a role, or other attributes of the signer, with the
electronic signature this is placed in the Signer Attribute attribute
as defined in clause 3.12.3.
<span class="h4"><a class="selflink" id="section-3.8.2" href="#section-3.8.2">3.8.2</a> Other Signing Certificate Attribute Definition</span>
The following attribute is identical to the ESS SigningCertificate
defined above except that this attribute can be used with hashing
algorithms other than SHA-1.
This attribute must be used in the same manner as defined above for
the ESS SigningCertificate attribute.
The following object identifier identifies the signing certificate
attribute:
id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 19 }
<span class="grey">Pinkas, et al. Informational [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The signing certificate attribute value has the ASN.1 syntax
OtherSigningCertificate
OtherSigningCertificate ::= SEQUENCE {
certs SEQUENCE OF OtherCertID,
policies SEQUENCE OF PolicyInformation OPTIONAL
-- NOT USED IN THIS DOCUMENT
}
OtherCertID ::= SEQUENCE {
otherCertHash OtherHash,
issuerSerial IssuerSerial OPTIONAL
}
OtherHash ::= CHOICE {
sha1Hash OtherHashValue, -- This contains a SHA-1 hash
otherHash OtherHashAlgAndValue
}
OtherHashValue ::= OCTET STRING
OtherHashAlgAndValue ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
hashValue OtherHashValue
}
<span class="h3"><a class="selflink" id="section-3.9" href="#section-3.9">3.9</a> Additional Mandatory Attributes</span>
<span class="h4"><a class="selflink" id="section-3.9.1" href="#section-3.9.1">3.9.1</a> Signature policy Identifier</span>
This document mandates that a reference to the signature policy, is
included in the signedData, this reference is either explicitly
identified or implied by the semantics of the signed content and
other external data. A signature policy defines the rules for
creation and validation of an electronic signature, is included as a
signed attribute with every signature. The signature policy
identifier must be a signed attribute.
The following object identifier identifies the signature policy
identifier attribute:
id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 15 }
Signature-policy-identifier attribute values have ASN.1 type
SignaturePolicyIdentifier.
<span class="grey">Pinkas, et al. Informational [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
SignaturePolicyIdentifier ::= CHOICE{
SignaturePolicyId SignaturePolicyId,
SignaturePolicyImplied SignaturePolicyImplied }
SignaturePolicyId ::= SEQUENCE {
sigPolicyIdentifier SigPolicyId,
sigPolicyHash SigPolicyHash,
sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF
SigPolicyQualifierInfo OPTIONAL
}
SignaturePolicyImplied ::= NULL
The presence of the NULL type indicates that the signature policy is
implied by the semantics of the signed data and other external data.
The sigPolicyId field contains an object-identifier which uniquely
identifies a specific version of the signature policy. The syntax of
this field is as follows:
SigPolicyId ::= OBJECT IDENTIFIER
The sigPolicyHash field contains the identifier of the hash algorithm
and the hash of the value of the signature policy.
If the signature policy is defined using a computer processable
notation like ASN.1, then the hash is calculated on the value without
the outer type and length fields and the hashing algorithm must be as
specified in the field signPolicyHshAlg.
If the signature policy is defined using another structure, the type
of structure and the hashing algorithm must be either specified as
part of the signature policy, or indicated using a signature policy
qualifier.
SigPolicyHash ::= OtherHashAlgAndValue
A signature policy identifier may be qualified with other information
about the qualifier. The semantics and syntax of the qualifier is as
associated with the object-identifier in the sigPolicyQualifierId
field. The general syntax of this qualifier is as follows:
SigPolicyQualifierInfo ::= SEQUENCE {
sigPolicyQualifierId SigPolicyQualifierId,
sigQualifier ANY DEFINED BY sigPolicyQualifierId
}
<span class="grey">Pinkas, et al. Informational [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
This document specifies the following qualifiers:
* spuri: This contains the web URI or URL reference to the
signature policy
* spUserNotice: This contains a user notice which should be
displayed whenever the signature is validated.
-- sigpolicyQualifierIds defined in this document
SigPolicyQualifierId ::= OBJECT IDENTIFIER
id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 1 }
SPuri ::= IA5String
id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 2 }
SPUserNotice ::= SEQUENCE {
noticeRef NoticeReference OPTIONAL,
explicitText DisplayText OPTIONAL
}
NoticeReference ::= SEQUENCE {
organization DisplayText,
noticeNumbers SEQUENCE OF INTEGER
}
DisplayText ::= CHOICE {
visibleString VisibleString (SIZE (1..200)),
bmpString BMPString (SIZE (1..200)),
utf8String UTF8String (SIZE (1..200))
}
<span class="h3"><a class="selflink" id="section-3.10" href="#section-3.10">3.10</a> CMS Imported Optional Attributes</span>
The following attributes MAY be present with the signed-data defined
by this document. The attributes are defined in ref [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>] and are
imported into this specification and were appropriate qualified and
profiling by this document.
<span class="grey">Pinkas, et al. Informational [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h4"><a class="selflink" id="section-3.10.1" href="#section-3.10.1">3.10.1</a> Countersignature</span>
The syntax of the countersignature attribute type of the ES is as
defined in [<a href="#ref-CMS" title=""Cryptographic Message Syntax"">CMS</a>]. The countersignature attribute must be an unsigned
attribute.
<span class="h3"><a class="selflink" id="section-3.11" href="#section-3.11">3.11</a> ESS Imported Optional Attributes</span>
The following attributes MAY be present with the signed-data defined
by this document. The attributes are defined in ref [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>] and are
imported into this specification and were appropriate qualified and
profiling by this document.
<span class="h4"><a class="selflink" id="section-3.11.1" href="#section-3.11.1">3.11.1</a> Content Reference Attribute</span>
The content reference attribute is a link from one SignedData to
another. It may be used to link a reply to the original message to
which it refers, or to incorporate by reference one SignedData into
another.
The content reference attribute MUST be used as defined in [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>].
The content reference MUST be a signed attribute.
The syntax of the content reference attribute type of the ES is as
defined in [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>].
<span class="h4"><a class="selflink" id="section-3.11.2" href="#section-3.11.2">3.11.2</a> Content Identifier Attribute</span>
The content identifier attribute provides an identifier for the
signed content for use when reference may be later required to that
content, for example in the content reference attribute in other
signed data sent later.
The content identifier must be a signed attribute.
The syntax of the content identifier attribute type of the ES is as
defined in [<a href="#ref-ESS" title=""Enhanced Security Services for S/MIME"">ESS</a>].
The minimal signedContentIdentifier should contain a concatenation of
user-specific identification information (such as a user name or
public keying material identification information), a GeneralizedTime
string, and a random number.
<span class="h4"><a class="selflink" id="section-3.11.3" href="#section-3.11.3">3.11.3</a> Content Hints Attribute</span>
The content hints attribute provides information that describes the
format of the signed content. It may be used by the signer to
indicate to a verifier the precise format that MUST be used to
<span class="grey">Pinkas, et al. Informational [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
present the data (e.g., text, voice, video) to a verifier. This
attribute MUST be present when it is mandatory to present the signed
data to human users on verification.
The syntax of the content hints attribute type of the ES is as
defined in ESS (<a href="./rfc2634#section-2.9">RFC 2634, section 2.9</a> [9]).
When used to indicate the precise format of the data to be presented
to the user the following rules apply:
The contentType (defined in <a href="./rfc2630">RFC 2630</a> [8]) indicates the type of the
associated content. It is an object identifier (i.e., a unique
string of integers) assigned by an authority that defines the content
type.
The UTF8String shall define the presentation format. The format may
be defined by MIME types as indicated below.
Note 1: The contentType can be id-data defined in CMS (<a href="./rfc2630">RFC 2630</a> [8]).
The UTF8String can be used to indicate the encoding of the data, like
MIME type. <a href="./rfc2045">RFC 2045</a> [25] provides a common structure for encoding a
range of electronic documents and other multi-media types, see annex
B for further information, a system supporting verification of
electronic signature may present information to users in the form
identified by the MIME type.
id-data OBJECT IDENTIFIER ::= { iso(1) member-body(2) us(840)
rsadsi(113549) pkcs(1) pkcs7(7) 1 }
<span class="h3"><a class="selflink" id="section-3.12" href="#section-3.12">3.12</a> Additional Optional Attributes</span>
<span class="h4"><a class="selflink" id="section-3.12.1" href="#section-3.12.1">3.12.1</a> Commitment Type Indication Attribute</span>
There may be situation were a signer wants to explicitly indicate to
a verifier that by signing the data, it illustrates a type of
commitment on behalf of the signer. The commitmentTypeIndication
attribute conveys such information.
The commitmentTypeIndication attribute must be a signed attribute.
The commitment type may be:
* defined as part of the signature policy, in which case the
commitment type has precise semantics that is defined as part
of the signature policy.
<span class="grey">Pinkas, et al. Informational [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
* be a registered type, in which case the commitment type has
precise semantics defined by registration, under the rules of
the registration authority. Such a registration authority may
be a trading association or a legislative authority.
The signature policy specifies a set of attributes that it
"recognizes". This "recognized" set includes all those commitment
types defined as part of the signature policy as well as any
externally defined commitment types that the policy may choose to
recognize. Only recognized commitment types are allowed in this
field.
The following object identifier identifies the commitment type
indication attribute:
id-aa-ets-commitmentType OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 16}
Commitment-Type-Indication attribute values have ASN.1 type
CommitmentTypeIndication.
CommitmentTypeIndication ::= SEQUENCE {
commitmentTypeId CommitmentTypeIdentifier,
commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF
CommitmentTypeQualifier OPTIONAL
}
CommitmentTypeIdentifier ::= OBJECT IDENTIFIER
CommitmentTypeQualifier ::= SEQUENCE {
commitmentTypeIdentifier CommitmentTypeIdentifier,
qualifier ANY DEFINED BY
commitmentTypeIdentifier
}
The use of any qualifiers to the commitment type is outside the scope
of this document.
The following generic commitment types are defined in this document:
id-cti-ets-proofOfOrigin OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 1}
id-cti-ets-proofOfReceipt OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 2}
<span class="grey">Pinkas, et al. Informational [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
id-cti-ets-proofOfDelivery OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 3}
id-cti-ets-proofOfSender OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 4}
id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 5}
id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 6}
These generic commitment types have the following meaning:
Proof of origin indicates that the signer recognizes to have created,
approved and sent the message.
Proof of receipt indicates that signer recognizes to have received
the content of the message.
Proof of delivery indicates that the TSP providing that indication
has delivered a message in a local store accessible to the recipient
of the message.
Proof of sender indicates that the entity providing that indication
has sent the message (but not necessarily created it).
Proof of approval indicates that the signer has approved the content
of the message.
Proof of creation indicates that the signer has created the message
(but not necessarily approved, nor sent it).
<span class="h4"><a class="selflink" id="section-3.12.2" href="#section-3.12.2">3.12.2</a> Signer Location attribute</span>
The signer-location attribute is an attribute which specifies a
mnemonic for an address associated with the signer at a particular
geographical (e.g., city) location. The mnemonic is registered in
the country in which the signer is located and is used in the
provision of the Public Telegram Service (according to ITU-T
Recommendation F.1 [<a href="#ref-PTS">PTS</a>]).
The signer-location attribute must be a signed attribute.
<span class="grey">Pinkas, et al. Informational [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The following object identifier identifies the signer-location
attribute:
id-aa-ets-signerLocation OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 17}
Signer-location attribute values have ASN.1 type SignerLocation.
SignerLocation ::= SEQUENCE {
-- at least one of the following must be present
countryName [0] DirectoryString OPTIONAL,
-- as used to name a Country in X.500
localityName [1] DirectoryString OPTIONAL,
-- as used to name a locality in X.500
postalAdddress [2] PostalAddress OPTIONAL
}
PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString
<span class="h4"><a class="selflink" id="section-3.12.3" href="#section-3.12.3">3.12.3</a> Signer Attributes attribute</span>
The signer-attributes attribute is an attribute which specifies
additional attributes of the signer (e.g., role).
It may be either:
* claimed attributes of the signer; or
* certified attributes of the signer;
The signer-attributes attribute must be a signed attribute.
The following object identifier identifies the signer-attribute
attribute:
id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18}
signer-attribute attribute values have ASN.1 type SignerAttribute.
SignerAttribute ::= SEQUENCE OF CHOICE {
claimedAttributes [0] ClaimedAttributes,
certifiedAttributes [1] CertifiedAttributes
}
ClaimedAttributes ::= SEQUENCE OF Attribute
CertifiedAttributes ::= AttributeCertificate
-- as defined in X.509 : see <a href="#section-10.3">section 10.3</a>
<span class="grey">Pinkas, et al. Informational [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
NOTE: The claimed and certified attribute are imported from ITU-T
Recommendations X.501 [16] and ITU-T Recommendation X.509:Draft
Amendment on Certificate Extensions, October 1999.
<span class="h4"><a class="selflink" id="section-3.12.4" href="#section-3.12.4">3.12.4</a> Content Time-Stamp attribute</span>
The content time-stamp attribute is an attribute which is the time-
stamp of the signed data content before it is signed.
The content time-stamp attribute must be a signed attribute.
The following object identifier identifies the signer-attribute
attribute:
id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 20}
Content time-stamp attribute values have ASN.1 type ContentTimestamp:
ContentTimestamp::= TimeStampToken
The value of messageImprint field within TimeStampToken must be a
hash of the value of eContent field within encapContentInfo within
the signedData.
For further information and definition of TimeStampToken see [<a href="#ref-TSP" title=""Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP)"">TSP</a>].
<span class="h3"><a class="selflink" id="section-3.13" href="#section-3.13">3.13</a> Support for Multiple Signatures</span>
<span class="h4"><a class="selflink" id="section-3.13.1" href="#section-3.13.1">3.13.1</a> Independent Signatures</span>
Multiple independent signatures are supported by independent
SignerInfo from each signer.
Each SignerInfo must include all the attributes required under this
document and must be processed independently by the verifier.
<span class="h4"><a class="selflink" id="section-3.13.2" href="#section-3.13.2">3.13.2</a> Embedded Signatures</span>
Multiple embedded signatures are supported using the counter-
signature unsigned attribute (see clause 3.10.1). Each counter
signature is carried in Countersignature held as an unsigned
attribute to the SignerInfo to which the counter-signature is
applied.
<span class="grey">Pinkas, et al. Informational [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Validation Data</span>
This clause specifies the validation data structures which builds on
the electronic signature specified in clause 3. This includes:
* Time-Stamp applied to the electronic signature value.
* Complete validation data which comprises the time-stamp of the
signature value, plus references to all the certificates and
revocation information used for full validation of the
electronic signature.
The following optional eXtended forms of validation data are also
defined:
* X-timestamp: There are two types of time-stamp used in extended
validation data defined by this document.
- Type 1 -Time-Stamp which comprises a time-stamp over the ES
with Complete validation data (ES-C).
- Type 2 X-Time-Stamp which comprises of a time-stamp over the
certification path references and the revocation information
references used to support the ES-C.
* X-Long: This comprises a Complete validation data plus
the actual values of all the certificates and revocation
information used in the ES-C.
* X-Long-Time-Stamp: This comprises a Type 1 or Type 2 X-
Timestamp plus the actual values of all the certificates
and revocation information used in the ES-C.
This clause also specifies the data structures used in Archive
validation data:
* Archive validation data comprises a Complete validation data,
the certificate and revocation values (as in a X-Long
validation data), any other existing X-timestamps, plus the
Signed User data and an additional archive time-stamp over all
that data. An archive time-stamp may be repeatedly applied
after long periods to maintain validity when electronic
signature and timestamping algorithms weaken.
The additional data required to create the forms of electronic
signature identified above is carried as unsigned attributes
associated with an individual signature by being placed in the
<span class="grey">Pinkas, et al. Informational [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
unsignedAttrs field of SignerInfo. Thus all the attributes defined
in clause 4 are unsigned attributes.
NOTE: Where multiple signatures are to be supported, as described in
clause 3.13, each signature has a separate SignerInfo. Thus, each
signature requires its own unsigned attribute values to create ES-T,
ES-C etc.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a> Electronic Signature Timestamp</span>
An Electronic Signature with Timestamp is an Electronic Signature for
which part, but not all, of the additional data required for
validation is available (e.g., some certificates and revocation
information is available but not all).
The minimum structure Timestamp validation data is the Signature
Timestamp Attribute as defined in clause 4.1.1 over the ES signature
value.
<span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a> Signature Timestamp Attribute Definition</span>
The Signature Timestamp attribute is timestamp of the signature
value. It is an unsigned attribute. Several instances of this
attribute from different TSAs may occur with an electronic signature.
The Signature Validation Policy specifies, in the
signatureTimestampDelay field of TimestampTrustConditions, a maximum
acceptable time difference which is allowed between the time
indicated in the signing time attribute and the time indicated by the
Signature Timestamp attribute. If this delay is exceeded then the
electronic signature must be considered as invalid.
The following object identifier identifies the Signature Timestamp
attribute:
id-aa-signatureTimeStampToken OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 14}
The Signature timestamp attribute value has ASN.1 type
SignatureTimeStampToken.
SignatureTimeStampToken ::= TimeStampToken
The value of messageImprint field within TimeStampToken must be a
hash of the value of signature field within SignerInfo for the
signedData being timestamped.
<span class="grey">Pinkas, et al. Informational [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
For further information and definition of TimeStampToken see [<a href="#ref-TSP" title=""Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP)"">TSP</a>].
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a> Complete Validation Data</span>
An electronic signature with complete validation data is an
Electronic Signature for which all the additional data required for
validation (i.e., all certificates and revocation information) is
available. Complete validation data (ES-C) build on the electronic
signature Time-Stamp as defined above.
The minimum structure of a Complete validation data is:
* the Signature Time-Stamp Attribute, as defined in clause 4.1.1;
* Complete Certificate Refs, as defined in clause 4.2.1;
* Complete Revocation Refs, as defined in clause 4.2.2.
The Complete validation data MAY also include the following
additional information, forming a X-Long validation data, for use if
later validation processes may not have access to this information:
* Complete Certificate Values, as defined in clause 4.2.3;
* Complete Revocation Values, as defined in clause 4.2.4.
The Complete validation data MAY also include one of the following
additional attributes, forming a X-Time-Stamp validation data, to
provide additional protection against later CA compromise and provide
integrity of the validation data used:
* ES-C Time-Stamp, as defined in clause 4.2.5; or
* Time-Stamped Certificates and CRLs references, as defined in
clause 4.2.6.
NOTE 1: As long as the CA's are trusted such that these keys cannot
be compromised or the cryptography used broken, the ES-C provides
long term proof of a valid electronic signature.
A valid electronic signature is an electronic signature which passes
validation according to a signature validation policy.
NOTE 2: The ES-C provides the following important property for long
standing signatures; that is having been found once to be valid, must
continue to be so months or years later. Long after the validity
period of the certificates have expired, or after the user key has
been compromised.
<span class="grey">Pinkas, et al. Informational [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h4"><a class="selflink" id="section-4.2.1" href="#section-4.2.1">4.2.1</a> Complete Certificate Refs Attribute Definition</span>
The Complete Certificate Refs attribute is an unsigned attribute. It
references the full set of CA certificates that have been used to
validate a ES with Complete validation data (ES-C) up to (but not
including) the signer's certificate. Only a single instance of this
attribute must occur with an electronic signature.
Note: The signer's certified is referenced in the signing certificate
attribute (see clause 3.1).
id-aa-ets-certificateRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 21}
The complete certificate refs attribute value has the ASN.1 syntax
CompleteCertificateRefs.
CompleteCertificateRefs ::= SEQUENCE OF OTHERCertID
OTHERCertID is defined in clause 3.8.2.
The IssuerSerial that must be present in OTHERCertID. The certHash
must match the hash of the certificate referenced.
NOTE: Copies of the certificate values may be held using the
Certificate Values attribute defined in clause 4.3.1.
<span class="h4"><a class="selflink" id="section-4.2.2" href="#section-4.2.2">4.2.2</a> Complete Revocation Refs Attribute Definition</span>
The Complete Revocation Refs attribute is an unsigned attribute.
Only a single instance of this attribute must occur with an
electronic signature. It references the full set of the CRL or OCSP
responses that have been used in the validation of the signer and CA
certificates used in ES with Complete validation data.
The following object identifier identifies the CompleteRevocationRefs
attribute:
id-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 22}
The complete revocation refs attribute value has the ASN.1 syntax
CompleteRevocationRefs.
CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef
<span class="grey">Pinkas, et al. Informational [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
CrlOcspRef ::= SEQUENCE {
crlids [0] CRLListID OPTIONAL,
ocspids [1] OcspListID OPTIONAL,
otherRev [2] OtherRevRefs OPTIONAL
}
CompleteRevocationRefs must contain one CrlOcspRef for the signing
certificate, followed by one for each OTHERCertID in the
CompleteCertificateRefs attribute. The second and subsequent
CrlOcspRef fields must be in the same order as the OTHERCertID to
which they relate. At least one of CRLListID or OcspListID or
OtherRevRefs should be present for all but the "trusted" CA of the
certificate path.
CRLListID ::= SEQUENCE {
crls SEQUENCE OF CrlValidatedID}
CrlValidatedID ::= SEQUENCE {
crlHash OtherHash,
crlIdentifier CrlIdentifier OPTIONAL}
CrlIdentifier ::= SEQUENCE {
crlissuer Name,
crlIssuedTime UTCTime,
crlNumber INTEGER OPTIONAL
}
OcspListID ::= SEQUENCE {
ocspResponses SEQUENCE OF OcspResponsesID}
OcspResponsesID ::= SEQUENCE {
ocspIdentifier OcspIdentifier,
ocspRepHash OtherHash OPTIONAL
}
OcspIdentifier ::= SEQUENCE {
ocspResponderID ResponderID,
-- As in OCSP response data
producedAt GeneralizedTime
-- As in OCSP response data
}
When creating an crlValidatedID, the crlHash is computed over the
entire DER encoded CRL including the signature. The crlIdentifier
would normally be present unless the CRL can be inferred from other
information.
<span class="grey">Pinkas, et al. Informational [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The crlIdentifier is to identify the CRL using the issuer name and
the CRL issued time which must correspond to the time "thisUpdate"
contained in the issued CRL. The crlListID attribute is an unsigned
attribute. In the case that the identified CRL is a Delta CRL then
references to the set of CRLs to provide a complete revocation list
must be included.
The OcspIdentifier is to identify the OSCP response using the issuer
name and the time of issue of the OCSP response which must correspond
to the time "producedAt" contained in the issued OCSP response.
Since it may be needed to make the difference between two OCSP
responses received within the same second, then the hash of the
response contained in the OcspResponsesID may be needed to solve the
ambiguity.
NOTE: Copies of the CRL and OCSP responses values may be held using
the Revocation Values attribute defined in clause 4.3.2.
OtherRevRefs ::= SEQUENCE {
otherRevRefType OtherRevRefType,
otherRevRefs ANY DEFINED BY otherRevRefType
}
OtherRevRefType ::= OBJECT IDENTIFIER
The syntax and semantics of other revocation references is outside
the scope of this document. The definition of the syntax of the
other form of revocation information is as identified by
OtherRevRefType.
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a> Extended Validation Data</span>
<span class="h4"><a class="selflink" id="section-4.3.1" href="#section-4.3.1">4.3.1</a> Certificate Values Attribute Definition</span>
The Certificate Values attribute is an unsigned attribute. Only a
single instance of this attribute must occur with an electronic
signature. It holds the values of certificates referenced in the
CompleteCertificateRefs attribute.
Note: If an Attribute Certificate is used, it is not provided in this
structure but must be provided by the signer as a signer-attributes
attribute (see clause 12.3).
The following object identifier identifies the CertificateValues
attribute:
id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23}
<span class="grey">Pinkas, et al. Informational [Page 40]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The certificate values attribute value has the ASN.1 syntax
CertificateValues.
CertificateValues ::= SEQUENCE OF Certificate
Certificate is defined in <a href="./rfc2459">RFC2459</a> and ITU-T Recommendation X.509 [1])
<span class="h4"><a class="selflink" id="section-4.3.2" href="#section-4.3.2">4.3.2</a> Revocation Values Attribute Definition</span>
The Revocation Values attribute is an unsigned attribute. Only a
single instance of this attribute must occur with an electronic
signature. It holds the values of CRLs and OCSP referenced in the
CompleteRevocationRefs attribute.
The following object identifier identifies the Revocation Values
attribute:
id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 24}
The revocation values attribute value has the ASN.1 syntax
RevocationValues.
RevocationValues ::= SEQUENCE {
crlVals [0] SEQUENCE OF CertificateList OPTIONAL,
ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL,
otherRevVals [2] OtherRevVals
}
OtherRevVals ::= SEQUENCE {
otherRevValType OtherRevValType,
otherRevVals ANY DEFINED BY otherRevValType
}
OtherRevValType ::= OBJECT IDENTIFIER
The syntax and semantics of the other revocation values is outside
the scope of this document. The definition of the syntax of the
other form of revocation information is as identified by
OtherRevRefType.
CertificateList is defined in <a href="./rfc2459">RFC 2459</a> [<a href="./rfc2459" title=""Internet X.509 Public Key Infrastructure, Certificate and CRL Profile"">RFC2459</a>] and in ITU-T
Recommendation X.509 [X509]).
BasicOCSPResponse is defined in <a href="./rfc2560">RFC 2560</a> [<a href="#ref-OCSP" title=""On-line Status Certificate Protocol"">OCSP</a>].
<span class="grey">Pinkas, et al. Informational [Page 41]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-42" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h4"><a class="selflink" id="section-4.3.3" href="#section-4.3.3">4.3.3</a> ES-C Time-Stamp Attribute Definition</span>
This attribute is used for the Type 1 X-Time-Stamped validation data.
The ES-C Time-Stamp attribute is an unsigned attribute. It is time-
stamp of a hash of the electronic signature and the complete
validation data (ES-C). It is a special purpose TimeStampToken
Attribute which time-stamps the ES-C. Several instances instance of
this attribute may occur with an electronic signature from different
TSAs.
The following object identifier identifies the ES-C Time-Stamp
attribute:
id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 25}
The ES-C time-stamp attribute value has the ASN.1 syntax
ESCTimeStampToken.
ESCTimeStampToken ::= TimeStampToken
The value of messageImprint field within TimeStampToken must be a
hash of the concatenated values (without the type or length encoding
for that value) of the following data objects as present in the ES
with Complete validation data (ES-C):
* signature field within SignerInfo;
* SignatureTimeStampToken attribute;
* CompleteCertificateRefs attribute;
* CompleteRevocationRefs attribute.
For further information and definition of the Time Stamp Token see
[<a href="#ref-TSP" title=""Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP)"">TSP</a>].
<span class="h4"><a class="selflink" id="section-4.3.4" href="#section-4.3.4">4.3.4</a> Time-Stamped Certificates and CRLs Attribute Definition</span>
This attribute is used for the Type 2 X-Time-Stamp validation data.
A TimestampedCertsCRLsRef attribute is an unsigned attribute. It is
a list of referenced certificates and OCSP responses/CRLs which are
been time-stamped to protect against certain CA compromises. Its
syntax is as follows:
The following object identifier identifies the
TimestampedCertsCRLsRef attribute:
<span class="grey">Pinkas, et al. Informational [Page 42]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-43" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
id-aa-ets-certCRLTimestamp OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 26}
The attribute value has the ASN.1 syntax TimestampedCertsCRLs.
TimestampedCertsCRLs ::= TimeStampToken
The value of messageImprint field within TimeStampToken must be a
hash of the concatenated values (without the type or length encoding
for that value) of the following data objects as present in the ES
with Complete validation data (ES-C):
* CompleteCertificateRefs attribute;
* CompleteRevocationRefs attribute.
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a> Archive Validation Data</span>
Where an electronic signature is required to last for a very long
time, and a the time-stamp on an electronic signature is in danger of
being invalidated due to algorithm weakness or limits in the validity
period of the TSA certificate, then it may be required to time-stamp
the electronic signature several times. When this is required an
archive time-stamp attribute may be required. This time-stamp may be
repeatedly applied over a period of time.
<span class="h4"><a class="selflink" id="section-4.4.1" href="#section-4.4.1">4.4.1</a> Archive Time-Stamp Attribute Definition</span>
The Archive Time-Stamp attribute is time-stamp of the user data and
the entire electronic signature. If the Certificate values and
Revocation Values attributes are not present these attributes must be
added to the electronic signature prior to the time-stamp. The
Archive Time-Stamp attribute is an unsigned attribute. Several
instances of this attribute may occur with on electronic signature
both over time and from different TSAs.
The following object identifier identifies the Nested Archive Time-
Stamp attribute:
id-aa-ets-archiveTimestamp OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 27}
Archive time-stamp attribute values have the ASN.1 syntax
ArchiveTimeStampToken
ArchiveTimeStampToken ::= TimeStampToken
<span class="grey">Pinkas, et al. Informational [Page 43]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-44" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The value of messageImprint field within Time-StampToken must be a
hash of the concatenated values (without the type or length encoding
for that value) of the following data objects as present in the
electronic signature:
* encapContentInfo eContent OCTET STRING;
* signedAttributes;
* signature field within SignerInfo;
* SignatureTimeStampToken attribute;
* CompleteCertificateRefs attribute;
* CompleteRevocationData attribute;
* CertificateValues attribute
(If not already present this information must be included in
the ES-A);
* RevocationValues attribute
(If not already present this information must be included in
the ES-A);
* ESCTimeStampToken attribute if present;
* TimestampedCertsCRLs attribute if present;
* any previous ArchiveTimeStampToken attributes.
For further information and definition of TimeStampToken see [<a href="#ref-TSP" title=""Internet X.509 Public Key Infrastructure Time-Stamp Protocol (TSP)"">TSP</a>]
The time-stamp should be created using stronger algorithms (or longer
key lengths) than in the original electronic signatures.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Security Considerations</span>
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a> Protection of Private Key</span>
The security of the electronic signature mechanism defined in this
document depends on the privacy of the signer's private key.
Implementations must take steps to ensure that private keys cannot be
compromised.
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a> Choice of Algorithms</span>
Implementers should be aware that cryptographic algorithms become
weaker with time. As new cryptoanalysis techniques are developed and
computing performance improves, the work factor to break a particular
cryptographic algorithm will reduce. Therefore, cryptographic
algorithm implementations should be modular allowing new algorithms
to be readily inserted. That is, implementers should be prepared for
the set of mandatory to implement algorithms to change over time.
<span class="grey">Pinkas, et al. Informational [Page 44]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-45" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Conformance Requirements</span>
This document only defines conformance requirements up to a ES with
Complete validation data (ES-C). This means that none of the
extended and archive forms of Electronic Signature (ES-X, ES-A) need
to be implemented to get conformance to this standard.
This document mandates support for elements of the signature policy.
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a> Signer</span>
A system supporting signers according to this document must, at a
minimum, support generation of an electronic signature consisting of
the following components:
* The general CMS syntax and content type as defined in <a href="./rfc2630">RFC 2630</a>
(see clauses 4.1 and 4.2).
* CMS SignedData as defined in <a href="./rfc2630">RFC 2630</a> with version set to 3 and
at least one SignerInfo must be present (see clauses 4.3, 4.4,
4.5, 4.6).
* The following CMS Attributes as defined in <a href="./rfc2630">RFC 2630</a>:
- ContentType; This must always be present
(see clause 3.7.1);
- MessageDigest; This must always be present
(see clause 3.7.2);
- SigningTime; This must always be present
(see clause 3.7.3).
* The following ESS Attributes as defined in <a href="./rfc2634">RFC 2634</a>:
- SigningCertificate: This must be set as defined in clauses
3.8.1 and 3.8.2.
* The following Attributes as defined in clause 3.9:
- SignaturePolicyIdentifier; This must always be present.
* Public Key Certificates as defined in ITU-T Recommendation
X.509 [1] and profiled in <a href="./rfc2459">RFC 2459</a> [7] (see clause 9.1).
<span class="grey">Pinkas, et al. Informational [Page 45]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-46" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a> Verifier using time-stamping</span>
A system supporting verifiers according to this document with time-
stamping facilities must, at a minimum, support:
* Verification of the mandated components of an electronic
signature, as defined in clause 5.1.
* Signature Time-Stamp attribute, as defined in clause 4.1.1.
* Complete Certificate Refs attribute, as defined in clause
4.2.1.
* Complete Revocation Refs Attribute, as defined in clause
4.2.2.
* Public Key Certificates, as defined in ITU-T Recommendation
X.509 and profiled in <a href="./rfc2459">RFC 2459</a>.
* Either of:
- Certificate Revocation Lists, as defined in ITU-T
Recommendation X.509 [1] and profiled in <a href="./rfc2459">RFC 2459</a> [7]; or
- On-line Certificate Status Protocol responses, as defined in
<a href="./rfc2560">RFC 2560</a>.
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a> Verifier using secure records</span>
A system supporting verifiers according to the present document
shall, at a minimum, support:
* Verification of the mandated components of an electronic
signature, as defined in subclause 5.1.
* Complete Certificate Refs attribute, as defined in subclause
4.2.1.
* Complete Revocation Refs Attribute, as defined in subclause
9.2.2.
* A record shall be maintained, which cannot be undetectably
modified, of the electronic signature and the time when the
signature was first validated using the referenced certificates
and revocation information.
* Public Key Certificates, as defined in ITU-T Recommendation
X.509 [1] and profiled in <a href="./rfc2459">RFC 2459</a> [7] (see subclause 10.1).
<span class="grey">Pinkas, et al. Informational [Page 46]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-47" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
* Either of:
- Certificate Revocation Lists, as defined in ITU-T
Recommendation X.509 [1] and profiled in <a href="./rfc2459">RFC 2459</a> [7] Or
- On-line Certificate Status Protocol, as defined in <a href="./rfc2560">RFC 2560</a>
[8] (see subclause 10.3).
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. References</span>
[<a id="ref-RFC2119">RFC2119</a>] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", <a href="https://www.rfc-editor.org/bcp/bcp14">BCP 14</a>, <a href="./rfc2119">RFC 2119</a>, March 1997.
[<a id="ref-ESS">ESS</a>] Hoffman, P., "Enhanced Security Services for S/MIME", <a href="./rfc2634">RFC</a>
<a href="./rfc2634">2634</a>, June 1999.
[<a id="ref-CMS">CMS</a>] Housley, R., "Cryptographic Message Syntax", <a href="./rfc2630">RFC 2630</a>,
June 1999.
[<a id="ref-OCSP">OCSP</a>] Myers, M., Ankney, R., Malpani, A., Galperin, S. and C.
Adams, "On-line Status Certificate Protocol", <a href="./rfc2560">RFC 2560</a>,
June 1999.
[<a id="ref-TSP">TSP</a>] Adams, C., Cain, P., Pinkas, D. and R. Zuccherato,
"Internet X.509 Public Key Infrastructure Time-Stamp
Protocol (TSP)", <a href="./rfc3161">RFC 3161</a>, August 2001.
[<a id="ref-PTS">PTS</a>] Public Telegram Service. ITU-T Recommendation F1.
[<a id="ref-RFC2459">RFC2459</a>] Housley, R., Ford, W., Polk, W. and D. Solo, "Internet
X.509 Public Key Infrastructure, Certificate and CRL
Profile", <a href="./rfc2459">RFC 2459</a>, January 1999.
[<a id="ref-PKCS9">PKCS9</a>] RSA Laboratories, "The Public-Key Cryptography Standards
(PKCS)", RSA Data Security Inc., Redwood City, California,
November 1993 Release.
[<a id="ref-ISONR">ISONR</a>] ISO/IEC 10181-5: Security Frameworks in Open Systems.
Non-Repudiation Framework. April 1997.
[<a id="ref-TS101733">TS101733</a>] ETSI Standard TS 101 733 V.1.2.2 (2000-12) Electronic
Signature Formats. Note: copies of ETSI TS 101 733 can be
freely downloaded from the ETSI web site www.etsi.org.
<span class="grey">Pinkas, et al. Informational [Page 47]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-48" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Authors' Addresses</span>
This Informational RFC has been produced in ETSI TC-SEC.
ETSI
F-06921 Sophia Antipolis, Cedex - FRANCE
650 Route des Lucioles - Sophia Antipolis
Valbonne - France
Tel: +33 4 92 94 42 00 Fax: +33 4 93 65 47 16
secretariat@etsi.fr
<a href="http://www.etsi.org">http://www.etsi.org</a>
Contact Point
Harri Rasilainen
ETSI
650 Route des Lucioles
F-06921 Sophia Antipolis, Cedex
FRANCE
EMail: harri.rasilainen@etsi.fr
Denis Pinkas
Integris
68, Route de Versailles
78434 Louveciennes CEDEX
FRANCE
EMail: Denis.Pinkas@bull.net
John Ross
Security & Standards
192 Moulsham Street
Chelmsford, Essex
CM2 0LG
United Kingdom
EMail: ross@secstan.com
Nick Pope
Security & Standards
192 Moulsham Street
Chelmsford, Essex
CM2 0LG
United Kingdom
EMail: pope@secstan.com
<span class="grey">Pinkas, et al. Informational [Page 48]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-49" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
Annex A (normative): ASN.1 Definitions
This annex provides a summary of all the ASN.1 syntax definitions for
new syntax defined in this document.
<span class="h3"><a class="selflink" id="appendix-A.1" href="#appendix-A.1">A.1</a> Definitions Using X.208 (1988) ASN.1 Syntax</span>
NOTE: The ASN.1 module defined in clause A.1 has precedence over
that defined in Annex A-2 in the case of any conflict.
ETS-ElectronicSignatureFormats-88syntax { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-mod(0) 5}
DEFINITIONS EXPLICIT TAGS ::=
BEGIN
-- EXPORTS All -
IMPORTS
-- Crypographic Message Syntax (CMS): <a href="./rfc2630">RFC 2630</a>
ContentInfo, ContentType, id-data, id-signedData, SignedData,
EncapsulatedContentInfo, SignerInfo, id-contentType,
id-messageDigest, MessageDigest, id-signingTime, SigningTime,
id-countersignature, Countersignature
FROM CryptographicMessageSyntax
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) modules(0) cms(1) }
-- ESS Defined attributes: <a href="./rfc2634">RFC 2634</a>
-- (Enhanced Security Services for S/MIME)
id-aa-signingCertificate, SigningCertificate, IssuerSerial,
id-aa-contentReference, ContentReference,
id-aa-contentIdentifier, ContentIdentifier
FROM ExtendedSecurityServices
{ iso(1) member-body(2) us(840) rsadsi(113549)
pkcs(1) pkcs-9(9) smime(16) modules(0) ess(2) }
-- Internet X.509 Public Key Infrastructure
-- Certificate and CRL Profile: <a href="./rfc2459">RFC 2459</a>
Certificate, AlgorithmIdentifier, CertificateList, Name,
GeneralNames, GeneralName, DirectoryString,Attribute,
<span class="grey">Pinkas, et al. Informational [Page 49]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-50" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
AttributeTypeAndValue, AttributeType, AttributeValue,
PolicyInformation, BMPString, UTF8String
FROM PKIX1Explicit88
{iso(1) identified-organization(3) dod(6) internet(1)
security(5) mechanisms(5) pkix(7) id-mod(0) id-pkix1-explicit-
88(1)}
-- X.509 '97 Authentication Framework
AttributeCertificate
FROM AuthenticationFramework
{joint-iso-ccitt ds(5) module(1) authenticationFramework(7) 3}
-- The imported AttributeCertificate is defined using the X.680 1997
-- ASN.1 Syntax,
-- an equivalent using the 88 ASN.1 syntax may be used.
-- OCSP 2560
BasicOCSPResponse, ResponderID
FROM OCSP {-- OID not assigned -- }
-- Time Stamp Protocol Work in Progress
TimeStampToken
FROM PKIXTSP
{iso(1) identified-organization(3) dod(6) internet(1)
security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-tsp(13)}
-- S/MIME Object Identifier arcs used in this document
-- ===================================================
-- S/MIME OID arc used in this document
-- id-smime OBJECT IDENTIFIER ::= { iso(1) member-body(2)
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) 16 }
-- S/MIME Arcs
-- id-mod OBJECT IDENTIFIER ::= { id-smime 0 }
-- modules
-- id-ct OBJECT IDENTIFIER ::= { id-smime 1 }
-- content types
-- id-aa OBJECT IDENTIFIER ::= { id-smime 2 }
-- attributes
<span class="grey">Pinkas, et al. Informational [Page 50]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-51" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
-- id-spq OBJECT IDENTIFIER ::= { id-smime 5 }
-- signature policy qualifier
-- id-cti OBJECT IDENTIFIER ::= { id-smime 6 }
-- commitment type identifier
-- Definitions of Object Identifier arcs used in this document
-- ===========================================================
-- The allocation of OIDs to specific objects are given below with the
-- associated ASN.1 syntax definition
-- OID used referencing electronic signature mechanisms based on this
-- standard for use with the IDUP API (see annex D)
id-etsi-es-IDUP-Mechanism-v1 OBJECT IDENTIFIER ::=
{ itu-t(0) identified-organization(4) etsi(0)
electronic-signature-standard (1733) part1 (1)
idupMechanism (4)etsiESv1(1) }
-- CMS Attributes Defined in this document
-- =======================================
-- Mandatory Electronic Signature Attributes
-- OtherSigningCertificate
id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 19 }
OtherSigningCertificate ::= SEQUENCE {
certs SEQUENCE OF OtherCertID,
policies SEQUENCE OF PolicyInformation OPTIONAL
-- NOT USED IN THIS DOCUMENT
}
OtherCertID ::= SEQUENCE {
otherCertHash OtherHash,
issuerSerial IssuerSerial OPTIONAL
}
OtherHash ::= CHOICE {
sha1Hash OtherHashValue, -- This contains a SHA-1 hash
otherHash OtherHashAlgAndValue
}
OtherHashValue ::= OCTET STRING
<span class="grey">Pinkas, et al. Informational [Page 51]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-52" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
OtherHashAlgAndValue ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
hashValue OtherHashValue
}
-- Signature Policy Identifier
id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 15 }
"SignaturePolicy CHOICE {
SignaturePolicyId SignaturePolicyId,
SignaturePolicyImplied SignaturePolicyImplied
}
SignaturePolicyId ::= SEQUENCE {
sigPolicyIdentifier SigPolicyId,
sigPolicyHash SigPolicyHash,
sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF
SigPolicyQualifierInfo OPTIONAL
}
SignaturePolicyImplied ::= NULL
SigPolicyId ::= OBJECT IDENTIFIER
SigPolicyHash ::= OtherHashAlgAndValue
SigPolicyQualifierInfo ::= SEQUENCE {
sigPolicyQualifierId SigPolicyQualifierId,
sigQualifier ANY DEFINED BY sigPolicyQualifierId
}
SigPolicyQualifierId ::=
OBJECT IDENTIFIER
id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 1 }
SPuri ::= IA5String
id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 2 }
SPUserNotice ::= SEQUENCE {
<span class="grey">Pinkas, et al. Informational [Page 52]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-53" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
noticeRef NoticeReference OPTIONAL,
explicitText DisplayText OPTIONAL
}
NoticeReference ::= SEQUENCE {
organization DisplayText,
noticeNumbers SEQUENCE OF INTEGER
}
DisplayText ::= CHOICE {
visibleString VisibleString (SIZE (1..200)),
bmpString BMPString (SIZE (1..200)),
utf8String UTF8String (SIZE (1..200))
}
-- Optional Electronic Signature Attributes
-- Commitment Type
id-aa-ets-commitmentType OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 16}
CommitmentTypeIndication ::= SEQUENCE {
commitmentTypeId CommitmentTypeIdentifier,
commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF
CommitmentTypeQualifier OPTIONAL
}
CommitmentTypeIdentifier ::= OBJECT IDENTIFIER
CommitmentTypeQualifier ::= SEQUENCE {
commitmentTypeIdentifier CommitmentTypeIdentifier,
qualifier ANY DEFINED BY commitmentTypeIdentifier
}
id-cti-ets-proofOfOrigin OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 1}
id-cti-ets-proofOfReceipt OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 2}
id-cti-ets-proofOfDelivery OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 3}
id-cti-ets-proofOfSender OBJECT IDENTIFIER ::= { iso(1) member-
<span class="grey">Pinkas, et al. Informational [Page 53]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-54" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 4}
id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 5}
id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
cti(6) 6}
-- Signer Location
id-aa-ets-signerLocation OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 17}
SignerLocation ::= SEQUENCE {
-- at least one of the following must be present
countryName [0] DirectoryString OPTIONAL,
-- as used to name a Country in X.500
localityName [1] DirectoryString OPTIONAL,
-- as used to name a locality in X.500
postalAdddress [2] PostalAddress OPTIONAL
}
PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString
-- Signer Attributes
id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18}
SignerAttribute ::= SEQUENCE OF CHOICE {
claimedAttributes [0] ClaimedAttributes,
certifiedAttributes [1] CertifiedAttributes
}
ClaimedAttributes ::= SEQUENCE OF Attribute
CertifiedAttributes ::= AttributeCertificate -- as defined in X.509 :
see <a href="#section-10.3">section 10.3</a>
-- Content Time-Stamp
id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 20}
<span class="grey">Pinkas, et al. Informational [Page 54]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-55" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
ContentTimestamp::= TimeStampToken
-- Validation Data
-- Signature Time-Stamp
id-aa-signatureTimeStampToken OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 14}
SignatureTimeStampToken ::= TimeStampToken
-- Complete Certificate Refs.
id-aa-ets-certificateRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 21}
CompleteCertificateRefs ::= SEQUENCE OF OTHERCertID
-- Complete Revocation Refs
id-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 22}
CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef
CrlOcspRef ::= SEQUENCE {
crlids [0] CRLListID OPTIONAL,
ocspids [1] OcspListID OPTIONAL,
otherRev [2] OtherRevRefs OPTIONAL
}
CRLListID ::= SEQUENCE {
crls SEQUENCE OF CrlValidatedID}
CrlValidatedID ::= SEQUENCE {
crlHash OtherHash,
crlIdentifier CrlIdentifier OPTIONAL
}
CrlIdentifier ::= SEQUENCE {
crlissuer Name,
crlIssuedTime UTCTime,
crlNumber INTEGER OPTIONAL
}
OcspListID ::= SEQUENCE {
<span class="grey">Pinkas, et al. Informational [Page 55]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-56" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
ocspResponses SEQUENCE OF OcspResponsesID}
OcspResponsesID ::= SEQUENCE {
ocspIdentifier OcspIdentifier,
ocspRepHash OtherHash OPTIONAL
}
OcspIdentifier ::= SEQUENCE {
ocspResponderID ResponderID,
-- as in OCSP response data
producedAt GeneralizedTime
-- as in OCSP response data
}
OtherRevRefs ::= SEQUENCE {
otherRevRefType OtherRevRefType,
otherRevRefs ANY DEFINED BY otherRevRefType
}
OtherRevRefType ::= OBJECT IDENTIFIER
-- Certificate Values
id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23}
CertificateValues ::= SEQUENCE OF Certificate
-- Certificate Revocation Values
id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 24}
RevocationValues ::= SEQUENCE {
crlVals [0] SEQUENCE OF CertificateList OPTIONAL,
ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL,
otherRevVals [2] OtherRevVals
}
OtherRevVals ::= SEQUENCE {
otherRevValType OtherRevValType,
otherRevVals ANY DEFINED BY otherRevValType
}
OtherRevValType ::= OBJECT IDENTIFIER
-- ES-C Time-Stamp
<span class="grey">Pinkas, et al. Informational [Page 56]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-57" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 25}
ESCTimeStampToken ::= TimeStampToken
-- Time-Stamped Certificates and CRLs
id-aa-ets-certCRLTimestamp OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 26}
TimestampedCertsCRLs ::= TimeStampToken
-- Archive Time-Stamp
id-aa-ets-archiveTimestamp OBJECT IDENTIFIER ::= { iso(1) member-
body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16)
id-aa(2) 27}
ArchiveTimeStampToken ::= TimeStampToken
END -- ETS-ElectronicSignatureFormats-88syntax --
<span class="h3"><a class="selflink" id="appendix-A.2" href="#appendix-A.2">A.2</a> Definitions Using X.680 1997 ASN.1 Syntax</span>
NOTE: The ASN.1 module defined in clause A.1 has precedence over that
defined in clause A.2 in the case of any conflict.
ETS-ElectronicSignatureFormats-97Syntax { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-mod(0) 6}
DEFINITIONS EXPLICIT TAGS ::=
BEGIN
-- EXPORTS All -
IMPORTS
-- Cryptographic Message Syntax (CMS): <a href="./rfc2630">RFC 2630</a>
ContentInfo, ContentType, id-data, id-signedData, SignedData,
EncapsulatedContentInfo, SignerInfo, id-contentType,
id-messageDigest, MessageDigest, id-signingTime,
SigningTime, id-countersignature, Countersignature
FROM CryptographicMessageSyntax
{ iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
<span class="grey">Pinkas, et al. Informational [Page 57]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-58" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
smime(16) modules(0) cms(1) }
-- ESS Defined attributes: <a href="./rfc2634">RFC 2634</a> (Enhanced Security Services
-- for S/MIME)
id-aa-signingCertificate, SigningCertificate, IssuerSerial,
id-aa-contentReference, ContentReference,
id-aa-contentIdentifier, ContentIdentifier
FROM ExtendedSecurityServices
{ iso(1) member-body(2) us(840) rsadsi(113549)
pkcs(1) pkcs-9(9) smime(16) modules(0) ess(2) }
-- Internet X.509 Public Key Infrastructure
- - Certificate and CRL Profile:<a href="./rfc2459">RFC 2459</a>
Certificate, AlgorithmIdentifier, CertificateList, Name,
GeneralNames, GeneralName, DirectoryString, Attribute,
AttributeTypeAndValue, AttributeType, AttributeValue,
PolicyInformation.
FROM PKIX1Explicit93
{iso(1) identified-organization(3) dod(6) internet(1)
security(5) mechanisms(5) pkix(7) id-mod(0)
id-pkix1-explicit-88(1)}
-- X.509 '97 Authentication Framework
AttributeCertificate
FROM AuthenticationFramework
{joint-iso-ccitt ds(5) module(1) authenticationFramework(7) 3}
-- OCSP 2560
BasicOCSPResponse, ResponderID
FROM OCSP
-- { OID not assigned }
-- Time Stamp Protocol Work in Progress TimeStampToken
FROM PKIXTSP
{iso(1) identified-organization(3) dod(6) internet(1)
security(5) mechanisms(5) pkix(7) id-mod(0) id-mod-tsp(13)}
<span class="grey">Pinkas, et al. Informational [Page 58]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-59" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
-- S/MIME Object Identifier arcs used in this document
-- ===================================================
-- S/MIME OID arc used in this document
-- id-smime OBJECT IDENTIFIER ::= { iso(1) member-body(2)
-- us(840) rsadsi(113549) pkcs(1) pkcs-9(9) 16 }
-- S/MIME Arcs
-- id-mod OBJECT IDENTIFIER ::= { id-smime 0 }
-- modules
-- id-ct OBJECT IDENTIFIER ::= { id-smime 1 }
-- content types
-- id-aa OBJECT IDENTIFIER ::= { id-smime 2 }
-- attributes
-- id-spq OBJECT IDENTIFIER ::= { id-smime 5 }
-- signature policy qualifier
-- id-cti OBJECT IDENTIFIER ::= { id-smime 6 }
-- commitment type identifier
-- Definitions of Object Identifier arcs used in this document
-- ===========================================================
-- The allocation of OIDs to specific objects are given below with the
-- associated ASN.1 syntax definition
-- OID used referencing electronic signature mechanisms based on this
-- standard for use with the IDUP API (see annex D)
id-etsi-es-IDUP-Mechanism-v1 OBJECT IDENTIFIER ::=
{ itu-t(0) identified-organization(4) etsi(0)
electronic-signature-standard (1733) part1 (1)
idupMechanism (4)etsiESv1(1) }
-- CMS Attributes Defined in this document
-- =======================================
-- Mandatory Electronic Signature Attributes
-- OtherSigningCertificate
id-aa-ets-otherSigCert OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 19 }
OtherSigningCertificate ::= SEQUENCE {
certs SEQUENCE OF OtherCertID,
policies SEQUENCE OF PolicyInformation OPTIONAL
-- NOT USED IN THIS DOCUMENT
}
<span class="grey">Pinkas, et al. Informational [Page 59]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-60" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
OtherCertID ::= SEQUENCE {
otherCertHash OtherHash,
issuerSerial IssuerSerial OPTIONAL
}
OtherHash ::= CHOICE {
sha1Hash OtherHashValue, -- This contains a SHA-1 hash
otherHash OtherHashAlgAndValue
}
OtherHashValue ::= OCTET STRING
OtherHashAlgAndValue ::= SEQUENCE {
hashAlgorithm AlgorithmIdentifier,
hashValue OtherHashValue
}
-- Signature Policy Identifier
id-aa-ets-sigPolicyId OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-aa(2) 15 }
"SignaturePolicy CHOICE {
SignaturePolicyId SignaturePolicyId,
SignaturePolicyImplied SignaturePolicyImplied
}
SignaturePolicyId ::= SEQUENCE {
sigPolicyIdentifier SigPolicyId,
sigPolicyHash SigPolicyHash,
sigPolicyQualifiers SEQUENCE SIZE (1..MAX) OF
SigPolicyQualifierInfo OPTIONAL
}
SignaturePolicyImplied ::= NULL
SigPolicyId ::= OBJECT IDENTIFIER
SigPolicyHash ::= OtherHashAlgAndValue
SigPolicyQualifierInfo ::= SEQUENCE {
sigPolicyQualifierId SIG-POLICY-QUALIFIER.&id
({SupportedSigPolicyQualifiers}),
qualifier SIG-POLICY-QUALIFIER.&Qualifier
({SupportedSigPolicyQualifiers}
{@sigPolicyQualifierId})OPTIONAL }
<span class="grey">Pinkas, et al. Informational [Page 60]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-61" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
SupportedSigPolicyQualifiers SIG-POLICY-QUALIFIER ::=
{ noticeToUser | pointerToSigPolSpec }
SIG-POLICY-QUALIFIER ::= CLASS {
&id OBJECT IDENTIFIER UNIQUE,
&Qualifier OPTIONAL }
WITH SYNTAX {
SIG-POLICY-QUALIFIER-ID &id
[SIG-QUALIFIER-TYPE &Qualifier] }
noticeToUser SIG-POLICY-QUALIFIER ::= {
SIG-POLICY-QUALIFIER-ID id-sqt-unotice SIG-QUALIFIER-TYPE
SPUserNotice
}
pointerToSigPolSpec SIG-POLICY-QUALIFIER ::= {
SIG-POLICY-QUALIFIER-ID id-sqt-uri SIG-QUALIFIER-TYPE SPuri }
id-spq-ets-uri OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 1 }
SPuri ::= IA5String
id-spq-ets-unotice OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
smime(16) id-spq(5) 2 }
SPUserNotice ::= SEQUENCE {
noticeRef NoticeReference OPTIONAL,
explicitText DisplayText OPTIONAL
}
NoticeReference ::= SEQUENCE {
organization DisplayText,
noticeNumbers SEQUENCE OF INTEGER
}
DisplayText ::= CHOICE {
visibleString VisibleString (SIZE (1..200)),
bmpString BMPString (SIZE (1..200)),
utf8String UTF8String (SIZE (1..200))
}
-- Optional Electronic Signature Attributes
-- Commitment Type
<span class="grey">Pinkas, et al. Informational [Page 61]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-62" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
id-aa-ets-commitmentType OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 16}
CommitmentTypeIndication ::= SEQUENCE {
commitmentTypeId CommitmentTypeIdentifier,
commitmentTypeQualifier SEQUENCE SIZE (1..MAX) OF
CommitmentTypeQualifier
OPTIONAL}
CommitmentTypeIdentifier ::= OBJECT IDENTIFIER
CommitmentTypeQualifier ::= SEQUENCE {
commitmentQualifierId COMMITMENT-QUALIFIER.&id,
qualifier COMMITMENT-QUALIFIER.&Qualifier
OPTIONAL }
COMMITMENT-QUALIFIER ::= CLASS {
&id OBJECT IDENTIFIER UNIQUE,
&Qualifier OPTIONAL }
WITH SYNTAX {
COMMITMENT-QUALIFIER-ID &id
[COMMITMENT-TYPE &Qualifier] }
id-cti-ets-proofOfOrigin OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 1}
id-cti-ets-proofOfReceipt OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 2}
id-cti-ets-proofOfDelivery OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 3}
id-cti-ets-proofOfSender OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 4}
id-cti-ets-proofOfApproval OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 5}
id-cti-ets-proofOfCreation OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) cti(6) 6}
-- Signer Location
<span class="grey">Pinkas, et al. Informational [Page 62]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-63" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
id-aa-ets-signerLocation OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 17}
SignerLocation ::= SEQUENCE {
-- at least one of the following must be present
countryName [0] DirectoryString OPTIONAL,
-- As used to name a Country in X.500
localityName [1] DirectoryString OPTIONAL,
-- As used to name a locality in X.500
postalAdddress [2] PostalAddress OPTIONAL }
PostalAddress ::= SEQUENCE SIZE(1..6) OF DirectoryString
-- Signer Attributes
id-aa-ets-signerAttr OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 18}
SignerAttribute ::= SEQUENCE OF CHOICE {
claimedAttributes [0] ClaimedAttributes,
certifiedAttributes [1] CertifiedAttributes }
ClaimedAttributes ::= SEQUENCE OF Attribute
CertifiedAttributes ::= AttributeCertificate
-- As defined in X.509 : see <a href="#section-10.3">section 10.3</a>
-- Content Time-Stamp
id-aa-ets-contentTimestamp OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 20}
ContentTimestamp::= TimeStampToken
-- Validation Data
-- Signature Time-Stamp
id-aa-signatureTimeStampToken OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 14}
SignatureTimeStampToken ::= TimeStampToken
-- Complete Certificate Refs.
id-aa-ets-certificateRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2)
<span class="grey">Pinkas, et al. Informational [Page 63]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-64" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 21}
CompleteCertificateRefs ::= SEQUENCE OF OTHERCertID
-- Complete Revocation Refs
id-aa-ets-revocationRefs OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 22}
CompleteRevocationRefs ::= SEQUENCE OF CrlOcspRef
CrlOcspRef ::= SEQUENCE {
crlids [0] CRLListID OPTIONAL,
ocspids [1] OcspListID OPTIONAL,
otherRev [2] OtherRevRefs OPTIONAL
}
CRLListID ::= SEQUENCE {
crls SEQUENCE OF CrlValidatedID}
CrlValidatedID ::= SEQUENCE {
crlHash OtherHash,
crlIdentifier CrlIdentifier OPTIONAL}
CrlIdentifier ::= SEQUENCE {
crlissuer Name,
crlIssuedTime UTCTime,
crlNumber INTEGER OPTIONAL
}
OcspListID ::= SEQUENCE {
ocspResponses SEQUENCE OF OcspResponsesID}
OcspResponsesID ::= SEQUENCE {
ocspIdentifier OcspIdentifier,
ocspRepHash OtherHash OPTIONAL
}
OcspIdentifier ::= SEQUENCE {
ocspResponderID ResponderID,
-- As in OCSP response data
producedAt GeneralizedTime
-- As in OCSP response data
}
OtherRevRefs ::= SEQUENCE {
otherRevRefType OTHER-REVOCATION-REF.&id,
otherRevRefs OTHER-REVOCATION-REF.&Type
<span class="grey">Pinkas, et al. Informational [Page 64]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-65" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
}
OTHER-REVOCATION-REF ::= CLASS {
&Type,
&id OBJECT IDENTIFIER UNIQUE }
WITH SYNTAX {
&Type ID &id }
-- Certificate Values
id-aa-ets-certValues OBJECT IDENTIFIER ::= { iso(1) member-body(2)
us(840) rsadsi(113549) pkcs(1) pkcs-9(9) smime(16) id-aa(2) 23}
CertificateValues ::= SEQUENCE OF Certificate
-- Certificate Revocation Values
id-aa-ets-revocationValues OBJECT IDENTIFIER ::= { iso(1)
member-body(2)us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 24}
RevocationValues ::= SEQUENCE {
crlVals [0] SEQUENCE OF CertificateList OPTIONAL,
ocspVals [1] SEQUENCE OF BasicOCSPResponse OPTIONAL,
otherRevVals [2] OtherRevVals }
OtherRevVals ::= SEQUENCE {
otherRevValType OTHER-REVOCATION-VAL.&id,
otherRevVals OTHER-REVOCATION-VAL.&Type
}
OTHER-REVOCATION-VAL ::= CLASS {
&Type,
&id OBJECT IDENTIFIER UNIQUE }
WITH SYNTAX {
&Type ID &id }
-- ES-C Time-Stamp
id-aa-ets-escTimeStamp OBJECT IDENTIFIER ::= { iso(1)
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 25}
ESCTimeStampToken ::= TimeStampToken
-- Time-Stamped Certificates and CRLs
id-aa-ets-certCRLTimestamp OBJECT IDENTIFIER ::= { iso(1)
<span class="grey">Pinkas, et al. Informational [Page 65]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-66" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 26}
TimestampedCertsCRLs ::= TimeStampToken
-- Archive Time-Stamp
id-aa-ets-archiveTimestamp OBJECT IDENTIFIER ::= { iso(1)
member-body(2)us(840) rsadsi(113549) pkcs(1) pkcs-9(9)
smime(16) id-aa(2) 27}
ArchiveTimeStampToken ::= TimeStampToken
END -- ETS-ElectronicSignatureFormats-97Syntax
Annex B (informative): General Description
This annex captures the concepts that apply to this document and the
rational for the elements of the specification defined using ASN.1 in
the main text of this document.
The specification below includes a description why the component is
needed, with a brief description of the vulnerabilities and threats
and the manner by which they are countered.
<span class="h3"><a class="selflink" id="appendix-B.1" href="#appendix-B.1">B.1</a> The Signature Policy</span>
The signature policy is a set of rules for the creation and
validation of an electronic signature, under which the signature can
be determined to be valid. A given legal/contractual context may
recognize a particular signature policy as meeting its requirements.
A signature policy may be issued, for example, by a party relying on
the electronic signatures and selected by the signer for use with
that relying party. Alternatively, a signature policy may be
established through an electronic trading association for use amongst
its members. Both the signer and verifier use the same signature
policy.
The signature policy may be explicitly identified or may be implied
by the semantics of the data being signed and other external data
like a contract being referenced which itself refers to a signature
policy.
An explicit signature policy has a globally unique reference, which
is bound to an electronic signature by the signer as part of the
signature calculation.
<span class="grey">Pinkas, et al. Informational [Page 66]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-67" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
The signature policy needs to be available in human readable form so
that it can be assessed to meet the requirements of the legal and
contractual context in which it is being applied. To facilitate the
automatic processing of an electronic signature the parts of the
signature policy which specify the electronic rules for the creation
and validation of the electronic signature also needs to be in a
computer processable form.
The signature policy thus includes the following:
* Information about the signature policy that can be displayed to
the signer or the verifiers.
* Rules, which apply to functionality, covered by this document
(referred to as the Signature Validation Policy).
* Rules which may be implied through adoption of Certificate
Policies that apply to the electronic signature (e.g., rules
for ensuring the secrecy of the private signing key).
* Rules, which relate to the environment used by the signer,
e.g., the use of an agreed CAD (Card Accepting Device) used in
conjunction with a smart card.
An explicit Signature Validation Policy may be structured so that it
can be computer processable. Any format of the signature validation
policy is allowed by this document. However, for a given explicit
signature policy there must be one definitive form that has a unique
binary encoded value.
The Signature Validation Policy includes rules regarding use of TSPs
(CA, Attribute Authorities, Time Stamping Authorities) as well as
rules defining the components of the electronic signature that must
be provided by the signer with data required by the verifier to
provide long term proof.
<span class="h3"><a class="selflink" id="appendix-B.2" href="#appendix-B.2">B.2</a> Signed Information</span>
The information being signed may be defined as a MIME-encapsulated
message which can be used to signal the format of the content in
order to select the right display or application. It can be composed
of formatted text (e.g., EDIFACT), free text or of fields from an
electronic form (e-form). For example, the Adobe(tm) format "pdf"
may be used or the eXtensible Mark up Language (XML).
<span class="grey">Pinkas, et al. Informational [Page 67]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-68" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h3"><a class="selflink" id="appendix-B.3" href="#appendix-B.3">B.3</a> Components of an Electronic Signature</span>
<span class="h4"><a class="selflink" id="appendix-B.3.1" href="#appendix-B.3.1">B.3.1</a> Reference to the Signature Policy</span>
The definition of electronic signature includes: "a commitment has
been explicitly endorsed under a "Signature policy", at a given time,
by a signer under an identifier, e.g., a name or a pseudonym, and
optionally a role".
When two independent parties want to evaluate an electronic
signature, it is fundamental that they get the same result. To meet
this requirement same signature policy must be used by the signer and
verifier.
The signature policy may be explicitly identified or may be implied
by the semantics of the data being signed and other external data
which designate the signature policy to be used.
By signing over the signature policy identifier the signer explicitly
indicates that he or she has applied the signature policy in creating
the signature. Thus, undertakes any explicit or implied commitments.
In order to unambiguously identify an explicit signature policy that
is to be used to verify the signature an identifier and hash of the
"Signature policy" shall be part of the signed data. Additional
information about the explicit policy (e.g., web reference to the
document) may be carried as "qualifiers" to the signature policy
identifier.
When the signature policy not explicitly identified, but is implied
by the semantics of the data being signed, then the signature will
include a signature policy identifier that indicates that the
signature policy is implied. In this case the verification rules
must be determined by using other external data which will designate
the signature policy to be used. If it may be determined from the
context that all the documents to be verified refer to the same
signature policy, then that policy may be predetermined or fixed
within the application.
In order to identify unambiguously the "Signature Validation Policy"
to be used to verify the signature an identifier and hash of the
"Signature policy" must be part of the signed data. Additional
information about the policy (e.g., web reference to the document)
may be carried as "qualifiers" to the signature policy identifier.
<span class="grey">Pinkas, et al. Informational [Page 68]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-69" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h4"><a class="selflink" id="appendix-B.3.2" href="#appendix-B.3.2">B.3.2</a> Commitment Type Indication</span>
The definition of electronic signature includes: "a commitment has
been explicitly endorsed under a signature policy, at a given time,
by a signer under an identifier, e.g., a name or a pseudonym, and
optionally a role".
The commitment type can be indicated in the electronic signature
either:
* explicitly using a "commitment type indication" in the
electronic signature;
* implicitly or explicitly from the semantics of the signed data.
If the indicated commitment type is explicit using a "commitment type
indication" in the electronic signature, acceptance of a verified
signature implies acceptance of the semantics of that commitment
type. The semantics of explicit commitment types indications must be
specified either as part of the signature policy or may be registered
for generic use across multiple policies.
If a signature includes a commitment type indication other than one
of those recognized under the signature policy the signature must be
treated as invalid.
How commitment is indicated using the semantics of the data being
signed is outside the scope of this document.
NOTE: Examples of commitment indicated through the semantics of the
data being signed, are:
* An explicit commitment made by the signer indicated by the type
of data being signed over. Thus, the data structure being
signed can have an explicit commitment within the context of
the application (e.g., EDIFACT purchase order).
* An implicit commitment which is a commitment made by the signer
because the data being signed over has specific semantics
(meaning) which is only interpretable by humans, (i.e., free
text).
<span class="h4"><a class="selflink" id="appendix-B.3.3" href="#appendix-B.3.3">B.3.3</a> Certificate Identifier from the Signer</span>
The definition of the ETSI electronic signature includes: "a
commitment has been explicitly endorsed under a signature policy, at
a given time, by a signer under an identifier, e.g., a name or a
pseudonym, and optionally a role."
<span class="grey">Pinkas, et al. Informational [Page 69]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-70" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
In many real life environments users will be able to get from
different CAs or even from the same CA, different certificates
containing the same public key for different names. The prime
advantage is that a user can use the same private key for different
purposes. Multiple use of the private key is an advantage when a
smart card is used to protect the private key, since the storage of a
smart card is always limited. When several CAs are involved, each
different certificate may contain a different identity, e.g., as a
national or as an employee from a company. Thus when a private key
is used for various purposes, the certificate is needed to clarify
the context in which the private key was used when generating the
signature. Where there is the possibility of multiple use of private
keys it is necessary for the signer to indicate to the verifier the
precise certificate to be used.
Many current schemes simply add the certificate after the signed data
and thus are subject to various substitution attacks. An example of
a substitution attack is a "bad" CA that would issue a certificate to
someone with the public key of someone else. If the certificate from
the signer was simply appended to the signature and thus not
protected by the signature, any one could substitute one certificate
by another and the message would appear to be signed by some one
else.
In order to counter this kind of attack, the identifier of the signer
has to be protected by the digital signature from the signer.
Although it does not provide the same advantages as the previous
technique, another technique to counter that threat has been
identified. It requires all CAs to perform a Proof Of Possession of
the private key at the time of registration. The problem with that
technique is that it does not provide any guarantee at the time of
verification and only some proof "after the event" may be obtained,
if and only if the CA keeps the Proof Of Possession in audit trail.
In order to identify unambiguously the certificate to be used for the
verification of the signature an identifier of the certificate from
the signer must be part of the signed data.
<span class="h4"><a class="selflink" id="appendix-B.3.4" href="#appendix-B.3.4">B.3.4</a> Role Attributes</span>
The definition of electronic signature includes: "a commitment has
been explicitly endorsed under a non repudiation security policy, at
a given time, by a signer under an identifier, e.g., a name or a
pseudonym, and optionally a role."
<span class="grey">Pinkas, et al. Informational [Page 70]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-71" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
While the name of the signer is important, the position of the signer
within a company or an organization can be even more important. Some
contracts may only be valid if signed by a user in a particular role,
e.g., a Sales Director. In many cases whom the sales Director really
is, is not that important but being sure that the signer is empowered
by his company to be the Sales Director is fundamental.
This document defines two different ways for providing this feature:
* by placing a claimed role name in the CMS signed attributes
field;
* by placing a attribute certificate containing a certified role
name in the CMS signed attributes field.
NOTE: Another possible approach would have been to use additional
attributes containing the roles name(s) in the signer's certificate.
However, it was decided not to follow this approach as it breaks the
basic philosophy of the certificate being issued for one primary
purpose. Also, by using separate certificates for management of the
signer's identity certificate and management of additional roles can
simplify the management, as new identity keys need not be issued if a
use of role is to be changed.
<span class="h5"><a class="selflink" id="appendix-B.3.4.1" href="#appendix-B.3.4.1">B.3.4.1</a> Claimed Role</span>
The signer may be trusted to state his own role without any
certificate to corroborate this claim. In which case the claimed
role can be added to the signature as a signed attribute.
<span class="h5"><a class="selflink" id="appendix-B.3.4.2" href="#appendix-B.3.4.2">B.3.4.2</a> Certified Role</span>
Unlike public key certificates that bind an identifier to a public
key, Attribute Certificates bind the identifier of a certificate to
some attributes, like a role. An Attribute Certificate is NOT issued
by a CA but by an Attribute Authority (AA). The Attribute Authority
will be most of the time under the control of an organization or a
company that is best placed to know which attributes are relevant for
which individual.
The Attribute Authority may use or point to public key certificates
issued by any CA, provided that the appropriate trust may be placed
in that CA. Attribute Certificates may have various periods of
validity. That period may be quite short, e.g., one day. While this
requires that a new Attribute Certificate is obtained every day,
valid for that day, this can be advantageous since revocation of such
certificates may not be needed. When signing, the signer will have
to specify which Attribute Certificate it selects. In order to do
<span class="grey">Pinkas, et al. Informational [Page 71]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-72" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
so, a reference to the Attribute Certificate will have to be included
in the signed data in order to be protected by the digital signature
from the signer.
In order to identify unambiguously the attribute certificate(s) to be
used for the verification of the signature an identifier of the
attribute certificate(s) from the signer must be part of the signed
data.
<span class="h4"><a class="selflink" id="appendix-B.3.5" href="#appendix-B.3.5">B.3.5</a> Signer Location</span>
In some transactions the purported location of the signer at the time
he or she applies his signature may need to be indicated. For this
reason an optional location indicator must be able to be included.
In order to provide indication of the location of the signer at the
time he or she applied his signature a location attribute may be
included in the signature.
<span class="h4"><a class="selflink" id="appendix-B.3.6" href="#appendix-B.3.6">B.3.6</a> Signing Time</span>
The definition of electronic signature includes: "a commitment has
been explicitly endorsed under a signature policy, at a given time,
by a signer under an identifier, e.g., a name or a pseudonym, and
optionally a role."
There are several ways to address this problem. The solution adopted
in this document is to sign over a time which the signer claims is
the signing time (i.e., claimed signing time) and to require a
trusted time stamp to be obtained when building a ES with Time-Stamp.
When a verifier accepts a signature, the two times must be within
acceptable limits.
The solution that is adopted in this document offers the major
advantage that electronic signatures can be generated without any
on-line connection to a trusted time source (i.e., they may be
generated off-line).
Thus two dates and two signatures are required:
* a signing time indicated by the signer and which is part of the
data signed by the signer (i.e., part of the basic electronic
signature);
* a time indicated by a Time-Stamping Authority (TSA) which is
signed over the digital signature value of the basic electronic
signature. The signer, verifier or both may obtain the TSA
time-stamp.
<span class="grey">Pinkas, et al. Informational [Page 72]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-73" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
In order for an electronic signature to be valid under a signature
policy, it must be time-stamped by a TSA where the signing time as
indicated by the signer and the time of time stamping as indicated by
a TSA must be "close enough" to meet the requirements of the
signature validation policy.
"Close enough" means a few minutes, hours or even days according to
the "Signature Validation Policy".
NOTE: The need for Time-Stamping is further explained in clause
B.4.5. A further optional attribute is defined in this document to
time-stamp the content, to provide proof of the existence of the
content, at the time indicated by the time-stamp.
Using this optional attribute a trusted secure time may be obtained
before the document is signed and included under the digital
signature. This solution requires an on-line connection to a trusted
time-stamping service before generating the signature and may not
represent the precise signing time, since it can be obtained in
advance. However, this optional attribute may be used by the signer
to prove that the signed object existed before the date included in
the time-stamp (see 3.12.3, Content Time-Stamp).
Also, the signing time should be between the time indicated by this
time-stamp and time indicated by the ES-T time-stamp.
<span class="h4"><a class="selflink" id="appendix-B.3.7" href="#appendix-B.3.7">B.3.7</a> Content Format</span>
When presenting signed data to a human user it may be important that
there is no ambiguity as to the presentation of the signed
information to the relying party. In order for the appropriate
representation (text, sound or video) to be selected by the relying
party a content hint may be indicated by the signer. If a relying
party system does not use the format specified in the content hints
to present the data to the relying party, the electronic signature
may not be valid.
<span class="h3"><a class="selflink" id="appendix-B.4" href="#appendix-B.4">B.4</a> Components of Validation Data</span>
<span class="h4"><a class="selflink" id="appendix-B.4.1" href="#appendix-B.4.1">B.4.1</a> Revocation Status Information</span>
A verifier will have to prove that the certificate of the signer was
valid at the time of the signature. This can be done by either:
* using Certificate Revocation Lists (CRLs);
* using responses from an on-line certificate status server (for
example; obtained through the OCSP protocol).
<span class="grey">Pinkas, et al. Informational [Page 73]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-74" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h4"><a class="selflink" id="appendix-B.4.2" href="#appendix-B.4.2">B.4.2</a> CRL Information</span>
When using CRLs to get revocation information, a verifier will have
to make sure that he or she gets at the time of the first
verification the appropriate certificate revocation information from
the signer's CA. This should be done as soon as possible to minimize
the time delay between the generation and verification of the
signature. This involves checking that the signer certificate serial
number is not included in the CRL. The signer, the verifier or any
other third party may obtain either this CRL. If obtained by the
signer, then it must be conveyed to the verifier. It may be
convenient to archive the CRL for ease of subsequent verification or
arbitration.
Alternatively, provided the CRL is archived elsewhere which is
accessible for the purpose of arbitration, then the serial number of
the CRL used may be archived together with the verified electronic
signature.
It may happen that the certificate serial number appears in the CRL
but with the status "suspended" (i.e., on hold). In such a case, the
electronic signature is not yet valid, since it is not possible to
know whether the certificate will or will not be revoked at the end
of the suspension period. If a decision has to be taken immediately
then the signature has to be considered as invalid. If a decision
can wait until the end of the suspension period, then two cases are
possible:
* the certificate serial number has disappeared from the list and
thus the certificate can be considered as valid and that CRL
must be captured and archived either by the verifier or
elsewhere and be kept accessible for the purpose of
arbitration.
* the certificate serial number has been maintained on the list
with the status definitively revoked and thus the electronic
signature must be considered as invalid and discarded.
At this point the verifier may be convinced that he or she got a
valid signature, but is not yet in a position to prove at a later
time that the signature was verified as valid. Before addressing
this point, an alternative to CRL is to use OCSP responses.
<span class="h4"><a class="selflink" id="appendix-B.4.3" href="#appendix-B.4.3">B.4.3</a> OCSP Information</span>
When using OCSP to get revocation information , a verifier will have
to make sure that he or she gets at the time of the first
verification an OCSP response that contains the status "valid". This
<span class="grey">Pinkas, et al. Informational [Page 74]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-75" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
should be done as soon as possible after the generation of the
signature. The signer, the verifier or any other third party may
fetch this OCSP response. Since OSCP responses are transient and thus
are not archived by any TSP including CA, it is the responsibility of
every verifier to make sure that it is stored in a safe place. The
simplest way is to store them associated with the electronic
signature. An alternative would be to store them in some storage so
that they can then be easily retrieved.
In the same way as for the case of the CRL, it may happen that the
certificate is declared as invalid but with the secondary status
"suspended".
In such a case, the electronic signature is not yet valid, since it
is not possible to know whether the certificate will or will not be
revoked at the end of the suspension period. If a decision has to be
taken immediately then the electronic signature has to be considered
as invalid. If a decision can wait until the end of the suspension
period, then two cases are possible:
* An OCSP response with a valid status is obtained at a later
date and thus the certificate can be considered as valid and
that OCSP response must be captured.
* An OCSP response with an invalid status is obtained with a
secondary status indicating that the certificate is
definitively revoked and thus the electronic signature must be
considered as invalid and discarded.
As in the CRL case, at this point, the verifier may be convinced that
he or she got a valid signature, but is not yet in a position to
prove at a later time that the signature was verified as valid.
<span class="h4"><a class="selflink" id="appendix-B.4.4" href="#appendix-B.4.4">B.4.4</a> Certification Path</span>
A verifier will have to prove that the certification path was valid,
at the time of the signature, up to a trust point according to the
naming constraints and the certificate policy constraints from the
"Signature Validation Policy". It will be necessary to capture all
the certificates from the certification path, starting with those
from the signer and ending up with those of the self-signed
certificate from one trusted root of the "Signature Validation
Policy". In addition, it will be necessary to capture the Authority
Revocation Lists (ARLs) to prove than none of the CAs from the chain
was revoked at the time of the signature.
<span class="grey">Pinkas, et al. Informational [Page 75]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-76" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
As in the OCSP case, at this point, the verifier may be convinced
that he or she got a valid signature, but is not yet in a position to
prove at a later time that the signature was verified as valid.
<span class="h4"><a class="selflink" id="appendix-B.4.5" href="#appendix-B.4.5">B.4.5</a> Time-Stamping for Long Life of Signature</span>
An important property for long standing signatures is that a
signature, having been found once to be valid, must continue to be so
months or years later.
A signer, verifier or both may be required to provide on request,
proof that a digital signature was created or verified during the
validity period of the all the certificates that make up the
certificate path. In this case, the signer, verifier or both will
also be required to provide proof that all the user and CA
certificates used were not revoked when the signature was created or
verified.
It would be quite unacceptable, to consider a signature as invalid
even if the keys or certificates were later compromised. Thus there
is a need to be able to demonstrate that the signature keys was valid
around the time that the signature was created to provide long term
evidence of the validity of a signature.
It could be the case that a certificate was valid at the time of the
signature but revoked some time later. In this event, evidence must
be provided that the document was signed before the signing key was
revoked.
Time-Stamping by a Time Stamping Authority (TSA) can provide such
evidence. A time stamp is obtained by sending the hash value of the
given data to the TSA. The returned "time-stamp" is a signed
document that contains the hash value, the identity of the TSA, and
the time of stamping. This proves that the given data existed before
the time of stamping. Time-Stamping a digital signature (by sending
a hash of the signature to the TSA) before the revocation of the
signer's private key, provides evidence that the signature has been
created before the key was revoked.
If a recipient wants to hold a valid electronic signature he will
have to ensure that he has obtained a valid time stamp for it, before
that key (and any key involved in the validation) is revoked. The
sooner the time-stamp is obtained after the signing time, the better.
It is important to note that signatures may be generated "off-line"
and time-stamped at a later time by anyone, for example by the signer
or any recipient interested in the value of the signature. The time
stamp can thus be provided by the signer together with the signed
<span class="grey">Pinkas, et al. Informational [Page 76]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-77" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
document, or obtained by the recipient following receipt of the
signed document.
The time stamp is NOT a component of the Electronic Signature, but
the essential component of the ES with Time-Stamp.
It is required in this document that signer's digital signature value
is time-stamped by a trusted source, known as a Time-Stamping
Authority.
This document requires that the signer's digital signature value is
time-stamped by a trusted source before the electronic signature can
become a ES with Complete validation data (ES-C). The acceptable
TSAs are specified in the Signature Validation Policy.
Should both the signer and verifier be required to time-stamp the
signature value to meet the requirements of the signature policy, the
signature policy MAY specify a permitted time delay between the two
time stamps.
<span class="h4"><a class="selflink" id="appendix-B.4.6" href="#appendix-B.4.6">B.4.6</a> Time-Stamping before CA Key Compromises</span>
Time-Stamped extended electronic signatures are needed when there is
a requirement to safeguard against the possibility of a CA key in the
certificate chain ever being compromised. A verifier may be required
to provide on request, proof that the certification path and the
revocation information used a the time of the signature were valid,
even in the case where one of the issuing keys or OCSP responder keys
is later compromised.
The current document defines two ways of using time-stamps to protect
against this compromise:
* Time-Stamp the ES with Complete validation data, when an OCSP
response is used to get the status of the certificate from the
signer.
* Time-Stamp only the certification path and revocation
information references when a CRL is used to get the status of
the certificate from the signer.
NOTE: the signer, verifier or both may obtain the time-stamp.
<span class="h5"><a class="selflink" id="appendix-B.4.6.1" href="#appendix-B.4.6.1">B.4.6.1</a> Time-Stamping the ES with Complete validation data</span>
When an OCSP response is used, it is necessary to time stamp in
particular that response in the case the key from the responder would
be compromised. Since the information contained in the OCSP response
<span class="grey">Pinkas, et al. Informational [Page 77]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-78" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
is user specific and time specific, an individual time stamp is
needed for every signature received. Instead of placing the time
stamp only over the certification path references and the revocation
information references, which include the OCSP response, the time
stamp is placed on the ES-C. Since the certification path and
revocation information references are included in the ES with
Complete validation data they are also protected. For the same
cryptographic price, this provides an integrity mechanism over the ES
with Complete validation data. Any modification can be immediately
detected. It should be noticed that other means of
protecting/detecting the integrity of the ES with Complete Validation
Data exist and could be used.
Although the technique requires a time stamp for every signature, it
is well suited for individual users wishing to have an integrity
protected copy of all the validated signatures they have received.
By time-stamping the complete electronic signature, including the
digital signature as well as the references to the certificates and
revocation status information used to support validation of that
signature, the time-stamp ensures that there is no ambiguity in the
means of validating that signature.
This technique is referred to as ES with eXtended validation data
(ES-X), type 1 Time-Stamped in this document.
NOTE: Trust is achieved in the references by including a hash of the
data being referenced.
If it is desired for any reason to keep a copy of the additional data
being referenced, the additional data may be attached to the
electronic signature, in which case the electronic signature becomes
a ES-X Long as defined by this document.
A ES-X Long Time-Stamped is simply the concatenation of a ES-X Time-
Stamped with a copy of the additional data being referenced.
<span class="h5"><a class="selflink" id="appendix-B.4.6.2" href="#appendix-B.4.6.2">B.4.6.2</a> Time-Stamping Certificates and Revocation Information</span>
References Time-Stamping each ES with Complete validation data as
defined above may not be efficient, particularly when the same set of
CA certificates and CRL information is used to validate many
signatures.
Time-Stamping CA certificates will stop any attacker from issuing
bogus CA certificates that could be claimed to existing before the CA
key was compromised. Any bogus time-stamped CA certificates will
show that the certificate was created after the legitimate CA key was
<span class="grey">Pinkas, et al. Informational [Page 78]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-79" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
compromised. In the same way, time-stamping CA CRLs, will stop any
attacker from issuing bogus CA CRLs which could be claimed to
existing before the CA key was compromised.
Time-Stamping of commonly used certificates and CRLs can be done
centrally, e.g., inside a company or by a service provider. This
method reduces the amount of data the verifier has to time-stamp, for
example it could reduce to just one time stamp per day (i.e., in the
case were all the signers use the same CA and the CRL applies for the
whole day). The information that needs to be time stamped is not the
actual certificates and CRLs but the unambiguous references to those
certificates and CRLs.
To comply with extended validation data, type 2 Time-stamped, this
document requires the following:
* All the CA certificates references and revocation information
references (i.e., CRLs) used in validating the ES-C are covered
by one or more time-stamp.
Thus a ES-C with a time-stamp signature value at time T1, can be
proved valid if all the CA and CRL references are time-stamped at
time T1+.
<span class="h4"><a class="selflink" id="appendix-B.4.7" href="#appendix-B.4.7">B.4.7</a> Time-Stamping for Long Life of Signature</span>
Advances in computing increase the probability of being able to break
algorithms and compromise keys. There is therefore a requirement to
be able to protect electronic signatures against this probability.
Over a period of time weaknesses may occur in the cryptographic
algorithms used to create an electronic signature (e.g., due to the
time available for cryptoanalysis, or improvements in
cryptoanalytical techniques). Before this such weaknesses become
likely, a verifier should take extra measures to maintain the
validity of the electronic signature. Several techniques could be
used to achieve this goal depending on the nature of the weakened
cryptography. In order to simplify, a single technique, called
Archive validation data, covering all the cases is being used in this
document.
Archive validation data consists of the Complete validation data and
the complete certificate and revocation data, time stamped together
with the electronic signature. The Archive validation data is
necessary if the hash function and the crypto algorithms that were
used to create the signature are no longer secure. Also, if it
<span class="grey">Pinkas, et al. Informational [Page 79]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-80" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
cannot be assumed that the hash function used by the Time Stamping
Authority is secure, then nested time-stamps of Archived Electronic
Signature are required.
The potential for Trusted Service Provider (TSP) key compromise
should be significantly lower than user keys, because TSP(s) are
expected to use stronger cryptography and better key protection. It
can be expected that new algorithms (or old ones with greater key
lengths) will be used. In such a case, a sequence of time-stamps
will protect against forgery. Each time-stamp needs to be affixed
before either the compromise of the signing key or of the cracking of
the algorithms used by the TSA. TSAs (Time-Stamping Authorities)
should have long keys (e.g., which at the time of drafting this
document was 2048 bits for the signing RSA algorithm) and/or a "good"
or different algorithm.
Nested time-stamps will also protect the verifier against key
compromise or cracking the algorithm on the old electronic
signatures.
The process will need to be performed and iterated before the
cryptographic algorithms used for generating the previous time stamp
are no longer secure. Archive validation data may thus bear multiple
embedded time stamps.
<span class="h4"><a class="selflink" id="appendix-B.4.8" href="#appendix-B.4.8">B.4.8</a> Reference to Additional Data</span>
Using type 1 or 2 of Time-Stamped extended validation data verifiers
still needs to keep track of all the components that were used to
validate the signature, in order to be able to retrieve them again
later on. These components may be archived by an external source
like a trusted service provider, in which case referenced information
that is provided as part of the ES with Complete validation data
(ES-C) is adequate. The actual certificates and CRL information
reference in the ES-C can be gathered when needed for arbitration.
<span class="h4"><a class="selflink" id="appendix-B.4.9" href="#appendix-B.4.9">B.4.9</a> Time-Stamping for Mutual Recognition</span>
In some business scenarios both the signer and the verifier need to
time-stamp their own copy of the signature value. Ideally the two
time-stamps should be as close as possible to each other.
Example: A contract is signed by two parties A and B representing
their respective organizations, to time-stamp the signer and verifier
data two approaches are possible:
* under the terms of the contract pre-defined common "trusted"
TSA may be used;
<span class="grey">Pinkas, et al. Informational [Page 80]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-81" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
* if both organizations run their own time-stamping services, A
and B can have the transaction time-stamped by these two time-
stamping services. In the latter case, the electronic
signature will only be considered as valid, if both time-stamps
were obtained in due time (i.e., there should not be a long
delay between obtaining the two time-stamps). Thus, neither A
nor B can repudiate the signing time indicated by their own
time-stamping service.
Therefore, A and B do not need to agree on a common "trusted" TSA to
get a valid transaction.
It is important to note that signatures may be generated "off-line"
and time-stamped at a later time by anyone, e.g., by the signer or
any recipient interested in validating the signature. The time-stamp
over the signature from the signer can thus be provided by the signer
together with the signed document, and /or obtained by the verifier
following receipt of the signed document.
The business scenarios may thus dictate that one or more of the
long-term signature time-stamping methods describe above be used.
This will need to be part of a mutually agreed the Signature
Validation Policy with is part of the overall signature policy under
which digital signature may be used to support the business
relationship between the two parties.
<span class="h4"><a class="selflink" id="appendix-B.4.10" href="#appendix-B.4.10">B.4.10</a> TSA Key Compromise</span>
TSA servers should be built in such a way that once the private
signature key is installed, that there is minimal likelihood of
compromise over as long as possible period. Thus the validity period
for the TSA's keys should be as long as possible.
Both the ES-T and the ES-C contain at least one time stamp over the
signer's signature. In order to protect against the compromise of
the private signature key used to produce that time-stamp, the
Archive validation data can be used when a different Time-Stamping
Authority key is involved to produce the additional time-stamp. If
it is believed that the TSA key used in providing an earlier time-
stamp may ever be compromised (e.g., outside its validity period),
then the ES-A should be used. For extremely long periods this may be
applied repeatedly using new TSA keys.
<span class="h3"><a class="selflink" id="appendix-B.5" href="#appendix-B.5">B.5</a> Multiple Signatures</span>
Some electronic signatures may only be valid if they bear more than
one signature. This is the case generally when a contract is signed
between two parties. The ordering of the signatures may or may not
<span class="grey">Pinkas, et al. Informational [Page 81]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-82" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
be important, i.e., one may or may not need to be applied before the
other. Several forms of multiple and counter signatures may need to
be supported, which fall into two basic categories:
* independent signatures;
* embedded signatures.
Independent signatures are parallel signatures where the ordering of
the signatures is not important. The capability to have more than
one independent signature over the same data must be provided.
Embedded signatures are applied one after the other and are used
where the order the signatures are applied is important. The
capability to sign over signed data must be provided.
These forms are described in clause 3.13. All other multiple
signature schemes, e.g., a signed document with a countersignature,
double countersignatures or multiple signatures, can be reduced to
one or more occurrence of the above two cases.
Annex C (informative): Identifiers and roles
<span class="h3"><a class="selflink" id="appendix-C.1" href="#appendix-C.1">C.1</a> Signer Name Forms</span>
The name used by the signer, held as the subject in the signer's
certificate, must uniquely identify the entity. The name must be
allocated and verified on registration with the Certification
Authority, either directly or indirectly through a Registration
Authority, before being issued with a Certificate.
This document places no restrictions on the form of the name. The
subject's name may be a distinguished name, as defined in [<a href="./rfc2459" title=""Internet X.509 Public Key Infrastructure, Certificate and CRL Profile"">RFC2459</a>],
held in the subject field of the certificate, or any other name form
held in the X.509 subjectAltName certificate extension field. In the
case that the subject has no distinguished name, the subject name can
be an empty sequence and the subjectAltName extension must be
critical.
<span class="h3"><a class="selflink" id="appendix-C.2" href="#appendix-C.2">C.2</a> TSP Name Forms</span>
All TSP name forms (Certification Authorities, Attribute Authorities
and Time-Stamping Authorities) must be in the form of a distinguished
name held in the subject field of the certificate.
The TSP name form must include the legal jurisdiction (i.e., country)
under which it operates and an identification for the organization
providing the service.
<span class="grey">Pinkas, et al. Informational [Page 82]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-83" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
<span class="h3"><a class="selflink" id="appendix-C.3" href="#appendix-C.3">C.3</a> Roles and Signer Attributes</span>
Where a signer signs as an individual but wishes to also identify
him/herself as acting on behalf of an organization, it may be
necessary to provide two independent forms of identification. The
first identity, with is directly associated with the signing key
identifies him/her as an individual. The second, which is managed
independently, identifies that person acting as part of the
organization, possibly with a given role.
In this case the first identity is carried in the
subject/subjectAltName field of the signer's certificate as described
above.
This document supports the following means of providing a second form
of identification:
* by placing a secondary name field containing a claimed role in
the CMS signed attributes field;
* by placing an attribute certificate containing a certified role
in the CMS signed attributes field.
<span class="grey">Pinkas, et al. Informational [Page 83]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-84" ></span>
<span class="grey"><a href="./rfc3126">RFC 3126</a> Electronic Signature Formats September 2001</span>
Full Copyright Statement
Copyright (C) The Internet Society (2001). All Rights Reserved.
This document and translations of it may be copied and furnished to
others, and derivative works that comment on or otherwise explain it
or assist in its implementation may be prepared, copied, published
and distributed, in whole or in part, without restriction of any
kind, provided that the above copyright notice and this paragraph are
included on all such copies and derivative works. However, this
document itself may not be modified in any way, such as by removing
the copyright notice or references to the Internet Society or other
Internet organizations, except as needed for the purpose of
developing Internet standards in which case the procedures for
copyrights defined in the Internet Standards process must be
followed, or as required to translate it into languages other than
English.
The limited permissions granted above are perpetual and will not be
revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an
"AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
Acknowledgement
Funding for the RFC Editor function is currently provided by the
Internet Society.
Pinkas, et al. Informational [Page 84]
</pre>
|