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
|
<pre>Network Working Group X. Boyen
Request for Comments: 5091 L. Martin
Category: Informational Voltage Security
December 2007
<span class="h1">Identity-Based Cryptography Standard (IBCS) #1:</span>
<span class="h1">Supersingular Curve Implementations of the BF and BB1 Cryptosystems</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.
IESG Note
This document specifies two mathematical algorithms for identity
based encryption (IBE). Due to its specialized nature, this document
experienced limited review within the IETF. Readers of this RFC
should carefully evaluate its value for implementation and
deployment.
Abstract
This document describes the algorithms that implement Boneh-Franklin
(BF) and Boneh-Boyen (BB1) Identity-based Encryption. This document
is in part based on IBCS #1 v2 of Voltage Security's Identity-based
Cryptography Standards (IBCS) documents, from which some irrelevant
sections have been removed to create the content of this document.
<span class="grey">Boyen & Martin Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Table of Contents
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-4">4</a>
<a href="#section-1.1">1.1</a>. Sending a Message That Is Encrypted Using IBE ..............<a href="#page-5">5</a>
<a href="#section-1.1.1">1.1.1</a>. Sender Obtains Recipient's Public Parameters ........<a href="#page-6">6</a>
<a href="#section-1.1.2">1.1.2</a>. Construct and Send an IBE-Encrypted Message .........<a href="#page-6">6</a>
<a href="#section-1.2">1.2</a>. Receiving and Viewing an IBE-Encrypted Message .............<a href="#page-7">7</a>
<a href="#section-1.2.1">1.2.1</a>. Recipient Obtains Public Parameters from PPS ........<a href="#page-8">8</a>
<a href="#section-1.2.2">1.2.2</a>. Recipient Obtains IBE Private Key from PKG ..........<a href="#page-8">8</a>
<a href="#section-1.2.3">1.2.3</a>. Recipient Decrypts IBE-Encrypted Message ............<a href="#page-9">9</a>
<a href="#section-2">2</a>. Notation and Definitions ........................................<a href="#page-9">9</a>
<a href="#section-2.1">2.1</a>. Notation ...................................................<a href="#page-9">9</a>
<a href="#section-2.2">2.2</a>. Definitions ...............................................<a href="#page-12">12</a>
<a href="#section-3">3</a>. Basic Elliptic Curve Algorithms ................................<a href="#page-12">12</a>
<a href="#section-3.1">3.1</a>. The Group Action in Affine Coordinates ....................<a href="#page-13">13</a>
<a href="#section-3.1.1">3.1.1</a>. Implementation for Type-1 Curves ...................<a href="#page-13">13</a>
<a href="#section-3.2">3.2</a>. Point Multiplication ......................................<a href="#page-14">14</a>
<a href="#section-3.3">3.3</a>. Operations in Jacobian Projective Coordinates .............<a href="#page-17">17</a>
<a href="#section-3.3.1">3.3.1</a>. Implementation for Type-1 Curves ...................<a href="#page-17">17</a>
<a href="#section-3.4">3.4</a>. Divisors on Elliptic Curves ...............................<a href="#page-19">19</a>
<a href="#section-3.4.1">3.4.1</a>. Implementation in F_p^2 for Type-1 Curves ..........<a href="#page-19">19</a>
<a href="#section-3.5">3.5</a>. The Tate Pairing ..........................................<a href="#page-21">21</a>
<a href="#section-3.5.1">3.5.1</a>. Tate Pairing Calculation ...........................<a href="#page-21">21</a>
<a href="#section-3.5.2">3.5.2</a>. The Miller Algorithm for Type-1 Curves .............<a href="#page-21">21</a>
<a href="#section-4">4</a>. Supporting Algorithms ..........................................<a href="#page-24">24</a>
<a href="#section-4.1">4.1</a>. Integer Range Hashing .....................................<a href="#page-24">24</a>
<a href="#section-4.1.1">4.1.1</a>. Hashing to an Integer Range ........................<a href="#page-24">24</a>
<a href="#section-4.2">4.2</a>. Pseudo-Random Byte Generation by Hashing ..................<a href="#page-25">25</a>
<a href="#section-4.2.1">4.2.1</a>. Keyed Pseudo-Random Bytes Generator ................<a href="#page-25">25</a>
<a href="#section-4.3">4.3</a>. Canonical Encodings of Extension Field Elements ...........<a href="#page-26">26</a>
<a href="#section-4.3.1">4.3.1</a>. Encoding an Extension Element as a String ..........<a href="#page-26">26</a>
<a href="#section-4.3.2">4.3.2</a>. Type-1 Curve Implementation ........................<a href="#page-27">27</a>
<a href="#section-4.4">4.4</a>. Hashing onto a Subgroup of an Elliptic Curve ..............<a href="#page-28">28</a>
4.4.1. Hashing a String onto a Subgroup of an
Elliptic Curve .....................................<a href="#page-28">28</a>
<a href="#section-4.4.2">4.4.2</a>. Type-1 Curve Implementation ........................<a href="#page-29">29</a>
<a href="#section-4.5">4.5</a>. Bilinear Mapping ..........................................<a href="#page-29">29</a>
<a href="#section-4.5.1">4.5.1</a>. Regular or Modified Tate Pairing ...................<a href="#page-29">29</a>
<a href="#section-4.5.2">4.5.2</a>. Type-1 Curve Implementation ........................<a href="#page-30">30</a>
<a href="#section-4.6">4.6</a>. Ratio of Bilinear Pairings ................................<a href="#page-31">31</a>
<a href="#section-4.6.1">4.6.1</a>. Ratio of Regular or Modified Tate Pairings .........<a href="#page-31">31</a>
<a href="#section-4.6.2">4.6.2</a>. Type-1 Curve Implementation ........................<a href="#page-32">32</a>
<a href="#section-5">5</a>. The Boneh-Franklin BF Cryptosystem .............................<a href="#page-32">32</a>
<a href="#section-5.1">5.1</a>. Setup .....................................................<a href="#page-32">32</a>
<a href="#section-5.1.1">5.1.1</a>. Master Secret and Public Parameter Generation ......<a href="#page-32">32</a>
<a href="#section-5.1.2">5.1.2</a>. Type-1 Curve Implementation ........................<a href="#page-33">33</a>
<a href="#section-5.2">5.2</a>. Public Key Derivation .....................................<a href="#page-34">34</a>
<span class="grey">Boyen & Martin Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
5.2.1. Public Key Derivation from an Identity and
Public Parameters ..................................<a href="#page-34">34</a>
<a href="#section-5.3">5.3</a>. Private Key Extraction ....................................<a href="#page-35">35</a>
5.3.1. Private Key Extraction from an Identity, a
Set of Public ......................................<a href="#page-35">35</a>
<a href="#section-5.4">5.4</a>. Encryption ................................................<a href="#page-36">36</a>
5.4.1. Encrypt a Session Key Using an Identity and
Public Parameters ..................................<a href="#page-36">36</a>
<a href="#section-5.5">5.5</a>. Decryption ................................................<a href="#page-37">37</a>
5.5.1. Decrypt an Encrypted Session Key Using
Public Parameters, a Private Key ...................<a href="#page-37">37</a>
<a href="#section-6">6</a>. The Boneh-Boyen BB1 Cryptosystem ...............................<a href="#page-38">38</a>
<a href="#section-6.1">6.1</a>. Setup .....................................................<a href="#page-38">38</a>
<a href="#section-6.1.1">6.1.1</a>. Generate a Master Secret and Public Parameters .....<a href="#page-38">38</a>
<a href="#section-6.1.2">6.1.2</a>. Type-1 Curve Implementation ........................<a href="#page-39">39</a>
<a href="#section-6.2">6.2</a>. Public Key Derivation .....................................<a href="#page-41">41</a>
6.2.1. Derive a Public Key from an Identity and
Public Parameters ..................................<a href="#page-41">41</a>
<a href="#section-6.3">6.3</a>. Private Key Extraction ....................................<a href="#page-41">41</a>
6.3.1. Extract a Private Key from an Identity,
Public Parameters and a Master Secret ..............<a href="#page-41">41</a>
<a href="#section-6.4">6.4</a>. Encryption ................................................<a href="#page-42">42</a>
6.4.1. Encrypt a Session Key Using an Identity and
Public Parameters ..................................<a href="#page-42">42</a>
<a href="#section-6.5">6.5</a>. Decryption ................................................<a href="#page-45">45</a>
<a href="#section-6.5.1">6.5.1</a>. Decrypt Using Public Parameters and Private Key ....<a href="#page-45">45</a>
<a href="#section-7">7</a>. Test Data ......................................................<a href="#page-47">47</a>
<a href="#section-7.1">7.1</a>. Algorithm 3.2.2 (PointMultiply) ...........................<a href="#page-47">47</a>
<a href="#section-7.2">7.2</a>. Algorithm 4.1.1 (HashToRange) .............................<a href="#page-48">48</a>
<a href="#section-7.3">7.3</a>. Algorithm 4.5.1 (Pairing) .................................<a href="#page-48">48</a>
<a href="#section-7.4">7.4</a>. Algorithm 5.2.1 (BFderivePubl) ............................<a href="#page-49">49</a>
<a href="#section-7.5">7.5</a>. Algorithm 5.3.1 (BFextractPriv) ...........................<a href="#page-49">49</a>
<a href="#section-7.6">7.6</a>. Algorithm 5.4.1 (BFencrypt) ...............................<a href="#page-50">50</a>
<a href="#section-7.7">7.7</a>. Algorithm 6.3.1 (BBextractPriv) ...........................<a href="#page-51">51</a>
<a href="#section-7.8">7.8</a>. Algorithm 6.4.1 (BBencrypt) ...............................<a href="#page-52">52</a>
<a href="#section-8">8</a>. ASN.1 Module ...................................................<a href="#page-53">53</a>
<a href="#section-9">9</a>. Security Considerations ........................................<a href="#page-58">58</a>
<a href="#section-10">10</a>. Acknowledgments ...............................................<a href="#page-60">60</a>
<a href="#section-11">11</a>. References ....................................................<a href="#page-60">60</a>
<a href="#section-11.1">11.1</a>. Normative References .....................................<a href="#page-60">60</a>
<a href="#section-11.2">11.2</a>. Informative References ...................................<a href="#page-60">60</a>
<span class="grey">Boyen & Martin Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document provides a set of specifications for implementing
identity-based encryption (IBE) systems based on bilinear pairings.
Two cryptosystems are described: the IBE system proposed by Boneh and
Franklin (BF) [<a href="#ref-BF" title=""Identity-based encryption from the Weil pairing,"">BF</a>], and the IBE system proposed by Boneh and Boyen
(BB1) [<a href="#ref-BB1" title=""Efficient selective-ID secure identity based encryption without random oracles,"">BB1</a>]. Fully secure and practical implementations are
described for each system, comprising the core IBE algorithms as well
as ancillary hybrid components used to achieve security against
active attacks. These specifications are restricted to a family of
supersingular elliptic curves over finite fields of large prime
characteristic, referred to as "type-1" curves (see <a href="#section-2.1">Section 2.1</a>).
Implementations based on other types of curves currently fall outside
the scope of this document.
IBE is a public-key technology, but one which varies from other
public-key technologies in a slight, yet significant way. In
particular, IBE keys are calculated instead of being generated
randomly, which leads to a different architecture for a system using
IBE than for a system using other public-key technologies. An
overview of these differences and how a system using IBE works is
given in [<a href="#ref-IBEARCH" title=""Identity- based Encryption Architecture"">IBEARCH</a>].
Identity-based encryption (IBE) is a public-key encryption technology
that allows a public key to be calculated from an identity, and the
corresponding private key to be calculated from the public key.
Calculation of both the public and private keys in an IBE-based
system can occur as needed, resulting in just-in-time key material.
This contrasts with other public-key systems [<a href="#ref-P1363" title=""Standard Specifications for Public Key Cryptography,"">P1363</a>], in which keys
are generated randomly and distributed prior to secure communication
commencing. The ability to calculate a recipient's public key, in
particular, eliminates the need for the sender and receiver in an
IBE-based messaging system to interact with each other, either
directly or through a proxy such as a directory server, before
sending secure messages.
This document describes an IBE-based messaging system and how the
components of the system work together. The components required for
a complete IBE messaging system are the following:
o a Private-key Generator (PKG). The PKG contains the cryptographic
material, known as a master secret, for generating an individual's
IBE private key. A PKG accepts an IBE user's private key request,
and after successfully authenticating them in some way, returns
the IBE private key.
<span class="grey">Boyen & Martin Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
o a Public Parameter Server (PPS). IBE System Parameters include
publicly sharable cryptographic material, known as IBE public
parameters, and policy information for the PKG. A PPS provides a
well-known location for secure distribution of IBE public
parameters and policy information for the IBE PKG.
A logical architecture would be to have a PKG/PPS per name space,
such as a DNS zone. The organization that controls the DNS zone
would also control the PKG/PPS and thus the determination of which
PKG/PSS to use when creating public and private keys for the
organization's members. In this case the PPS URI can be uniquely
created by the form of the identity that it supports. This
architecture would make it clear which set of public parameters to
use and where to retrieve them for a given identity.
IBE-encrypted messages can use standard message formats, such as the
Cryptographic Message Syntax (CMS) [<a href="#ref-CMS" title=""Cryptographic Message Syntax (CMS)"">CMS</a>]. How to use IBE with CMS is
described in [<a href="#ref-IBECMS" title=""Using the Boneh-Franklin and Boneh-Boyen identity-based encryption algorithms with the Cryptographic Message Syntax (CMS)"">IBECMS</a>].
Note that IBE algorithms are used only for encryption, so if digital
signatures are required, they will need to be provided by an
additional mechanism.
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in [<a href="#ref-KEYWORDS" title=""Key words for use in RFCs to Indicate Requirement Levels"">KEYWORDS</a>].
<span class="h3"><a class="selflink" id="section-1.1" href="#section-1.1">1.1</a>. Sending a Message That Is Encrypted Using IBE</span>
In order to send an encrypted message, an IBE user must perform the
following steps:
1. Obtain the recipient's public parameters.
The recipient's IBE public parameters allow the creation of
unique public and private keys. A user of an IBE system is
capable of calculating the public key of a recipient after he
obtains the public parameters for their IBE system. Once the
public parameters are obtained, IBE-encrypted messages can be
sent.
2. Construct and send an IBE-encrypted message.
All that is needed, in addition to the IBE public parameters,
is the recipient's identity in order to generate their public
key for use in encrypting messages to them. When this identity
is the same as the identity that a message would be addressed
to, then no more information is needed from a user to send
<span class="grey">Boyen & Martin Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
someone a secure message than is needed to send them an
unsecured message. This is one of the major benefits of an
IBE-based secure messaging system. Examples of identities can
be an individual, group, or role identifiers.
<span class="h4"><a class="selflink" id="section-1.1.1" href="#section-1.1.1">1.1.1</a>. Sender Obtains Recipient's Public Parameters</span>
The sender of a message obtains the IBE public parameters that he
needs for calculating the IBE public key of the recipient from a PPS
that is hosted at a well-known URI. The IBE public parameters
contain all of the information that the sender needs to create an
IBE-encrypted message except for the identity of the recipient.
[<a href="#ref-IBEARCH" title=""Identity- based Encryption Architecture"">IBEARCH</a>] describes the URI where a PPS is located, the format of IBE
public parameters, and how to obtain them. The URI from which users
obtain IBE public parameters MUST be authenticated in some way; PPS
servers MUST support Transport Layer Security (TLS) 1.1 [<a href="#ref-TLS" title=""The Transport Layer Security (TLS) Protocol Version 1.1"">TLS</a>] to
satisfy this requirement and MUST verify that the subject name in the
server certificate matches the URI of the PPS. [<a href="#ref-IBEARCH" title=""Identity- based Encryption Architecture"">IBEARCH</a>] also
describes the way in which identity formats are defined and a minimum
interoperable format that all PPSs and PKGs MUST support. This step
is shown below in Figure 1.
IBE Public Parameter Request
----------------------------->
Sender PPS
<-----------------------------
IBE Public Parameters
Figure 1. Requesting IBE Public Parameters
The sender of an IBE-encrypted message selects the PPS and
corresponding PKG based on his local security policy. Different PPSs
may provide public parameters that specify different IBE algorithms
or different key strengths, for example, or require the use of PKGs
that require different levels of authentication before granting IBE
private keys.
<span class="h4"><a class="selflink" id="section-1.1.2" href="#section-1.1.2">1.1.2</a>. Construct and Send an IBE-Encrypted Message</span>
To IBE-encrypt a message, the sender chooses a content encryption key
(CEK) and uses it to encrypt his message and then encrypts the CEK
with the recipient's IBE public key (for example, as described in
[<a href="#ref-CMS" title=""Cryptographic Message Syntax (CMS)"">CMS</a>]). This operation is shown below in Figure 2. This document
describes the algorithms needed to implement two forms of IBE.
[<a href="#ref-IBECMS" title=""Using the Boneh-Franklin and Boneh-Boyen identity-based encryption algorithms with the Cryptographic Message Syntax (CMS)"">IBECMS</a>] describes how to use the Cryptographic Message Syntax (CMS)
to encapsulate the encrypted message along with the IBE information
that the recipient needs to decrypt the message.
<span class="grey">Boyen & Martin Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
CEK ----> Sender ----> IBE-encrypted CEK
^
|
|
Recipient's Identity
and IBE Public Parameters
Figure 2. Using an IBE Public-Key Algorithm to Encrypt
<span class="h3"><a class="selflink" id="section-1.2" href="#section-1.2">1.2</a>. Receiving and Viewing an IBE-Encrypted Message</span>
In order to read an encrypted message, a recipient of an
IBE-encrypted message parses the message (for example, as described
in [<a href="#ref-IBECMS" title=""Using the Boneh-Franklin and Boneh-Boyen identity-based encryption algorithms with the Cryptographic Message Syntax (CMS)"">IBECMS</a>]). This gives him the URI he needs to obtain the IBE
public parameters required to perform IBE calculations as well as the
identity that was used to encrypt the message. Next, the recipient
must carry out the following steps:
1. Obtain the recipient's public parameters.
An IBE system's public parameters allow it to uniquely create
public and private keys. The recipient of an IBE-encrypted
message can decrypt an IBE-encrypted message if he has both the
IBE public parameters and the necessary IBE private key. The
PPS can also provide the URI of the PKG where the recipient of
an IBE-encrypted message can obtain the IBE private keys.
2. Obtain the IBE private key from the PKG.
To decrypt an IBE-encrypted message, in addition to the IBE
public parameters, the recipient needs to obtain the private
key that corresponds to the public key that the sender used.
The IBE private key is obtained after successfully
authenticating to a private key generator (PKG), a trusted
third party that calculates private keys for users. The
recipient receives the IBE private key over an HTTPS
connection. The URI of a PKG MUST be authenticated in some
way; PKG servers MUST support TLS 1.1 [<a href="#ref-TLS" title=""The Transport Layer Security (TLS) Protocol Version 1.1"">TLS</a>] to satisfy this
requirement.
3. Decrypt the IBE-encrypted message.
The IBE private key decrypts the CEK, which is then used to
decrypt encrypted message.
<span class="grey">Boyen & Martin Informational [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
The PKG may allow users other than the intended recipient to
receive some IBE private keys. Giving a mail filtering
appliance permission to obtain IBE private keys on behalf of
users, for example, can allow the appliance to decrypt and scan
encrypted messages for viruses or other malicious features.
<span class="h4"><a class="selflink" id="section-1.2.1" href="#section-1.2.1">1.2.1</a>. Recipient Obtains Public Parameters from PPS</span>
Before he can perform any IBE calculations related to the message
that he has received, the recipient of an IBE-encrypted message needs
to obtain the IBE public parameters that were used in the encryption
operation. This operation is shown below in Figure 3.
IBE Public Parameter Request
----------------------------->
Recipient PPS
<-----------------------------
IBE Public Parameters
Figure 3. Requesting IBE Public Parameters
<span class="h4"><a class="selflink" id="section-1.2.2" href="#section-1.2.2">1.2.2</a>. Recipient Obtains IBE Private Key from PKG</span>
To obtain an IBE private key, the recipient of an IBE-encrypted
message provides the IBE public key used to encrypt the message and
their authentication credentials to a PKG and requests the private
key that corresponds to the IBE public key. <a href="#section-4">Section 4</a> of this
document defines the protocol for communicating with a PKG as well as
a minimum interoperable way to authenticate to a PKG that all IBE
implementations MUST support. Because the security of IBE private
keys is vital to the overall security of an IBE system, IBE private
keys MUST be transported to recipients over a secure protocol. PKGs
MUST support TLS 1.1 [<a href="#ref-TLS" title=""The Transport Layer Security (TLS) Protocol Version 1.1"">TLS</a>] for transport of IBE private keys. This
operation is shown below in Figure 4.
IBE Private Key Request
---------------------------->
Recipient PKG
<----------------------------
IBE Private Key
Figure 4. Obtaining an IBE Private Key
<span class="grey">Boyen & Martin Informational [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h4"><a class="selflink" id="section-1.2.3" href="#section-1.2.3">1.2.3</a>. Recipient Decrypts IBE-Encrypted Message</span>
After obtaining the necessary IBE private key, the recipient uses
that IBE private key, and the corresponding IBE public parameters, to
decrypt the CEK. This operation is shown below in Figure 5. He then
uses the CEK to decrypt the encrypted message content (for example,
as specified in [<a href="#ref-IBECMS" title=""Using the Boneh-Franklin and Boneh-Boyen identity-based encryption algorithms with the Cryptographic Message Syntax (CMS)"">IBECMS</a>]).
IBE-encrypted CEK ----> Recipient ----> CEK
^
|
|
IBE Private Key
and IBE Public Parameters
Figure 5. Using an IBE Public-Key Algorithm to Decrypt
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Notation and Definitions</span>
<span class="h3"><a class="selflink" id="section-2.1" href="#section-2.1">2.1</a>. Notation</span>
This section summarizes the notions and definitions regarding
identity-based cryptosystems on elliptic curves. The reader is
referred to [<a href="#ref-ECC" title=""Elliptic Curves in Cryptography"">ECC</a>] for the mathematical background and to [<a href="#ref-BF" title=""Identity-based encryption from the Weil pairing,"">BF</a>],
[<a href="#ref-IBEARCH" title=""Identity- based Encryption Architecture"">IBEARCH</a>] regarding all notions pertaining to identity-based
encryption.
F_p denotes finite field of prime characteristic p; F_p^2 denotes its
extension field of degree 2.
Let E/F_p: y^2 = x^3 + a * x + b be an elliptic curve over F_p. For
an extension of degree 2, the curve E/F_p defines a group (E(F_p^2),
+), which is the additive group of points of affine coordinates (x,
y) in (F_p^2)^2 satisfying the curve equation over F_p^2, with null
element, or point at infinity, denoted as 0.
Let q be a prime such that E(F_p) has a cyclic subgroup G1' of order
q.
Let G1'' be a cyclic subgroup of E(F_p^2) of order q, and G2 be a
cyclic subgroup of (F_p^2)* of order p.
Under these conditions, a mathematical construction known as the Tate
pairing provides an efficiently computable map e: G1' x G1'' -> G2
that is linear in both arguments and believed hard to invert [<a href="#ref-BF" title=""Identity-based encryption from the Weil pairing,"">BF</a>].
If an efficiently computable non-rational endomorphism phi: G1' ->
<span class="grey">Boyen & Martin Informational [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
G1'' is available for the selected elliptic curve on which the Tate
pairing is computed, then we can construct a function e': G1' x G1''
-> G2, defined as e'(A, B) = e(A, phi(B)), called the modified Tate
pairing. We generically call a pairing either the Tate pairing e or
the modified Tate pairing e', depending on the chosen elliptic curve
used in a particular implementation.
The following additional notation is used throughout this document.
p - A 512-bit to 7680-bit prime, which is the order of the finite
field F_p.
F_p - The base finite field of order p over which the elliptic curve
of interest E/F_p is defined.
#G - The size of the set G.
F* - The multiplicative group of the non-zero elements in the field
F; e.g., (F_p)* is the multiplicative group of the finite field F_p.
E/F_p - The equation of an elliptic curve over the field F_p, which,
when p is neither 2 nor 3, is of the form E/F_p: y^2 = x^3 + a * x +
b, for specified a, b in F_p.
0 - The null element of any additive group of points on an elliptic
curve, also called the point at infinity.
E(F_p) - The additive group of points of affine coordinates (x, y),
with x, y in F_p, that satisfy the curve equation E/F_p, including
the point at infinity 0.
q - A 160-bit to 512-bit prime that is the order of the cyclic
subgroup of interest in E(F_p).
k - The embedding degree of the cyclic subgroup of order q in E(F_p).
For type-1 curves this is always equal to 2.
F_p^2 - The extension field of degree 2 of the field F_p.
E(F_p^2) - The group of points of affine coordinates in F_p^2
satisfying the curve equation E/F_p, including the point at infinity
0.
Z_p - The additive group of integers modulo p.
lg - The base 2 logarithm function, so that 2^lg(x) = x.
The term "object identifier" will be abbreviated "OID."
<span class="grey">Boyen & Martin Informational [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
A Solinas prime is a prime of the form 2^a (+/-) 2^b (+/-) 1.
The following conventions are assumed for curve operations.
Point addition - If A and B are two points on a curve E, their sum is
denoted as A + B.
Point multiplication - If A is a point on a curve, and n an integer,
the result of adding A to itself a total of n times is denoted [n]A.
The following class of elliptic curves is exclusively considered for
pairing operations in the present version of this document, which are
referred to as "type-1" curves.
Type-1 curves - The class of curves of type-1 is defined as the class
of all elliptic curves of equation E/F_p: y^2 = x^3 + 1 for all
primes p congruent to 11 modulo 12. This class forms a subclass of
the class of supersingular curves. These curves satisfy #E(F_p) = p
+ 1, and the p points (x, y) in E(F_p) \ {0} have the property that x
= (y^2 - 1)^(1/3) (mod p). Type-1 curves always have an embedding
degree k = 2.
Groups of points on type-1 curves are plentiful and easy to construct
by random selection of a prime p of the appropriate form. Therefore,
rather than to standardize upon a small set of common values of p, it
is henceforth assumed that all type-1 curves are freshly generated at
random for the given cryptographic application (an example of such
generation will be given in Algorithm 5.1.2 (BFsetup1) or Algorithm
6.1.2 (BBsetup1)). Implementations based on different classes of
curves are currently unsupported.
We assume that the following concrete representations of mathematical
objects are used.
Base field elements - The p elements of the base field F_p are
represented directly using the integers from 0 to p - 1.
Extension field elements - The p^2 elements of the extension field
F_p^2 are represented as ordered pairs of elements of F_p. An
ordered pair (a_0, a_1) is interpreted as the complex number a_0 +
a_1 * i, where i^2 = -1. This allows operations on elements of F_p^2
to be implemented as follows. Suppose that a = (a_0, a_1) and b =
(b_0, b_1) are elements of F_p^2. Then a + b = ((a_0 + b_0)(mod p),
(a_1 + b_1)(mod p)) and a * b = ((a_1 * b_1 - a_0 * b_0)(mod p), (a_1
* b_0 + a_0 * b_1)(mod p)).
<span class="grey">Boyen & Martin Informational [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Elliptic curve points - Points in E(F_p^2) with the point P = (x, y)
in F_p^2 x F_p^2 satisfying the curve equation E/F_p. Points not
equal to 0 are internally represented using the affine coordinates
(x, y), where x and y are elements of F_p^2.
<span class="h3"><a class="selflink" id="section-2.2" href="#section-2.2">2.2</a>. Definitions</span>
The following terminology is used to describe an IBE system.
Public parameters - The public parameters are a set of common,
system-wide parameters generated and published by the private key
generator (PKG).
Master secret - The master secret is the master key generated and
privately kept by the key server and used to generate the private
keys of the users.
Identity - An identity is an arbitrary string, usually a
human-readable unambiguous designator of a system user, possibly
augmented with a time stamp and other attributes.
Public key - A public key is a string that is algorithmically derived
from an identity. The derivation may be performed by anyone,
autonomously.
Private key - A private key is issued by the key server to correspond
to a given identity (and the public key that derives from it) under
the published set of public parameters.
Plaintext - Plaintext is an unencrypted representation, or in the
clear, of any block of data to be transmitted securely. For the
present purposes, plaintexts are typically session keys, or sets of
session keys, for further symmetric encryption and authentication
purposes.
Ciphertext - Ciphertext is an encrypted representation of any block
of data, including plaintext, to be transmitted securely.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Basic Elliptic Curve Algorithms</span>
This section describes algorithms for performing all needed basic
arithmetic operations on elliptic curves. The presentation is
specialized to the type of curves under consideration for simplicity
of implementation. General algorithms may be found in [<a href="#ref-ECC" title=""Elliptic Curves in Cryptography"">ECC</a>].
<span class="grey">Boyen & Martin Informational [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-3.1" href="#section-3.1">3.1</a>. The Group Action in Affine Coordinates</span>
<span class="h4"><a class="selflink" id="section-3.1.1" href="#section-3.1.1">3.1.1</a>. Implementation for Type-1 Curves</span>
Algorithm 3.1.1 (PointDouble1): adds a point to itself on a type-1
elliptic curve.
Input:
o A point A in E(F_p^2), with A = (x, y) or 0
o An elliptic curve E/F_p: y^2 = x^3 + 1
Output:
o The point [2]A = A + A
Method:
1. If A = 0 or y = 0, then return 0
2. Let lambda = (3 * x^2) / (2 * y)
3. Let x' = lambda^2 - 2 * x
4. Let y' = (x - x') * lambda - y
5. Return (x', y')
Algorithm 3.1.2 (PointAdd1): adds two points on a type-1 elliptic
curve.
Input:
o A point A in E(F_p^2), with A = (x_A, y_A) or 0
o A point B in E(F_p^2), with B = (x_B, y_B) or 0
o An elliptic curve E/F_p: y^2 = x^3 + 1
Output:
o The point A + B
Method:
1. If A = 0, return B
<span class="grey">Boyen & Martin Informational [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
2. If B = 0, return A
3. If x_A = x_B:
(a) If y_A = -y_B, return 0
(b) Else return [2]A computed using Algorithm 3.1.1 (PointDouble1)
4. Otherwise:
(a) Let lambda = (y_B - y_A) / (x_B - x_A)
(b) Let x' = lambda^2 - x_A - x_B
(c) Let y' = (x_A - x') * lambda - y_A
(d) Return (x', y')
<span class="h3"><a class="selflink" id="section-3.2" href="#section-3.2">3.2</a>. Point Multiplication</span>
Algorithm 3.2.1 (SignedWindowDecomposition): computes the signed
m-ary window representation of a positive integer [<a href="#ref-ECC" title=""Elliptic Curves in Cryptography"">ECC</a>].
Input:
o An integer k > 0, where k has the binary representation k =
{Sum(k_j * 2^j, for j = 0 to l} where each k_j is either 0 or 1
and k_l = 0
o An integer window bit-size r > 0
Output:
o An integer d and the unique d-element sequence {(b_i, e_i), for i
= 0 to d - 1} such that k = {Sum(b_i * 2^(e_i), for i = 0 to d -
1}, each b_i = +/- 2^j for some 0 < j <= r - 1 and each e_i is a
non-negative integer
Method:
1. Let d = 0
2. Let j = 0
3. While j <= l, do:
(a) If k_j = 0, then:
<span class="grey">Boyen & Martin Informational [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
i. Let j = j + 1
(b) Else:
i. Let t = min{l, j + r - 1}
ii. Let h_d = (k_t, k_(t - 1), ..., k_j) (base 2)
iii. If h_d > 2^(r - 1), then:
A. Let b_d = h_d - 2^r
<a href="#appendix-B">B</a>. Increment the number (k_l, k_(l-1),...,k_j) (base 2) by 1
iv. Else:
A. Let b_d = h_d
v. Let e_d = j
vi. Let d = d + 1
vii. Let j = t + 1
4. Return d and the sequence {(b_0, e_0), ...,
(b_(d - 1), e_(d - 1))}
Algorithm 3.2.2 (PointMultiply): scalar multiplication on an elliptic
curve using the signed m-ary window method.
Input:
o A point A in E(F_p^2)
o An integer l > 0
o An elliptic curve E/F_p: y^2 = x^3 + a * x + b
Output:
o The point [l]A
Method:
1. (Window decomposition)
(a) Let r > 0 be an integer (fixed) bit-wise window size,
e.g., r = 5
<span class="grey">Boyen & Martin Informational [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
(b) Let l' = l where l = {Sum(l_j * 2^j), for j = 0 to
len_l} is the binary expansion of l, where len_l =
Ceiling(lg(l))
(c) Compute (d, {(b_i, e_i), for i = 0 to d - 1} =
SignedWindowDecomposition(l, r), the signed 2^r-ary window
representation of l using Algorithm 3.2.1
(SignedWindowDecomposition)
2. (Precomputation)
(a) Let A_1 = A
(b) Let A_2 = [2]A, using Algorithm 3.1.1 (PointDouble1)
(c) For i = 1 to 2^(r - 2) - 1, do:
i. Let A_(2 * i + 1) = A_(2 * i - 1) + A_2 using
Algorithm 3.1.2 (PointAdd1)
(d) Let Q = A_(b_(d - 1))
3. Main loop
(a) For i = d - 2 to 0 by -1, do:
i. Let Q = [2^(e_(i + 1) - e_i)]Q, using repeated
applications of Algorithm 3.1.1 (PointDouble1)
e_(i + 1) - e_i times
ii. If b_i > 0, then:
A. Let Q = Q + A_(b_i) using Algorithm 3.1.2
(PointAdd1)
iii. Else:
A. Let Q = Q - A_(-(b_i)) using Algorithm 3.1.2
(PointAdd1)
(b) Calculate Q = [2^(e_0)]Q using repeated applications of
Algorithm 3.1.1 (PointDouble1) e_0 times
4. Return Q.
<span class="grey">Boyen & Martin Informational [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-3.3" href="#section-3.3">3.3</a>. Operations in Jacobian Projective Coordinates</span>
<span class="h4"><a class="selflink" id="section-3.3.1" href="#section-3.3.1">3.3.1</a>. Implementation for Type-1 Curves</span>
Algorithm 3.3.1 (ProjectivePointDouble1): adds a point to itself in
Jacobian projective coordinates for type-1 curves.
Input:
o A point (x, y, z) = A in E(F_p^2) in Jacobian projective
coordinates
o An elliptic curve E/F_p: y^2 = x^3 + 1
Output:
o The point [2]A in Jacobian projective coordinates
Method:
1. If z = 0 or y = 0, return (0, 1, 0) = 0, otherwise:
2. Let lambda_1 = 3 * x^2
3. Let z' = 2 * y * z
4. Let lambda_2 = y^2
5. Let lambda_3 = 4 * lambda_2 * x
6. Let x' = lambda_1^2 - 2 * lambda_3
7. Let lambda_4 = 8 * lambda_2^2
8. Let y' = lambda_1 * (lambda_3 - x') - lambda_4
9. Return (x', y', z')
Algorithm 3.3.2 (ProjectivePointAccumulate1): adds a point in affine
coordinates to an accumulator in Jacobian projective coordinates, for
type-1 curves.
Input:
o A point (x_A, y_A, z_A) = A in E(F_p^2) in Jacobian
projective coordinates
<span class="grey">Boyen & Martin Informational [Page 17]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-18" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
o A point (x_B, y_B) = B in E(F_p^2) \ {0} in affine
coordinates
o An elliptic curve E/F_p: y^2 = x^3 + 1
Output:
o The point A + B in Jacobian projective coordinates
Method:
1. If z_A = 0, return (x_B, y_B, 1) = B, otherwise:
2. Let lambda_1 = z_A^2
3. Let lambda_2 = lambda_1 * x_B
4. Let lambda_3 = x_A - lambda_2
5. If lambda_3 = 0, then return (0, 1, 0), otherwise:
6. Let lambda_4 = lambda_3^2
7. Let lambda_5 = lambda_1 * y_B * z_A
8. Let lambda_6 = lambda_4 - lambda_5
9. Let lambda_7 = x_A + lambda_2
10. Let lambda_8 = y_A + lambda_5
11. Let x' = lambda_6^2 - lambda_7 * lambda_4
12. Let lambda_9 = lambda_7 * lambda_4 - 2 * x'
13. Let y' = (lambda_9 * lambda_6 -
lambda_8 * lambda_3 * lambda_4) / 2
14. Let z' = lambda_3 * z_A
15. Return (x', y', z')
<span class="grey">Boyen & Martin Informational [Page 18]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-19" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-3.4" href="#section-3.4">3.4</a>. Divisors on Elliptic Curves</span>
<span class="h4"><a class="selflink" id="section-3.4.1" href="#section-3.4.1">3.4.1</a>. Implementation in F_p^2 for Type-1 Curves</span>
Algorithm 3.4.1 (EvalVertical1): evaluates the divisor of a vertical
line on a type-1 elliptic curve.
Input:
o A point B in E(F_p^2) with B != 0
o A point A in E(F_p)
o A description of a type-1 elliptic curve E/F_p
Output:
o An element of F_p^2 that is the divisor of the vertical line going
through A evaluated at B
Method:
1. Let r = x_B - x_A
2. Return r
Algorithm 3.4.2 (EvalTangent1): evaluates the divisor of a tangent on
a type-1 elliptic curve.
Input:
o A point B in E(F_p^2) with B != 0
o A point A in E(F_p)
o A description of a type-1 elliptic curve E/F_p
Output:
o An element of F_p^2 that is the divisor of the line tangent to A
evaluated at B
Method:
1. (Special cases)
(a) If A = 0, return 1
<span class="grey">Boyen & Martin Informational [Page 19]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-20" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
(b) If y_A = 0, return EvalVertical1(B, A) using Algorithm 3.4.1
(EvalVertical1)
2. (Line computation)
(a) Let a = -3 * (x_A)^2
(b) Let b = 2 * y_A
(c) Let c = -b * y_A - a * x_A
3. (Evaluation at B)
(a) Let r = a * x_B + b * y_B + c
4. Return r
Algorithm 3.4.3 (EvalLine1): evaluates the divisor of a line on a
type-1 elliptic curve.
Input:
o A point B in E(F_p^2) with B != 0
o Two points A', A'' in E(F_p)
o A description of a type-1 elliptic curve E/F_p
Output:
o An element of F_p^2 that is the divisor of the line going through
A' and A'' evaluated at B
Method:
1. (Special cases)
(a) If A' = 0, return EvalVertical1(B, A'') using Algorithm 3.4.1
(EvalVertical1)
(b) If A'' = 0, return EvalVertical1(B, A') using Algorithm 3.4.1
(EvalVertical1)
(c) If A' = -A'', return EvalVertical1(B, A') using Algorithm
3.4.1 (EvalVertical1)
(d) If A' = A'', return EvalTangent1(B, A') using Algorithm 3.4.2
(EvalTangent1)
<span class="grey">Boyen & Martin Informational [Page 20]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-21" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
2. (Line computation)
(a) Let a = y_A' - y_A''
(b) Let b = x_A'' - x_A'
(c) Let c = -b * y_A' - a * x_A'
3. (Evaluation at B)
(a) Let r = a * x_B + b * y_B + c
4. Return r
<span class="h3"><a class="selflink" id="section-3.5" href="#section-3.5">3.5</a>. The Tate Pairing</span>
<span class="h4"><a class="selflink" id="section-3.5.1" href="#section-3.5.1">3.5.1</a>. Tate Pairing Calculation</span>
Algorithm 3.5.1 (Tate): computes the Tate pairing on an elliptic
curve.
Input:
o A point A of order q in E(F_p)
o A point B of order q in E(F_p^2)
o A description of an elliptic curve E/F_p such that E(F_p) and
E(F_p^2) have a subgroup of order q
Output:
o The value e(A, B) in F_p^2, computed using the Miller algorithm
Method:
1. For a type-1 curve E, execute Algorithm 3.5.2 (TateMillerSolinas)
<span class="h4"><a class="selflink" id="section-3.5.2" href="#section-3.5.2">3.5.2</a>. The Miller Algorithm for Type-1 Curves</span>
Algorithm 3.5.2 (TateMillerSolinas): computes the Tate pairing on a
type-1 elliptic curve.
Input:
o A point A of order q in E(F_p)
o A point B of order q in E(F_p^2)
<span class="grey">Boyen & Martin Informational [Page 21]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-22" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
o A description of a type-1 supersingular elliptic curve E/F_p such
that E(F_p) and E(F_p^2) have a subgroup of Solinas prime order q
where q = 2^a + s * 2^b + c, where c and s are limited to the
values +/-1
Output:
o The value e(A, B) in F_p^2, computed using the Miller algorithm
Method:
1. (Initialization)
(a) Let v_num = 1 in F_p^2
(b) Let v_den = 1 in F_p^2
(c) Let V = (x_V , y_V , z_V ) = (x_A, y_A, 1) in (F_p)^3, being
the representation of (x_A, y_A) = A using Jacobian projective
coordinates
(d) Let t_num = 1 in F_p^2
(e) Let t_den = 1 in F_p^2
2. (Calculation of the (s * 2^b) contribution)
(a) (Repeated doublings) For n = 0 to b - 1:
i. Let t_num = t_num^2
ii. Let t_den = t_den^2
iii. Let t_num = t_num * EvalTangent1(B, (x_V / z_V^2, y_V /
z_V^3)) using Algorithm 3.4.2 (EvalTangent1)
iv. Let V = (x_V , y_V , z_V ) = [2]V using Algorithm 3.3.1
(ProjectivePointDouble1)
v. Let t_den = t_den * EvalVertical1(B, (x_V / z_V^2, y_V /
z_V^3)using Algorithm 3.4.1 (EvalVertical1)
<span class="grey">Boyen & Martin Informational [Page 22]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-23" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
(b) (Normalization)
i. Let V_b = (x_(V_b) , y_(V_b))
= (x_V / z_V^2, s * y_V / z_V^3) in (F_p)^2,
resulting in a point V_b in E(F_p)
(c) (Accumulation) Selecting on s:
i. If s = -1:
A. Let v_num = v_num * t_den
B. Let v_den = v_den * t_num * EvalVertical1(B, (x_V /
z_V^2, y_V / z_V^3))) using Algorithm 3.4.1
(EvalVertical1)
ii. If s = 1:
A. Let v_num = v_num * t_num
B. Let v_den = v_den * t_den
3. (Calculation of the 2^a contribution)
(a) (Repeated doublings) For n = b to a - 1:
i. Let t_num = t_num^2
ii. Let t_den = t_den^2
iii. Let t_num = t_num * EvalTangent1(B, (x_V / z_V^2, y_V /
z_V^3))) using Algorithm 3.4.2 (EvalTangent1)
iv. Let V = (x_V , y_V , z_V) = [2]V using Algorithm 3.3.1
(ProjectivePointDouble1)
v. Let t_den = t_den * EvalVertical1(B, (x_V / z_V^2, y_V /
z_V^3))) using Algorithm 3.4.1 (EvalVertical1)
(b) (Normalization)
i. Let V_a = (x_(V_a) , y_(V_a)) =
(x_V /z_V^2, s * x_V / z_V^3) in (F_p)^2,
resulting in a point V_a in E(F_p)
<span class="grey">Boyen & Martin Informational [Page 23]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-24" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
(c) (Accumulation)
i. Let v_num = v_num * t_num
ii. Let v_den = v_den * t_den
4. (Correction for the (s * 2^b) and (c) contributions)
(a) Let v_num = v_num * EvalLine1(B, V_a, V_b) using Algorithm
3.4.3 (EvalLine1)
(b) Let v_den = v_den * EvalVertical1(B, V_a + V_b) using
Algorithm 3.4.1 (EvalVertical1)
(c) If c = -1, then:
i. Let v_den = v_den * EvalVertical1(B, A) using Algorithm
3.4.1 (EvalVertical1)
5. (Correcting exponent)
(a) Let eta = (p^2 - 1) / q
6. (Final result)
(a) Return (v_num / v_den)^eta
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Supporting Algorithms</span>
This section describes a number of supporting algorithms for encoding
and hashing.
<span class="h3"><a class="selflink" id="section-4.1" href="#section-4.1">4.1</a>. Integer Range Hashing</span>
<span class="h4"><a class="selflink" id="section-4.1.1" href="#section-4.1.1">4.1.1</a>. Hashing to an Integer Range</span>
HashToRange(s, n, hashfcn) takes a string s, an integer n, and a
cryptographic hash function hashfcn as input and returns an integer
in the range 0 to n - 1 by cryptographic hashing. The input n MUST
be less than 2^(hashlen), where hashlen is the number of octets
comprising the output of the hash function hashfcn. HashToRange is
based on Merkle's method for hashing [<a href="#ref-MERKLE" title=""A fast software one-way hash function,"">MERKLE</a>], which is provably as
secure as the underlying hash function hashfcn.
Algorithm 4.1.1 (HashToRange): cryptographically hashes strings to
integers in a range.
<span class="grey">Boyen & Martin Informational [Page 24]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-25" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Input:
o A string s of length |s| octets
o A positive integer n represented as Ceiling(lg(n) / 8) octets.
o A cryptographic hash function hashfcn
Output:
o A positive integer v in the range 0 to n - 1
Method:
1. Let hashlen be the number of octets comprising the output of
hashfcn
2. Let v_0 = 0
3. Let h_0 = 0x00...00, a string of null octets with a length of
hashlen
4. For i = 1 to 2, do:
(a) Let t_i = h_(i - 1) || s, which is the (|s| + hashlen)- octet
string concatenation of the strings h_(i - 1) and s
(b) Let h_i = hashfcn(t_i), which is a hashlen-octet string
resulting from the hash algorithm hashfcn on the input t_i
(c) Let a_i = Value(h_i) be the integer in the range 0 to
256^hashlen - 1 denoted by the raw octet string h_i
interpreted in the unsigned big-endian convention
(d) Let v_i = 256^hashlen * v_(i - 1) + a_i
5. Let v = v_l (mod n)
<span class="h3"><a class="selflink" id="section-4.2" href="#section-4.2">4.2</a>. Pseudo-Random Byte Generation by Hashing</span>
<span class="h4"><a class="selflink" id="section-4.2.1" href="#section-4.2.1">4.2.1</a>. Keyed Pseudo-Random Bytes Generator</span>
HashBytes(b, p, hashfcn) takes an integer b, a string p, and a
cryptographic hash function hashfcn as input and returns a b-octet
pseudo-random string r as output. The value of b MUST be less than
or equal to the number of bytes in the output of hashfcn. HashBytes
is based on Merkle's method for hashing [<a href="#ref-MERKLE" title=""A fast software one-way hash function,"">MERKLE</a>], which is provably
as secure as the underlying hash function hashfcn.
<span class="grey">Boyen & Martin Informational [Page 25]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-26" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Algorithm 4.2.1 (HashBytes): keyed cryptographic pseudo-random bytes
generator.
Input:
o An integer b
o A string p
o A cryptographic hash function hashfcn
Output:
o A string r comprising b octets
Method:
1. Let hashlen be the number of octets comprising the output of
hashfcn
2. Let K = hashfcn(p)
3. Let h_0 = 0x00...00, a string of null octets with a length of
hashlen
4. Let l = Ceiling(b / hashlen)
5. For each i in 1 to l, do:
(a) Let h_i = hashfcn(h_(i - 1))
(b) Let r_i = hashfcn(h_i || K), where h_i || K is the (2 *
hashlen)-octet concatenation of h_i and K
6. Let r = LeftmostOctets(b, r_1 || ... || r_l), i.e., r is formed as
the concatenation of the r_i, truncated to the desired number of
octets
<span class="h3"><a class="selflink" id="section-4.3" href="#section-4.3">4.3</a>. Canonical Encodings of Extension Field Elements</span>
<span class="h4"><a class="selflink" id="section-4.3.1" href="#section-4.3.1">4.3.1</a>. Encoding an Extension Element as a String</span>
Canonical(p, k, o, v) takes an element v in F_p^k, and returns a
canonical octet string of fixed length representing v. The parameter
o MUST be either 0 or 1, and specifies the ordering of the encoding.
Algorithm 4.3.1 (Canonical): encodes elements of an extension field
F_p^2 as strings.
<span class="grey">Boyen & Martin Informational [Page 26]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-27" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Input:
o An element v in F_p^2
o A description of F_p^2
o An ordering parameter o, either 0 or 1
Output:
o A fixed-length string s representing v
Method:
1. For a type-1 curve, execute Algorithm 4.3.2 (Canonical1)
<span class="h4"><a class="selflink" id="section-4.3.2" href="#section-4.3.2">4.3.2</a>. Type-1 Curve Implementation</span>
Canonical1(p, o, v) takes an element v in F_p^2 and returns a
canonical representation of v as an octet string s of fixed size.
The parameter o MUST be either 0 or 1, and specifies the ordering of
the encoding.
Algorithm 4.3.2 (Canonical1): canonically represents elements of an
extension field F_p^2.
Input:
o An element v in F_p^2
o A description of p, where p is congruent to 3 modulo 4
o A ordering parameter o, either 0 or 1
Output:
o A string s of size 2 * Ceiling(lg(p) / 8) octets
Method:
1. Let l = Ceiling(lg(p) / 8), the number of octets needed to
represent integers in Z_p
2. Let v = a + b * i, where i^2 = -1
3. Let a_(256^l) be the big-endian zero-padded fixed-length octet
string representation of a in Z_p
<span class="grey">Boyen & Martin Informational [Page 27]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-28" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
4. Let b_(256^l) be the big-endian zero-padded fixed-length octet
string representation of b in Z_p
5. Depending on the choice of ordering o:
(a) If o = 0, then let s = a_(256^l) || b_(256^l), which is the
concatenation of a_(256^l) followed by b_(256^l)
(b) If o = 1, then let s = b_(256^l) || a_(256^l), which is the
concatenation of b_(256^l) followed by a_(256^l)
6. Return s
<span class="h3"><a class="selflink" id="section-4.4" href="#section-4.4">4.4</a>. Hashing onto a Subgroup of an Elliptic Curve</span>
<span class="h4"><a class="selflink" id="section-4.4.1" href="#section-4.4.1">4.4.1</a>. Hashing a String onto a Subgroup of an Elliptic Curve</span>
HashToPoint(E, p, q, id, hashfcn) takes an identity string id, the
description of a subgroup of prime order q in E(F_p) or E(F_p^2), and
a cryptographic hash function hashfcn and returns a point Q_id of
order q in E(F_p) or E(F_p^2).
Algorithm 4.4.1 (HashToPoint): cryptographically hashes strings to
points on elliptic curves.
Input:
o An elliptic curve E
o A prime p
o A prime q
o A string id
o A cryptographic hash function hashfcn
Output:
o A point Q_id = (x, y) of order q n E(F_p)
Method:
1. For a type-1 curve E, execute Algorithm 4.4.2 (HashToPoint1)
<span class="grey">Boyen & Martin Informational [Page 28]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-29" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h4"><a class="selflink" id="section-4.4.2" href="#section-4.4.2">4.4.2</a>. Type-1 Curve Implementation</span>
HashToPoint1(p, q, id, hashfcn) takes an identity string id and the
description of a subgroup of order q in E(F_p), where E: y^2 = x^3 +
1 with p congruent to 11 modulo 12, and returns a point Q_id of order
q in E(F_p) that is calculated using the cryptographic hash function
hashfcn. The parameters p, q and hashfcn MUST be part of a valid set
of public parameters as defined in <a href="#section-5.1.2">Section 5.1.2</a> or <a href="#section-6.1.2">Section 6.1.2</a>.
Algorithm 4.4.2 (HashToPoint1): cryptographically hashes strings to
points on type-1 curves.
Input:
o A prime p
o A prime q
o A string id
o A cryptographic hash function hashfcn
Output:
o A point Q_id of order q in E(F_p)
Method:
1. Let y = HashToRange(id, p, hashfcn), using Algorithm 4.1.1
(HashToRange), an element of F_p
2. Let x = (y^2 - 1)^((2 * p - 1) / 3) modulo p, an element of F_p
3. Let Q' = (x, y), a non-zero point in E(F_p)
4. Let Q = [(p + 1) / q ]Q', a point of order q in E(F_p)
<span class="h3"><a class="selflink" id="section-4.5" href="#section-4.5">4.5</a>. Bilinear Mapping</span>
<span class="h4"><a class="selflink" id="section-4.5.1" href="#section-4.5.1">4.5.1</a>. Regular or Modified Tate Pairing</span>
Pairing(E, p, q, A, B) takes two points A and B, both of order q,
and, in the type-1 case, returns the modified pairing e'(A, phi(B))
in F_p^2 where A and B are both in E(F_p).
Algorithm 4.5.1 (Pairing): computes the regular or modified Tate
pairing depending on the curve type.
<span class="grey">Boyen & Martin Informational [Page 29]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-30" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Input:
o A description of an elliptic curve E/F_p such that E(F_p) and
E(F_p^2) have a subgroup of order q
o Two points A and B of order q in E(F_p) or E(F_p^2)
Output:
o On supersingular curves, the value of e'(A, B) in F_p^2 where A
and B are both in E(F_p)
Method:
1. If E is a type-1 curve, execute Algorithm 4.5.2 (Pairing1)
<span class="h4"><a class="selflink" id="section-4.5.2" href="#section-4.5.2">4.5.2</a>. Type-1 Curve Implementation</span>
Algorithm 4.5.2 (Pairing1): computes the modified Tate pairing on
type-1 curves. The values of p and q MUST be part of a valid set of
public parameters as defined in <a href="#section-5.1.2">Section 5.1.2</a> or <a href="#section-6.1.2">Section 6.1.2</a>.
Input:
o A curve E/F_p: y^2 = x^3 + 1 where p is congruent to 11 modulo 12
and E(F_p) has a subgroup of order q
o Two points A and B of order q in E(F_p)
Output:
o The value of e'(A, B) = e(A, phi(B)) in F_p^2
Method:
1. Compute B' = phi(B), as follows:
(a) Let (x, y) in F_p x F_p be the coordinates of B in E(F_p)
(b) Let zeta = (a_zeta , b_zeta), where a_zeta = (p - 1) / 2 and
b_zeta = 3^((p + 1) / 4) (mod p), an element of F_p^2
(c) Let x' = x * zeta in F_p^2
(d) Let B' = (x', y) in F_p^2 x F_p
<span class="grey">Boyen & Martin Informational [Page 30]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-31" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
2. Compute the Tate pairing e(A, B') = e(A, phi(B)) in F_p^2 using
the Miller method, as in Algorithm 3.5.1 (Tate) described in
<a href="#section-3.5">Section 3.5</a>
<span class="h3"><a class="selflink" id="section-4.6" href="#section-4.6">4.6</a>. Ratio of Bilinear Pairings</span>
<span class="h4"><a class="selflink" id="section-4.6.1" href="#section-4.6.1">4.6.1</a>. Ratio of Regular or Modified Tate Pairings</span>
PairingRatio(E, p, q, A, B, C, D) takes four points as input and
computes the ratio of the two bilinear pairings, Pairing(E, p, q, A,
B) / Pairing(E, p, q, C, D), or, equivalently, the product,
Pairing(E, p, q, A, B) * Pairing(E, p, q, C, -D).
On type-1 curves, all four points are of order q in E(F_p), and the
result is an element of order q in the extension field F_p^2 .
The motivation for this algorithm is that the ratio of two pairings
can be calculated more efficiently than by computing each pairing
separately and dividing one into the other, since certain
calculations that would normally appear in each of the two pairings
can be combined and carried out at once. Such calculations include
the repeated doublings in steps 2(a)i, 2(a)ii, 3(a)i, and 3(a)ii of
Algorithm 3.5.2 (TateMillerSolinas), as well as the final
exponentiation in step 6(a) of Algorithm 3.5.2 (TateMillerSolinas).
Algorithm 4.6.1 (PairingRatio): computes the ratio of two regular or
modified Tate pairings depending on the curve type.
Input:
o A description of an elliptic curve E/F_p such that E(F_p) and
E(F_p^2) have a subgroup of order q
o Four points A, B, C, and D, of order q in E(F_p) or E(F_p^2)
Output:
o On supersingular curves, the value of e'(A, B) / e'(C, D) in F_p^2
where A, B, C, D are all in E(F_p)
Method:
1. If E is a type-1 curve, execute Algorithm 4.6.2 (PairingRatio1)
<span class="grey">Boyen & Martin Informational [Page 31]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-32" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h4"><a class="selflink" id="section-4.6.2" href="#section-4.6.2">4.6.2</a>. Type-1 Curve Implementation</span>
Algorithm 4.6.2 (PairingRatio1): computes the ratio of two modified
Tate pairings on type-1 curves. The values of p and q MUST be part
of a valid set of public parameters as defined in <a href="#section-5.1.2">Section 5.1.2</a> or
<a href="#section-6.1.2">Section 6.1.2</a>.
Input:
o A curve E/F_p: y^2 = x^3 + 1, where p is congruent to 11 modulo 12
and E(F_p) has a subgroup of order q
o Four points A, B, C, and D of order q in E(F_p)
Output:
o The value of e'(A, B) / e'(C, D) = e(A, phi(B)) / e(C, phi(D)) =
e(A, phi(B)) * e(-C, phi(D)), in F_p^2
Method:
1. The step-by-step description of the optimized algorithm is omitted
in this normative specification
The correct result can always be obtained, although more slowly, by
computing the product of pairings Pairing1(E, p, q, A, B) *
Pairing1(E, p, q, -C, D) by using two invocations of Algorithm 4.5.2
(Pairing1).
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. The Boneh-Franklin BF Cryptosystem</span>
This chapter describes the algorithms constituting the Boneh-Franklin
identity-based cryptosystem as described in [<a href="#ref-BF" title=""Identity-based encryption from the Weil pairing,"">BF</a>].
<span class="h3"><a class="selflink" id="section-5.1" href="#section-5.1">5.1</a>. Setup</span>
<span class="h4"><a class="selflink" id="section-5.1.1" href="#section-5.1.1">5.1.1</a>. Master Secret and Public Parameter Generation</span>
Algorithm 5.1.1 (BFsetup): randomly selects a master secret and the
associated public parameters.
Input:
o An integer version number
o A security parameter n (MUST take values either 1024, 2048, 3072,
7680, 15360)
<span class="grey">Boyen & Martin Informational [Page 32]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-33" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Output:
o A set of public parameters (version, E, p, q, P, P_pub, hashfcn)
o A corresponding master secret s
Method:
1. Depending on the selected type t:
(a) If version = 2, then execute Algorithm 5.1.2 (BFsetup1)
2. The resulting master secret and public parameters are separately
encoded as per the application protocol requirements
<span class="h4"><a class="selflink" id="section-5.1.2" href="#section-5.1.2">5.1.2</a>. Type-1 Curve Implementation</span>
BFsetup1 takes a security parameter n as input. For type-1 curves,
the scale of n corresponds to the modulus bit-size believed [<a href="#ref-BF" title=""Identity-based encryption from the Weil pairing,"">BF</a>] of
comparable security in the classical Diffie-Hellman or RSA public-key
cryptosystems.
Algorithm 5.1.2 (BFsetup1): establishes a master secret and public
parameters for type-1 curves.
Input:
o A security parameter n, which MUST be either 1024, 2048, 3072,
7680 or 15360
Output:
o A set of common public parameters (version, p, q, P, Ppub,
hashfcn)
o A corresponding master secret s
Method:
1. Set the version to version = 2.
2. Determine the subordinate security parameters n_p and n_q as
follows:
(a) If n = 1024, then let n_p = 512, n_q = 160, hashfcn =
1.3.14.3.2.26 (SHA-1 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>]
<span class="grey">Boyen & Martin Informational [Page 33]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-34" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
(b) If n = 2048, then let n_p = 1024, n_q = 224, hashfcn =
2.16.840.1.101.3.4.2.4 (SHA-224 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
(c) If n = 3072, then let n_p = 1536, n_q = 256, hashfcn =
2.16.840.1.101.3.4.2.1 (SHA-256 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
(d) If n = 7680, then let n_p = 3840, n_q = 384, hashfcn =
2.16.840.1.101.3.4.2.2 (SHA-384 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
(e) If n = 15360, then let n_p = 7680, n_q = 512, hashfcn =
2.16.840.1.101.3.4.2.3 (SHA-512 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
3. Construct the elliptic curve and its subgroup of interest, as
follows:
(a) Select an arbitrary n_q-bit Solinas prime q
(b) Select a random integer r such that p = 12 * r * q - 1 is an
n_p-bit prime
4. Select a point P of order q in E(F_p), as follows:
(a) Select a random point P' of coordinates (x', y') on the curve
E/F_p: y^2 = x^3 + 1 (mod p)
(b) Let P = [12 * r]P'
(c) If P = 0, then start over in step 3a
5. Determine the master secret and the public parameters as follows:
(a) Select a random integer s in the range 2 to q - 1
(b) Let P_pub = [s]P
6. (version, E, p, q, P, P_pub) are the public parameters where E:
y^2 = x^3 + 1 is represented by the OID 2.16.840.1.114334.1.1.1.1.
7. The integer s is the master secret
<span class="h3"><a class="selflink" id="section-5.2" href="#section-5.2">5.2</a>. Public Key Derivation</span>
<span class="h4"><a class="selflink" id="section-5.2.1" href="#section-5.2.1">5.2.1</a>. Public Key Derivation from an Identity and Public Parameters</span>
BFderivePubl takes an identity string id and a set of public
parameters, and it returns a point Q_id. The public parameters used
MUST be a valid set of public parameters as defined by <a href="#section-5.1.2">Section 5.1.2</a>.
<span class="grey">Boyen & Martin Informational [Page 34]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-35" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Algorithm 5.2.1 (BFderivePubl): derives the public key corresponding
to an identity string.
Input:
o An identity string id
o A set of public parameters (version, E, p, q, P, P_pub, hashfcn)
Output:
o A point Q_id of order q in E(F_p) or E(F_p^2)
Method:
1. Q_id = HashToPoint(E, p, q, id, hashfcn), using Algorithm 4.4.1
(HashToPoint)
<span class="h3"><a class="selflink" id="section-5.3" href="#section-5.3">5.3</a>. Private Key Extraction</span>
<span class="h4"><a class="selflink" id="section-5.3.1" href="#section-5.3.1">5.3.1</a>. Private Key Extraction from an Identity, a Set of Public</span>
<span class="h4"> Parameters and a Master Secret</span>
BFextractPriv takes an identity string id, a set of public
parameters, and corresponding master secret, and it returns a point
S_id. The public parameters used MUST be a valid set of public
parameters as defined by <a href="#section-5.1.2">Section 5.1.2</a>.
Algorithm 5.3.1 (BFextractPriv): extracts the private key
corresponding to an identity string.
Input:
o An identity string id
o A set of public parameters (version, E, p, q, P, P_pub, hashfcn)
Output:
o A point S_id of order q in E(F_p)
Method:
1. Let Q_id = HashToPoint(E, p, q, id, hashfcn) using Algorithm 4.4.1
(HashToPoint)
2. Let S_id = [s]Q_id
<span class="grey">Boyen & Martin Informational [Page 35]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-36" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-5.4" href="#section-5.4">5.4</a>. Encryption</span>
<span class="h4"><a class="selflink" id="section-5.4.1" href="#section-5.4.1">5.4.1</a>. Encrypt a Session Key Using an Identity and Public Parameters</span>
BFencrypt takes three inputs: a public parameter block, an identity
id, and a plaintext m. The plaintext MUST be a random symmetric
session key. The public parameters used MUST be a valid set of
public parameters as defined by <a href="#section-5.1.2">Section 5.1.2</a>.
Algorithm 5.4.1 (BFencrypt): encrypts a random session key for an
identity string.
Input:
o A plaintext string m of size |m| octets
o A recipient identity string id
o A set of public parameters (version, E, p, q, P, P_pub, hashfcn)
Output:
o A ciphertext tuple (U, V, W) in E(F_p) x {0, ... , 255}^hashlen x
{0, ... , 255}^|m|
Method:
1. Let hashlen be the length of the output of the cryptographic hash
function hashfcn from the public parameters.
2. Q_id = HashToPoint(E, p, q, id, hashfcn), using Algorithm 4.4.1
(HashToPoint), which results in a point of order q in E(F_p)
3. Select a random hashlen-bit vector rho, represented as (hashlen /
8)-octet string in big-endian convention
4. Let t = hashfcn(m), a hashlen-octet string resulting from applying
the hashfcn algorithm to the input m
5. Let l = HashToRange(rho || t, q, hashfcn), an integer in the range
0 to q - 1 resulting from applying Algorithm 4.1.1 (HashToRange)
to the (2 * hashlen)-octet concatenation of rho and t
6. Let U = [l]P, which is a point of order q in E(F_p)
7. Let theta = Pairing(E, p, q, P_pub, Q_id), which is an element of
the extension field F_p^2 obtained using the modified Tate pairing
of Algorithm 4.5.1 (Pairing)
<span class="grey">Boyen & Martin Informational [Page 36]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-37" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
8. Let theta' = theta^l, which is theta raised to the power of l in
F_p^2
9. Let z = Canonical(p, k, 0, theta'), using Algorithm 4.3.1
(Canonical), the result of which is a canonical string
representation of theta'
10. Let w = hashfcn(z) using the hashfcn hashing algorithm, the
result of which is a hashlen-octet string
11. Let V = w XOR rho, which is the hashlen-octet long bit-wise XOR
of w and rho
12. Let W = HashBytes(|m|, rho, hashfcn) XOR m, which is the bit-wise
XOR of m with the first |m| octets of the pseudo-random bytes
produced by Algorithm 4.2.1 (HashBytes) with seed rho
13. The ciphertext is the triple (U, V, W)
<span class="h3"><a class="selflink" id="section-5.5" href="#section-5.5">5.5</a>. Decryption</span>
<span class="h4"><a class="selflink" id="section-5.5.1" href="#section-5.5.1">5.5.1</a>. Decrypt an Encrypted Session Key Using Public Parameters,</span>
<span class="h4"> a Private Key</span>
BFdecrypt takes three inputs: a public parameter block, a private key
block key, and a ciphertext parsed as (U', V', W'). The public
parameters used MUST be a valid set of public parameters as defined
by <a href="#section-5.1.2">Section 5.1.2</a>.
Algorithm 5.5.1 (BFdecrypt): decrypts an encrypted session key using
a private key.
Input:
o A private key point S_id of order q in E(F_p)
o A ciphertext triple (U, V, W) in E(F_p) x {0, ... , 255}^hashlen x
{0, ... , 255}*
o A set of public parameters (version, E, p, q, P, P_pub, hashfcn)
Output:
o A decrypted plaintext m, or an invalid ciphertext flag
<span class="grey">Boyen & Martin Informational [Page 37]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-38" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Method:
1. Let hashlen be the length of the output of the hash function
hashlen measured in octets
2. Let theta = Pairing(E, p ,q, U, S_id) by applying the modified
Tate pairing of Algorithm 4.5.1 (Pairing)
3. Let z = Canonical(p, k, 0, theta) using Algorithm 4.3.1
(Canonical), the result of which is a canonical string
representation of theta
4. Let w = hashfcn(z) using the hashfcn hashing algorithm, the result
of which is a hashlen-octet string
5. Let rho = w XOR V, the bit-wise XOR of w and V
6. Let m = HashBytes(|W|, rho, hashfcn) XOR W, which is the bit-wise
XOR of m with the first |W| octets of the pseudo-random bytes
produced by Algorithm 4.2.1 (HashBytes) with seed rho
7. Let t = hashfcn(m) using the hashfcn algorithm
8. Let l = HashToRange(rho || t, q, hashfcn) using Algorithm 4.1.1
(HashToRange) on the (2 * hashlen)-octet concatenation of rho and
t
9. Verify that U = [l]P:
(a) If this is the case, then the decrypted plaintext m is
returned
(b) Otherwise, the ciphertext is rejected and no plaintext is
returned
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. The Boneh-Boyen BB1 Cryptosystem</span>
This section describes the algorithms constituting the first of the
two Boneh-Boyen identity-based cryptosystems proposed in [<a href="#ref-BB1" title=""Efficient selective-ID secure identity based encryption without random oracles,"">BB1</a>]. The
description follows the practical implementation given in [<a href="#ref-BB1" title=""Efficient selective-ID secure identity based encryption without random oracles,"">BB1</a>].
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Setup</span>
<span class="h4"><a class="selflink" id="section-6.1.1" href="#section-6.1.1">6.1.1</a>. Generate a Master Secret and Public Parameters</span>
Algorithm 6.1.1 (BBsetup). Randomly selects a set of master secrets
and the associated public parameters.
<span class="grey">Boyen & Martin Informational [Page 38]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-39" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Input:
o An integer version number
o An integer security parameter n (MUST take values either 1024,
2048, 3072, 7680, or 15360)
Output:
o A set of public parameters
o A corresponding master secret
Method:
1. Depending on the version:
(a) If version = 2, then execute Algorithm 6.1.2 (BBsetup1)
<span class="h4"><a class="selflink" id="section-6.1.2" href="#section-6.1.2">6.1.2</a>. Type-1 Curve Implementation</span>
BBsetup1 takes a security parameter n as input. For type-1 curves, n
corresponds to the modulus bit-size believed [<a href="#ref-BF" title=""Identity-based encryption from the Weil pairing,"">BF</a>] of comparable
security in the classical Diffie-Hellman or RSA public-key
cryptosystems. For this implementation, n MUST be one of 1024, 2048,
3072, 7680 or 15360, which correspond to the equivalent bit security
levels of 80, 112, 128, 192 and 256 bits respectively.
Algorithm 6.1.2 (BBsetup1): randomly establishes a master secret and
public parameters for type-1 curves.
Input:
o A security parameter n, either 1024, 2048, 3072, 7680, or 15360
Output:
o A set of public parameters (version, k, E, p, q, P, P_1, P_2, P_3,
v, hashfcn)
o A corresponding triple of master secrets (alpha, beta, gamma)
Method:
1. Determine the subordinate security parameters n_p and n_q as
follows:
<span class="grey">Boyen & Martin Informational [Page 39]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-40" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
(a) If n = 1024, then let n_p = 512, n_q = 160, hashfcn =
1.3.14.3.2.26 (SHA-1 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>]
(b) If n = 2048, then let n_p = 1024, n_q = 224, hashfcn =
2.16.840.1.101.3.4.2.4 (SHA-224 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
(c) If n = 3072, then let n_p = 1536, n_q = 256, hashfcn =
2.16.840.1.101.3.4.2.1 (SHA-256 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
(d) If n = 7680, then let n_p = 3840, n_q = 384, hashfcn =
2.16.840.1.101.3.4.2.2 (SHA-384 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
(e) If n = 15360, then let n_p = 7680, n_q = 512, hashfcn =
2.16.840.1.101.3.4.2.3 (SHA-512 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>])
2. Construct the elliptic curve and its subgroup of interest as
follows:
(a) Select a random n_q-bit Solinas prime q
(b) Select a random integer r, such that p = 12 * r * q - 1 is an
n_p-bit prime
3. Select a point P of order q in E(F_p), as follows:
(a) Select a random point P' of coordinates (x', y') on the curve
E/F_p: y^2 = x^3 + 1 (mod p)
(b) Let P = [12 * r]P'
(c) If P = 0, then start over in step 3a
4. Determine the master secret and the public parameters as follows:
(a) Select three random integers alpha, beta, gamma, each of them
in the range 1 to q - 1
(b) Let P_1 = [alpha]P
(c) Let P_2 = [beta]P
(d) Let P_3 = [gamma]P
(e) Let v = Pairing(E, p, q, P_1, P_2), which is an element of the
extension field F_p^2 obtained using the modified Tate pairing
of Algorithm 4.5.1 (Pairing)
<span class="grey">Boyen & Martin Informational [Page 40]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-41" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
5. (version, E, p, q, P, P_1, P_2, P_3, v, hashfcn) are the public
parameters
6. (alpha, beta, gamma) constitute the master secret
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Public Key Derivation</span>
<span class="h4"><a class="selflink" id="section-6.2.1" href="#section-6.2.1">6.2.1</a>. Derive a Public Key from an Identity and Public Parameters</span>
Takes an identity string id and a set of public parameters and
returns an integer h_id. The public parameters used MUST be a valid
set of public parameters as defined by <a href="#section-6.1.2">Section 6.1.2</a>.
Algorithm 6.2.1 (BBderivePubl): derives the public key corresponding
to an identity string. The public parameters used MUST be a valid
set of public parameters as defined by <a href="#section-6.1.2">Section 6.1.2</a>.
Input:
o An identity string id
o A set of common public parameters (version, k, E, p, q, P, P_1,
P_2, P_3, v, hashfcn)
Output:
o An integer h_id modulo q
Method:
1. Let h_id = HashToRange(id, q, hashfcn), using Algorithm 4.1.1
(HashToRange)
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Private Key Extraction</span>
<span class="h4"><a class="selflink" id="section-6.3.1" href="#section-6.3.1">6.3.1</a>. Extract a Private Key from an Identity, Public Parameters and a</span>
<span class="h4"> Master Secret</span>
BBextractPriv takes an identity string id, a set of public
parameters, and corresponding master secrets, and it returns a
private key consisting of two points D_0 and D_1. The public
parameters used MUST be a valid set of public parameters as defined
by <a href="#section-6.1.2">Section 6.1.2</a>.
Algorithm 6.3.1 (BBextractPriv): extracts the private key
corresponding to an identity string.
<span class="grey">Boyen & Martin Informational [Page 41]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-42" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Input:
o An identity string id
o A set of public parameters (version, k, E, p, q, P, P_1, P_2, P_3,
v, hashfcn)
Output:
o A pair of points (D_0, D_1), each of which has order q in E(F_p)
Method:
1. Select a random integer r in the range 1 to q - 1
2. Calculate the point D_0 as follows:
(a) Let hid = HashToRange(id, q, hashfcn) using Algorithm 4.1.1
(HashToRange)
(b) Let y = alpha * beta + r * (alpha * h_id + gamma) in F_q
(c) Let D_0 = [y]P
3. Calculate the point D_1 as follows:
(a) Let D_1 = [r]P
4. The pair of points (D_0, D_1) constitutes the private key for id
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. Encryption</span>
<span class="h4"><a class="selflink" id="section-6.4.1" href="#section-6.4.1">6.4.1</a>. Encrypt a Session Key Using an Identity and Public Parameters</span>
BBencrypt takes three inputs: a set of public parameters, an identity
id, and a plaintext m. The plaintext MUST be a random session key.
The public parameters used MUST be a valid set of public parameters
as defined by <a href="#section-6.1.2">Section 6.1.2</a>.
Algorithm 6.4.1 (BBencrypt): encrypts a session key for an identity
string.
Input:
o A plaintext string m of size |m| octets
o A recipient identity string id
<span class="grey">Boyen & Martin Informational [Page 42]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-43" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
o A set of public parameters (version, k, E, p, q, P, P_1, P_2, P_3,
v, hashfcn)
Output:
o A ciphertext tuple (u, C_0, C_1, y) in F_q x E(F_p) x E(F_p) x
{0, ... , 255}^|m|
Method:
1. Select a random integer s in the range 1 to q - 1
2. Let w = v^s, which is v raised to the power of s in F_p^2, the
result is an element of order q in F_p^2
3. Calculate the point C_0 as follows:
(a) Let C_0 = [s]P
4. Calculate the point C_1 as follows:
(a) Let _hid = HashToRange(id, q, hashfcn) using Algorithm 4.1.1
(HashToRange)
(b) Let y = s * h_id in F_q
(c) Let C_1 = [y]P_1 + [s]P_3
5. Obtain canonical string representations of certain elements:
(a) Let psi = Canonical(p, k, 1, w) using Algorithm 4.3.1
(Canonical), the result of which is a canonical octet string
representation of w
(b) Let l = Ceiling(lg(p) / 8), the number of octets needed to
represent integers in F_p, and represent each of these F_p
elements as a big-endian zero-padded octet string of fixed
length l:
(x_0)_(256^l) to represent the x coordinate of C_0
(y_0)_(256^l) to represent the y coordinate of C_0
(x_1)_(256^l) to represent the x coordinate of C_1
(y_1)_(256^l) to represent the y coordinate of C_1
<span class="grey">Boyen & Martin Informational [Page 43]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-44" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
6. Encrypt the message m into the string y as follows:
(a) Compute an encryption key h_0 as a two-pass hash of w via its
representation psi:
i. Let zeta = hashfcn(psi) using the hashing algorithm
hashfcn
ii. Let xi = hashfcn(zeta || psi) using the hashing algorithm
hashfcn
iii. Let h' = xi || zeta, the concatenation of the previous
two hashfcn outputs
(b) Let y = HashBytes(|m|, h', hashfcn) XOR m, which is the
bit-wise XOR of m with the first |m| octets of the pseudo-
random bytes produced by Algorithm 4.2.1 (HashBytes) with seed
h'
7. Create the integrity check tag u as follows:
(a) Compute a one-time pad h'' as a dual-pass hash of the
representation of (w, C_0, C_1, y):
i. Let sigma = (y_1)_(256^l) || (x_1)_(256^l) ||
(y_0)_(256^l) || (x_0)_(256^l) || y || psi be the
concatenation of y and the five indicated strings in the
specified order
ii. Let eta = hashfcn(sigma) using the hashing algorithm
hashfcn
iii. Let mu = hashfcn(eta || sigma) using the hashfcn hashing
algorithm
iv. Let h'' = mu || eta, the concatenation of the previous
two outputs of hashfcn
(b) Build the tag u as the encryption of the integer s with the
one-time pad h'':
i. Let rho = HashToRange(h'', q, hashfcn) to get an integer in
Z_q
ii. Let u = s + rho (mod q)
8. The complete ciphertext is given by the quadruple (u, C_0, C_1, y)
<span class="grey">Boyen & Martin Informational [Page 44]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-45" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-6.5" href="#section-6.5">6.5</a>. Decryption</span>
<span class="h4"><a class="selflink" id="section-6.5.1" href="#section-6.5.1">6.5.1</a>. Decrypt Using Public Parameters and Private Key</span>
BBdecrypt takes three inputs: a set of public parameters (version, k,
E, p, q, P, P_1, P_2, P_3, v, hashfcn), a private key (D_0, D_1), and
a ciphertext (u, C_0, C_1, y). It outputs a message m, or signals an
error if the ciphertext is invalid for the given key. The public
parameters used MUST be a valid set of public parameters as defined
by <a href="#section-6.1.2">Section 6.1.2</a>.
Algorithm 6.5.1 (BBdecrypt): decrypts a ciphertext using public
parameters and a private key.
Input:
o A private key given as a pair of points (D_0, D_1) of order q in
E(F_p)
o A ciphertext quadruple (u, C_0, C_1, y) in Z_q x E(F_p) x E(F_p) x
{0, ... , 255}*
o A set of public parameters (version, k, E, p, q, P, P_1, P_2, P_3,
v, hashfcn)
Output:
o A decrypted plaintext m, or an invalid ciphertext flag
Method:
1. Let w = PairingRatio(E, p, q, C_0, D_0, C_1, D_1), which computes
the ratio of two Tate pairings (modified, for type-1 curves) as
specified in Algorithm 4.6.1 (PairingRatio)
2. Obtain canonical string representations of certain elements:
(a) Let psi = Canonical(p, k, 1, w) using Algorithm 4.3.1
(Canonical); the result is a canonical octet string
representation of w
(b) Let l = Ceiling(lg(p) / 8), the number of octets needed to
represent integers in F_p, and represent each of these F_p
elements as a big-endian zero-padded octet string of fixed
length l:
(x_0)_(256^l) to represent the x coordinate of C_0
<span class="grey">Boyen & Martin Informational [Page 45]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-46" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
(y_0)_(256^l) to represent the y coordinate of C_0
(x_1)_(256^l) to represent the x coordinate of C_1
(y_1)_(256^l) to represent the y coordinate of C_1
3. Decrypt the message m from the string y as follows:
(a) Compute the decryption key h' as a dual-pass hash of w via its
representation psi:
i. Let zeta = hashfcn(psi) using the hashing algorithm hashfcn
ii. Let xi = hashfcn(zeta || psi) using the hashing algorithm
hashfcn
iii. Let h' = xi || zeta, the concatenation of the previous two
hashfcn outputs
(b) Let m = HashBytes(|y|, h', hashfcn)_XOR y, which is the
bit-wise XOR of y with the first |y| octets of the pseudo-
random bytes produced by Algorithm 4.2.1 (HashBytes) with seed
h'
4. Obtain the integrity check tag u as follows:
(a) Recover the one-time pad h'' as a dual-pass hash of the
representation of (w, C_0, C_1, y):
i. Let sigma = (y_1)_(256^l) || (x_1)_(256^l) || (y_0)_(256^l)
|| (x_0)_(256^l) || y || psi be the concatenation of y and
the five indicated strings in the specified order
ii. Let eta = hashfcn(sigma) using the hashing algorithm hashfcn
iii. Let mu = hashfcn(eta || sigma) using the hashing algorithm
hashfcn
iv. Let h'' = mu || eta, the concatenation of the previous two
hashfcn outputs
(b) Unblind the encryption randomization integer s from the tag u
using h'':
i. Let rho = HashToRange(h'', q, hashfcn) to get an integer in
Z_q
ii. Let s = u - rho (mod q)
<span class="grey">Boyen & Martin Informational [Page 46]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-47" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
5. Verify the ciphertext consistency according to the decrypted
values:
(a) Test whether the equality w = v^s holds
(b) Test whether the equality C_0 = [s]P holds
6. Adjudication and final output:
(a) If either of the tests performed in step 5 fails, the
ciphertext is rejected, and no decryption is output
(b) Otherwise, i.e., when both tests performed in step 5 succeed,
the decrypted message is the output
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Test Data</span>
The following data can be used to verify the correct operation of
selected algorithms that are defined in this document.
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. Algorithm 3.2.2 (PointMultiply)</span>
Input:
q = 0xfffffffffffffffffffffffffffbffff
p = 0xbffffffffffffffffffffffffffcffff3
E/F_p: y^2 = x^3 + 1
A = (0x489a03c58dcf7fcfc97e99ffef0bb4634,
0x510c6972d795ec0c2b081b81de767f808)
l = 0xb8bbbc0089098f2769b32373ade8f0daf
Output:
[l]A = (0x073734b32a882cc97956b9f7e54a2d326,
0x9c4b891aab199741a44a5b6b632b949f7)
<span class="grey">Boyen & Martin Informational [Page 47]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-48" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. Algorithm 4.1.1 (HashToRange)</span>
Input:
s =
54:68:69:73:20:41:53:43:49:49:20:73:74:72:69:6e:67:20:77:69:74
:68:6f:75:74:20:6e:75:6c:6c:2d:74:65:72:6d:69:6e:61:74:6f:72
("This ASCII string without null-terminator")
n = 0xffffffffffffffffffffefffffffffffffffffff
hashfcn = 1.3.14.3.2.16 (SHA-1)
Output:
v = 0x79317c1610c1fc018e9c53d89d59c108cd518608
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a>. Algorithm 4.5.1 (Pairing)</span>
Input:
q = 0xfffffffffffffffffffffffffffbffff
p = 0xbffffffffffffffffffffffffffcffff3
E/F_p: y^2 = x^3 + 1
A = (0x489a03c58dcf7fcfc97e99ffef0bb4634,
0x510c6972d795ec0c2b081b81de767f808)
B = (0x40e98b9382e0b1fa6747dcb1655f54f75,
0xb497a6a02e7611511d0db2ff133b32a3f)
Output:
e'(A, B) = (0x8b2cac13cbd422658f9e5757b85493818,
0xbc6af59f54d0a5d83c8efd8f5214fad3c)
<span class="grey">Boyen & Martin Informational [Page 48]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-49" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-7.4" href="#section-7.4">7.4</a>. Algorithm 5.2.1 (BFderivePubl)</span>
Input:
id = 6f:42:62 ("Bob")
version = 2
p = 0xa6a0ffd016103ffffffffff595f002fe9ef195f002fe9efb
q = 0xffffffffffffffffffffffeffffffffffff
P = (0x6924c354256acf5a0ff7f61be4f0495b54540a5bf6395b3d,
0x024fd8e2eb7c09104bca116f41c035219955237c0eac19ab)
P_pub = (0xa68412ae960d1392701066664d20b2f4a76d6ee715621108,
0x9e7644e75c9a131d075752e143e3f0435ff231b6745a486f)
Output:
Q_id = (0x22fa1207e0d19e1a4825009e0e88e35eb57ba79391498f59,
0x982d29acf942127e0f01c881b5ec1b5fe23d05269f538836)
<span class="h3"><a class="selflink" id="section-7.5" href="#section-7.5">7.5</a>. Algorithm 5.3.1 (BFextractPriv)</span>
Input:
s = 0x749e52ddb807e0220054417e514742b05a0
version = 2
p = 0xa6a0ffd016103ffffffffff595f002fe9ef195f002fe9efb
q = 0xffffffffffffffffffffffeffffffffffff
P = (0x6924c354256acf5a0ff7f61be4f0495b54540a5bf6395b3d,
0x024fd8e2eb7c09104bca116f41c035219955237c0eac19ab)
P_pub = (0xa68412ae960d1392701066664d20b2f4a76d6ee715621108,
0x9e7644e75c9a131d075752e143e3f0435ff231b6745a486f)
Output:
Q_id = (0x8212b74ea75c841a9d1accc914ca140f4032d191b5ce5501,
0x950643d940aba68099bdcb40082532b6130c88d317958657)
<span class="grey">Boyen & Martin Informational [Page 49]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-50" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-7.6" href="#section-7.6">7.6</a>. Algorithm 5.4.1 (BFencrypt)</span>
Note: the following values can also be used to test
Algorithm 5.5.1 (BFdecrypt).
Input:
m = 48:69:20:74:68:65:72:65:21 ("Hi there!")
id = 6f:42:62 ("Bob")
version = 2
p = 0xa6a0ffd016103ffffffffff595f002fe9ef195f002fe9efb
q = 0xffffffffffffffffffffffeffffffffffff
P = (0x6924c354256acf5a0ff7f61be4f0495b54540a5bf6395b3d,
0x024fd8e2eb7c09104bca116f41c035219955237c0eac19ab)
P_pub = (0xa68412ae960d1392701066664d20b2f4a76d6ee715621108,
0x9e7644e75c9a131d075752e143e3f0435ff231b6745a486f)
Output:
Using the random value rho =
0xed5397ff77b567ba5ecb644d7671d6b6f2082968, we get the
following output:
U =
(0x1b5f6c461497acdfcbb6d6613ad515430c8b3fa23b61c585e9a541b199e
2a6cb,
0x9bdfbed1ae664e51e3d4533359d733ac9a600b61048a7d899104e826a0ec
4fa4)
V =
e0:1d:ad:81:32:6c:b1:73:af:c2:8d:72:2e:7a:32:1a:7b:29:8a:aa
W = f9:04:ba:40:30:e9:ce:6e:ff
<span class="grey">Boyen & Martin Informational [Page 50]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-51" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-7.7" href="#section-7.7">7.7</a>. Algorithm 6.3.1 (BBextractPriv)</span>
Input:
alpha = 0xa60c395285ded4d70202c8283d894bad4f0
beta = 0x48bf012da19f170b13124e5301561f45053
gamma = 0x226fba82bc38e2ce4e28e56472ccf94a499
version = 2
p = 0x91bbe2be1c8950750784befffffffffffff6e441d41e12fb
q = 0xfffffffffbfffffffffffffffffffffffff
P = (0x13cc538fe950411218d7f5c17ae58a15e58f0877b29f2fe1,
0x8cf7bab1a748d323cc601fabd8b479f54a60be11e28e18cf)
P_1 = (0x0f809a992ed2467a138d72bc1d8931c6ccdd781bedc74627,
0x11c933027beaaf73aa9022db366374b1c68d6bf7d7a888c2)
P_2 = (0x0f8ac99a55e575bf595308cfea13edb8ec673983919121b0,
0x3febb7c6369f5d5f18ee3ea6ca0181448a4f3c4f3385019c)
P_3 = (0x2c10b43991052e78fac44fdce639c45824f5a3a2550b2a45,
0x6d7c12d8a0681426a5bbc369c9ef54624356e2f6036a064f)
v = (0x38f91032de6847a89fc3c83e663ed0c21c8f30ce65c0d7d3,
0x44b9aa10849cc8d8987ef2421770a340056745da8b99fba2)
id = 6f:42:62 ("Bob")
Output:
Using the random value r =
0x695024c25812112187162c08aa5f65c7a2c, we get the following
output:
D_0 = (0x3264e13feeb7c506493888132964e79ad657a952334b9e53,
0x3eeaefc14ba1277a1cd6fdea83c7c882fe6d85d957055c7b)
D_1 = (0x8d7a72ad06909bb3bb29b67676d935018183a905e7e8cb18,
0x2b346c6801c1db638f270af915a21054f16044ab67f6c40e)
<span class="grey">Boyen & Martin Informational [Page 51]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-52" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h3"><a class="selflink" id="section-7.8" href="#section-7.8">7.8</a>. Algorithm 6.4.1 (BBencrypt)</span>
Note: the following values can also be used to test
Algorithm 5.5.1 (BFdecrypt).
Input:
m = 48:69:20:74:68:65:72:65:21 ("Hi there!")
id = 6f:42:62 ("Bob")
version = 2
E: y^2 = x^3 + 1
p = 0x91bbe2be1c8950750784befffffffffffff6e441d41e12fb
q = 0xfffffffffbfffffffffffffffffffffffff
P = (0x13cc538fe950411218d7f5c17ae58a15e58f0877b29f2fe1,
0x8cf7bab1a748d323cc601fabd8b479f54a60be11e28e18cf)
P_1 = (0x0f809a992ed2467a138d72bc1d8931c6ccdd781bedc74627,
0x11c933027beaaf73aa9022db366374b1c68d6bf7d7a888c2)
P_2 = (0x0f8ac99a55e575bf595308cfea13edb8ec673983919121b0,
0x3febb7c6369f5d5f18ee3ea6ca0181448a4f3c4f3385019c)
P_3 = (0x2c10b43991052e78fac44fdce639c45824f5a3a2550b2a45,
0x6d7c12d8a0681426a5bbc369c9ef54624356e2f6036a064f)
v = (0x38f91032de6847a89fc3c83e663ed0c21c8f30ce65c0d7d3,
0x44b9aa10849cc8d8987ef2421770a340056745da8b99fba2)
hashfcn = 1.3.14.3.2.26 (SHA-1)
Output:
Using the random value s =
0x62759e95ce1af248040e220263fb41b965e, we get the following
output:
u = 0xad1ebfa82edf0bcb5111e9dc08ff0737c68
C_0 = (0x79f8f35904579f1aaf51897b1e8f1d84e1c927b8994e81f9,
0x1cf77bb2516606681aba2e2dc14764aa1b55a45836014c62)
<span class="grey">Boyen & Martin Informational [Page 52]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-53" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
C_1 = (0x410cfeb0bccf1fa4afc607316c8b12fe464097b20250d684,
0x8bb76e7195a7b1980531b0a5852ce710cab5d288b2404e90)
y = 82:a6:42:b9:bb:e9:82:c4:57
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. ASN.1 Module</span>
This section defines the ASN.1 module for the encodings discussed in
this document.
IBCS { joint-iso-itu-t(2) country(16) us(840) organization(1)
identicrypt(114334) ibcs(1) module(5) version(1) }
DEFINITIONS IMPLICIT TAGS ::= BEGIN
--
-- Identity-based cryptography standards (IBCS):
-- supersingular curve implementations of
-- the BF and BB1 cryptosystems
--
-- This version only supports IBE using
-- type-1 curves, i.e., the curve y^2 = x^3 + 1.
--
ibcs OBJECT IDENTIFIER ::= {
joint-iso-itu-t(2) country(16) us(840) organization(1)
identicrypt(114334) ibcs(1)
}
--
-- IBCS1
--
-- IBCS1 defines the algorithms used to implement IBE
--
ibcs1 OBJECT IDENTIFIER ::= {
ibcs ibcs1(1)
}
--
-- An elliptic curve is specified by an OID.
-- A type1curve is defined by the equation y^2 = x^3 + 1.
--
type1curve OBJECT IDENTIFIER ::= {
ibcs1 curve-types(1) type1-curve(1)
}
<span class="grey">Boyen & Martin Informational [Page 53]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-54" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
--
-- Supporting types
--
--
-- Encoding of a point on an elliptic curve E/F_p
-- An FpPoint can either represent an element of
-- F_p^2 or an element of (F_p)^2.
FpPoint ::= SEQUENCE {
x INTEGER,
y INTEGER
}
--
-- The following hash functions are supported:
--
-- SHA-1
--
-- id-sha1 OBJECT IDENTIFIER ::= {
-- iso(1) identified-organization(3) oiw(14)
-- secsig(3) algorithms(2) hashAlgorithmIdentifier(26)
-- }
--
-- SHA-224
--
-- id-sha224 OBJECT IDENTIFIER ::= {
-- joint-iso-itu-t(2)country(16) us(840)
-- organization(1) gov(101)
-- csor(3) nistAlgorithm(4) hashAlgs(2) sha224(4)
-- }
--
-- SHA-256
--
-- id-sha256 OBJECT IDENTIFIER ::= {
-- joint-iso-itu-t(2)country(16) us(840)
-- organization(1) gov(101)
-- csor(3) nistAlgorithm(4) hashAlgs(2) sha256(1)
-- }
--
-- SHA-384
--
-- id-sha384 OBJECT IDENTIFIER ::= {
-- joint-iso-itu-t(2)country(16) us(840)
-- organization(1) gov(101)
-- csor(3) nistAlgorithm(4) hashAlgs(2) sha384(2)
-- }
--
<span class="grey">Boyen & Martin Informational [Page 54]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-55" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
-- SHA-512
--
-- id-sha512 OBJECT IDENTIFIER ::= {
-- joint-iso-itu-t(2) country(16) us(840)
-- organization(1) gov(101)
-- csor(3) nistAlgorithm(4) hashAlgs(2) sha512(3)
-- }
--
--
-- Algorithms
--
ibe-algorithms OBJECT IDENTIFIER ::= {
ibcs1 ibe-algorithms(2)
}
---
--- Boneh-Franklin IBE
---
bf OBJECT IDENTIFIER ::= { ibe-algorithms bf(1) }
--
-- Encoding of a BF public parameters block.
-- The only version currently supported is version 2.
-- The values p and q define a subgroup of E(F_p) of order q.
--
BFPublicParameters ::= SEQUENCE {
version INTEGER { v2(2) },
curve OBJECT IDENTIFIER,
p INTEGER,
q INTEGER,
pointP FpPoint,
pointPpub FpPoint,
hashfcn OBJECT IDENTIFIER
}
--
-- A BF private key is a point on an elliptic curve,
-- which is an FpPoint.
-- The only version supported is version 2.
--
BFPrivateKeyBlock ::= SEQUENCE {
version INTEGER { v2(2) },
privateKey FpPoint
}
<span class="grey">Boyen & Martin Informational [Page 55]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-56" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
--
-- A BF master secret is an integer.
-- The only version supported is version 2.
--
BFMasterSecret ::= SEQUENCE {
version INTEGER {v2(2) },
masterSecret INTEGER
}
--
-- BF ciphertext block
-- The only version supported is version 2.
--
BFCiphertextBlock ::= SEQUENCE {
version INTEGER { v2(2) },
u FpPoint,
v OCTET STRING,
w OCTET STRING
}
--
-- Boneh-Boyen (BB1) IBE
--
bb1 OBJECT IDENTIFIER ::= { ibe-algorithms bb1(2) }
--
-- Encoding of a BB1 public parameters block.
-- The version is currently fixed to 2.
--
--
BB1PublicParameters ::= SEQUENCE {
version INTEGER { v2(2) },
curve OBJECT IDENTIFIER,
p INTEGER,
q INTEGER,
pointP FpPoint,
pointP1 FpPoint,
pointP2 FpPoint,
pointP3 FpPoint,
v FpPoint,
hashfcn OBJECT IDENTIFIER
}
<span class="grey">Boyen & Martin Informational [Page 56]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-57" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
--
-- BB1 master secret block
-- The only version supported is version 2.
--
BB1MasterSecret ::= SEQUENCE {
version INTEGER { v2(2) },
alpha INTEGER,
beta INTEGER,
gamma INTEGER
}
--
-- BB1 private Key block
-- The only version supported is version 2.
--
BB1PrivateKeyBlock ::= SEQUENCE {
version INTEGER { v2(2) },
pointD0 FpPoint,
pointD1 FpPoint
}
--
-- BB1 ciphertext block
-- The only version supported is version 2.
--
BB1CiphertextBlock ::= SEQUENCE {
version INTEGER {v2(2) },
pointChi0 FpPoint,
pointChi1 FpPoint,
nu INTEGER,
y OCTET STRING
}
END
<span class="grey">Boyen & Martin Informational [Page 57]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-58" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Security Considerations</span>
This document describes cryptographic algorithms. We assume that the
security provided by such algorithms depends entirely on the secrecy
of the relevant private key, and for an adversary to defeat the
security provided by the algorithms, he will need to perform
computationally-intensive cryptanalytic attacks to recover the
private key.
We assume that users of the algorithms described in this document
will require one of five levels of cryptographic strength: the
equivalent of 80 bits, 112 bits, 128 bits, 192 bits or, 256 bits.
The 80-bit level is suitable for legacy applications and SHOULD NOT
be used to protect information whose useful life extends past the
year 2010. The 112-bit level is suitable for use in key transport of
Triple-DES keys and should be adequate to protect information whose
useful life extends up to the year 2030. The 128-bit levels and
higher are suitable for use in the transport of Advanced Encryption
Standard (AES) keys of the corresponding length or less and are
adequate to protect information whose useful life extends past the
year 2030.
Table 1 summarizes the security parameters for the BF and BB1
algorithms that will attain these levels of security. In this table,
|p| represents the number of bits in a prime number p, and |q|
represents the number of bits in a subprime q. This table assumes
that a Type-1 supersingular curve is used.
Bits of Security |p| |q|
80 512 160
112 1024 224
128 1536 256
192 3840 384
256 7680 512
Table 1: Sizes of BF and BB1 Parameters Required to Attain Standard
Levels of Bit Security [<a href="#ref-SP800-57" title=""Recommendation for Key Management - Part 1: General (Revised),"">SP800-57</a>].
If an IBE key is used to transport a symmetric key that provides more
bits of security than the bit strength of the IBE key, users should
understand that the security of the system is then limited by the
strength of the weaker IBE key. So if an IBE key that provides 112
bits of security is used to transport a 128-bit AES key, then the
security provided is limited by the 112 bits of security of the IBE
key.
<span class="grey">Boyen & Martin Informational [Page 58]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-59" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Note that this document specifies the use of the National Institute
of Standards and Technology (NIST) hashing algorithms [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>] to hash
identities to either a point on an elliptic curve or an integer.
Recent attacks on SHA-1 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>] have discovered ways to find collisions
with less work than the expected 2^80 hashes required based on the
size of the output of the hash function alone. If an attacker can
find a collision, then they could use the colliding preimages to
create two identities that have the same IBE private key. The
practical use of such a SHA-1 [<a href="#ref-SHA" title=""Secure Hash Standard,"">SHA</a>] collision is extremely unlikely,
however.
Identities are typically not random strings like the preimages of a
hash collision would be. In particular, this is true if IBE is used
as described in [<a href="#ref-IBECMS" title=""Using the Boneh-Franklin and Boneh-Boyen identity-based encryption algorithms with the Cryptographic Message Syntax (CMS)"">IBECMS</a>], in which components of an identity are
defined to be an e-mail address, a validity period, and a URI. In
this case, the unpredictable results of a collision are extremely
unlikely to fit the format of a valid identity, and thus, are of no
use to an attacker. Any protocol using IBE MUST define an identity
in a way that makes collisions in a hash function essentially useless
to an attacker. Because random strings are rarely used as
identities, this requirement should not be unduly difficult to
fulfill.
The randomness of the random values that are required by the
cryptographic algorithms is vital to the security provided by the
algorithms. Any implementation of these algorithms MUST use a source
of random values that provides an adequate level of security.
Appropriate algorithms to generate such values include [<a href="#ref-FIPS186-2" title=""Digital Signature Standard,"">FIPS186-2</a>]
and [<a href="#ref-X9.62" title=""Public Key Cryptography for the Financial Services Industry: The Elliptic Curve Digital Signature Algorithm (ECDSA),"">X9.62</a>]. This will ensure that the random values used to mask
plaintext messages in Sections <a href="#section-5.4">5.4</a> and <a href="#section-6.4">6.4</a> are not reused with a
significant probability.
The strength of a system using the algorithms described in this
document relies on the strength of the mechanism used to authenticate
a user requesting a private key from a PKG, as described in step 2 of
<a href="#section-1.2">Section 1.2</a> of this document. This is analogous to the way in which
the strength of a system using digital certificates [<a href="#ref-X.509">X.509</a>] is
limited by the strength of the authentication required of users
before certificates are granted to them. In either case, a weak
mechanism for authenticating users will result in a weak system that
relies on the technology. A system that uses the algorithms
described in this document MUST require users to authenticate in a
way that is suitably strong, particularly if IBE private keys will be
used for authentication.
Note that IBE systems have different properties than other asymmetric
cryptographic schemes when it comes to key recovery. If a master
secret is maintained on a secure PKG, then the PKG and any
<span class="grey">Boyen & Martin Informational [Page 59]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-60" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
administrator with the appropriate level of access will be able to
create arbitrary private keys, so that controls around such
administrators and logging of all actions performed by such
administrators SHOULD be part of a functioning IBE system.
On the other hand, it is also possible to create IBE private keys
using a master secret and to then destroy the master secret, making
any key recovery impossible. If this property is not desired, an
administrator of an IBE system SHOULD require that the format of the
identity used by the system contain a component that is short-lived.
The format of identity that is defined in [<a href="#ref-IBECMS" title=""Using the Boneh-Franklin and Boneh-Boyen identity-based encryption algorithms with the Cryptographic Message Syntax (CMS)"">IBECMS</a>], for example,
contains information about the time period of validity of the key
that will be calculated from the identity. Such an identity can
easily be changed to allow the rekeying of users if their IBE private
key is somehow compromised.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Acknowledgments</span>
This document is based on the IBCS #1 v2 document of Voltage
Security, Inc. Any substantial use of material from this document
should acknowledge Voltage Security, Inc. as the source of the
information.
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. References</span>
<span class="h3"><a class="selflink" id="section-11.1" href="#section-11.1">11.1</a>. Normative References</span>
[<a id="ref-KEYWORDS">KEYWORDS</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-TLS">TLS</a>] Dierks, T. and E. Rescorla, "The Transport Layer
Security (TLS) Protocol Version 1.1", <a href="./rfc4346">RFC 4346</a>, April
2006.
<span class="h3"><a class="selflink" id="section-11.2" href="#section-11.2">11.2</a>. Informative References</span>
[<a id="ref-BB1">BB1</a>] D. Boneh and X. Boyen, "Efficient selective-ID secure
identity based encryption without random oracles," In
Proc. of EUROCRYPT 04, LNCS 3027, pp. 223-238, 2004.
[<a id="ref-BF">BF</a>] D. Boneh and M. Franklin, "Identity-based encryption
from the Weil pairing," in Proc. of CRYPTO 01, LNCS
2139, pp. 213-229, 2001.
[<a id="ref-CMS">CMS</a>] Housley, R., "Cryptographic Message Syntax (CMS)", <a href="./rfc3852">RFC</a>
<a href="./rfc3852">3852</a>, July 2004.
<span class="grey">Boyen & Martin Informational [Page 60]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-61" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
[<a id="ref-ECC">ECC</a>] I. Blake, G. Seroussi, and N. Smart, "Elliptic Curves in
Cryptography", Cambridge University Press, 1999.
[<a id="ref-FIPS186-2">FIPS186-2</a>] National Institute of Standards and Technology, "Digital
Signature Standard," Federal Information Processing
Standard 186-2, August 2002.
[<a id="ref-IBEARCH">IBEARCH</a>] G. Appenzeller, L. Martin, and M. Schertler, "Identity-
based Encryption Architecture", Work in Progress.
[<a id="ref-IBECMS">IBECMS</a>] L. Martin and M. Schertler, "Using the Boneh-Franklin
and Boneh-Boyen identity-based encryption algorithms
with the Cryptographic Message Syntax (CMS)", Work in
Progress.
[<a id="ref-MERKLE">MERKLE</a>] R. Merkle, "A fast software one-way hash function,"
Journal of Cryptology, Vol. 3 (1990), pp. 43-58.
[<a id="ref-P1363">P1363</a>] IEEE P1363-2000, "Standard Specifications for Public Key
Cryptography," 2001.
[<a id="ref-SP800-57">SP800-57</a>] E. Barker, W. Barker, W. Burr, W. Polk and M. Smid,
"Recommendation for Key Management - Part 1: General
(Revised)," NIST Special Publication 800-57, March 2007.
[<a id="ref-SHA">SHA</a>] National Institute for Standards and Technology, "Secure
Hash Standard," Federal Information Processing Standards
Publication 180-2, August 2002, with Change Notice 1,
February 2004.
[<a id="ref-X9.62">X9.62</a>] American National Standards Institute, "Public Key
Cryptography for the Financial Services Industry: The
Elliptic Curve Digital Signature Algorithm (ECDSA),"
American National Standard for Financial Services
X9.62-2005, November 2005.
[<a id="ref-X.509">X.509</a>] ITU-T Recommendation X.509 (2000) | ISO/IEC 9594-8:2001,
Information Technology - Open Systems Interconnection -
The Directory: Public-key and Attribute Certificate
Frameworks.
<span class="grey">Boyen & Martin Informational [Page 61]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-62" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Authors' Addresses
Xavier Boyen
Voltage Security
1070 Arastradero Rd Suite 100
Palo Alto, CA 94304
EMail: xavier@voltage.com
Luther Martin
Voltage Security
1070 Arastradero Rd Suite 100
Palo Alto, CA 94304
EMail: martin@voltage.com
<span class="grey">Boyen & Martin Informational [Page 62]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-63" ></span>
<span class="grey"><a href="./rfc5091">RFC 5091</a> IBCS #1 December 2007</span>
Full Copyright Statement
Copyright (C) The IETF Trust (2007).
This document is subject to the rights, licenses and restrictions
contained in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and at www.rfc-editor.org/copyright.html, and
except as set forth therein, the authors retain all their rights.
This document and the information contained herein are provided on an
"AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND
THE INTERNET ENGINEERING TASK FORCE DISCLAIM 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.
Intellectual Property
The IETF takes no position regarding the validity or scope of any
Intellectual Property Rights or other rights that might be claimed to
pertain to the implementation or use of the technology described in
this document or the extent to which any license under such rights
might or might not be available; nor does it represent that it has
made any independent effort to identify any such rights. Information
on the procedures with respect to rights in RFC documents can be
found in <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and <a href="https://www.rfc-editor.org/bcp/bcp79">BCP 79</a>.
Copies of IPR disclosures made to the IETF Secretariat and any
assurances of licenses to be made available, or the result of an
attempt made to obtain a general license or permission for the use of
such proprietary rights by implementers or users of this
specification can be obtained from the IETF on-line IPR repository at
<a href="http://www.ietf.org/ipr">http://www.ietf.org/ipr</a>.
The IETF invites any interested party to bring to its attention any
copyrights, patents or patent applications, or other proprietary
rights that may cover technology that may be required to implement
this standard. Please address the information to the IETF at
ietf-ipr@ietf.org.
Boyen & Martin Informational [Page 63]
</pre>
|