Share to: share facebook share twitter share wa share telegram print page

Giải thuật ký số

Giải thuật ký số

Giải thuật ký số (Digital Signature Algorithm, viết tắt DSA) là chuẩn của chính phủ Mỹ hoặc FIPS cho các chữ ký số. Giải thuật này được đề nghị bởi Viện các tiêu chuẩn và công nghệ quốc gia (NIST) vào tháng 8/1991 để sử dụng trong chuẩn chữ ký số (DSS), được chỉ ra trong FIPS 186 [1], được chấp nhận năm 1993. Một sửa đổi nhỏ được đưa ra năm 1996 trong FIPS 186-1 [2], chuẩn được mở rộng hơn năm 2000, được xem như FIPS 186-2 [3][liên kết hỏng]

Tạo khoá

  • Chọn số nguyên tố 160 bit q.
  • Chọn một số nguyên tố L bit p, sao cho p=qz+1 với số nguyên z nào đó, 512 ≤ L ≤ 1024, L chia hết cho 64.

Chú ý: Trong FIPS-186-2 Lưu trữ 2009-05-18 tại Wayback Machine, giả sử L luôn bằng 1024.

  • Chọn h, với 1 < h < p - 1 sao cho g = hz mod p > 1. (z = (p-1) / q.)
  • Chọn x ngẫu nhiên, thoả mãn 0 < x < q.
  • Tính giá trị y = gx mod p.
  • Khoá công khai là (p, q, g, y). Khoá riêng là x.

Chú ý (p, q, g) có thể dùng chung bởi nhiều người dùng trong hệ thống, nếu muốn. FIPS 186-3 sử dụng SHA-224/256/384/512 như hàm băm, q với kích thước 224, 256, 384, và 512 bit, L nhận giá trị 2048, 3072, 7680, và 15360 tương ứng. Có các giải thuật hiệu quả để tính toán các biểu thức mũ và lấy phần dư khi chia cho số nguyên tố lớn hz mod p và gx mod p.

Hầu hết các số h đều thoả mãn yêu cầu, vì vậy giá trị 2 thông thường được sử dụng.

  • Tạo một số ngẫu nhiên với mỗi thông điệp, giá trị k thỏa mãn 0 < k < q
  • Tính r = (gk mod p) mod q
  • Tính s = (k−1(SHA-1(m) + x*r)) mod q, ở đây SHA-1(m) là hàm băm mã hoá SHA-1 áp dụng cho thông điệp m
  • Tính toán lại chữ ký trong trường hợp không chắc chắn khi r=0 hoặc s=0
  • Chữ ký là (r,s)

Giải thuật Euclid mở rộng có thể được sử dụng để tính toán biểu thức k−1 mod q.

Xác nhận

  • Loại bỏ chữ ký nếu hoặc 0< r <q hoặc 0< s <q không thỏa mãn.
  • Tính w = (s)−1 mod q
  • Tính u1 = (SHA-1(m)*w) mod q
  • Tính u2 = (r*w) mod q
  • Tính v = ((gu1*yu2) mod p) mod q
  • Chữ ký là có hiệu lực nếu v = r

DSA tương tự với Lược đồ ký số ElGamal.

Sự đúng đắn của giải thuật

Lược đồ ký số là đúng đắn có ý nghĩa khi người xác nhận luôn chấp nhận các chữ ký thật. Điều này có thể được chỉ ra như sau:

Từ g = hz mod p suy ra gqhqzhp-1 ≡ 1 (mod p) bởi định lý Fermat nhỏ. Bởi vì g>1 và q là số nguyên tố suy ra g có bậc q.

Người ký tính

Như vậy

Bởi vì g có bậc q chúng ta có

Cuối cùng, tính đúng đắn của DSA suy ra từ

Xem thêm

Tham khảo

Liên kết ngoài

Read other articles:

Lambang Babar Purnomo (meninggal 9 Februari 2008) adalah seorang arkeolog dan aktivis perlindungan benda cagar budaya di Indonesia. Ia pernah menjabat sebagai Ketua Kelompok Kerja Perlindungan di Balai Pelestarian Peninggalan Purbakala Jawa Tengah. Salah satu kasus yang ia tangani adalah kasus pencurian arca-arca purbakala koleksi Museum Radya Pustaka, Surakarta. Pada 9 Februari 2008 subuh hari, ia ditemukan tewas di selokan jalan lingkar luar utara Yogyakarta.[1] Ia diduga dibunuh ketik…

Эта статья — о научной дисциплине. О процессе развития человеческого общества см. Всемирная история. У этого термина существуют и другие значения, см. История (значения). Запрос «историк» перенаправляется сюда; см. также другие значения. Николаос Гизис. «Аллег

Count of Luxembourg (as Henry II) from 1026 and duke of Bavaria from 1042 until his death Seal of Henry VII Henry VII (died 16 October 1047) was the count of Luxembourg (as Henry II) from 1026 and duke of Bavaria[1][2] from 1042 until his death. He was a son of Frederick of Luxembourg, count of Moselgau, and possibly Ermentrude of Gleiberg. In 1026, he inherited Luxembourg from his uncle Henry I. This included the advocacy of the abbeys of Saint-Maximin in Trier and Saint-Willibr…

Species of flowering plant Common guava Common guava (Psidium guajava) fruit Conservation status Least Concern (IUCN 3.1)[1] Scientific classification Kingdom: Plantae Clade: Tracheophytes Clade: Angiosperms Clade: Eudicots Clade: Rosids Order: Myrtales Family: Myrtaceae Genus: Psidium Species: P. guajava Binomial name Psidium guajavaL. Honey bee on a Psidium guajava flower. Flower buds and leaf buds are also visible. Common guava seedling, 14 months Psidium guajava, the common…

artikel ini perlu dirapikan agar memenuhi standar Wikipedia. Tidak ada alasan yang diberikan. Silakan kembangkan artikel ini semampu Anda. Merapikan artikel dapat dilakukan dengan wikifikasi atau membagi artikel ke paragraf-paragraf. Jika sudah dirapikan, silakan hapus templat ini. (Pelajari cara dan kapan saatnya untuk menghapus pesan templat ini) Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujuka…

U.S. state This article is about the U.S. state. For other uses, see Oregon (disambiguation). State in the United StatesOregonState FlagSealNickname: The Beaver StateMotto(s): Alis volat propriis(English: She flies with her own wings)Anthem: Oregon, My OregonMap of the United States with Oregon highlightedCountryUnited StatesBefore statehoodOregon TerritoryAdmitted to the UnionFebruary 14, 1859; 164 years ago (1859-02-14) (33rd)CapitalSalemLargest cityPortlandLargest …

Levantamento de peso nosJogos Pan-Americanos de 2023 Santiago, Chile Dados Sede Ginásio Chimkowe, Peñalolén Data 21–24 de outubro de 2023 Eventos 10 Participantes 137 de 26 CONs Medalhistas Ouro COL Colômbia (3 medalhas) ver a lista completa... Prata COL Colômbia (3 medalhas) ver a lista completa... Bronze DOM República Dominicana (2 medalhas)VEN Venezuela (2 medalhas) ver a lista completa... ←  2019 2027  → Levantamento de peso nosJogos Pan-Americanos de 2023 Mascu…

هذه المقالة بحاجة لصندوق معلومات. فضلًا ساعد في تحسين هذه المقالة بإضافة صندوق معلومات مخصص إليها.   لمعانٍ أخرى، طالع زئير (توضيح). هذه المقالة تحتاج للمزيد من الوصلات للمقالات الأخرى للمساعدة في ترابط مقالات الموسوعة. فضلًا ساعد في تحسين هذه المقالة بإضافة وصلات إلى ا

泰坦尼克号纪念像美国国家史迹名录 泰坦尼克号纪念像 地点华盛顿哥伦比亚特区西南区4街与P街最近城市华盛顿哥伦比亚特区坐标38°52′19″N 77°01′09.5″W / 38.87194°N 77.019306°W / 38.87194; -77.019306坐标:38°52′19″N 77°01′09.5″W / 38.87194°N 77.019306°W / 38.87194; -77.019306建于1931建筑师格特魯德·範德比爾特·惠特尼(英语:Gertrude Vanderbilt Whitney)与

Mantis Personaje de Marvel Comics Primera aparición The Avengers #112(Junio 1973)Guardianes de la galaxia vol. 2 (5 de mayo de 2017)Creado por Steve EnglehartDon HeckInterpretado por Pom Klementieff (2017-2023)Información personalEstatus actual ActivaNombre de nacimiento Mantis BrandtAlias La Madonna Celestial, Brandt, VichaNacionalidad Vietnam VietnamSexo femeninoFamilia y relacionesPareja(s) El Espadachín (esposo), Silver SurferOtros familiares Ego el Planeta Viviente (padre, fallecido…

Representative in Quebec of the Canadian monarch This article is about the representative of the monarch in Quebec. For the political advisor to a federal party leader on Quebec issues, see Quebec lieutenant. Lieutenant Governor of QuebecLieutenant-gouverneur du QuébecCoat of arms of QuebecStandard of the lieutenant governorIncumbentJ. Michel Doyonsince September 24, 2015Office of the Lieutenant Governor of QuebecStyleHis Honour the HonourableAppointerGovernor General of Canada on the advi…

No debe confundirse con Equipo Mixto, Participantes Olímpicos Independientes o Equipo Olímpico de Atletas Refugiados. Equipo Unificado en los Juegos Olímpicos Bandera de Equipo UnificadoCódigo COI EUNMedallas 54 44 37 135 Historia olímpicaJuegos de verano 1992 •Juegos de invierno 1992 •Otras apariciones Unión Soviética (1952–1988) Armenia (1994–) Bielorrusia (1994–) Georgia (1994–) Kazajistán (1994–) Kirguistán (1994–) Moldavia (1994–) Rusia (1994–)…

American video game developer Riot (developer) redirects here. For the Telenet Japan subsidiary, see Riot (Telenet Japan). Riot Games, Inc.Logo used since 2022Riot Games' West Los Angeles headquarters (pictured in 2015)TypeSubsidiaryIndustryVideo gamesFoundedSeptember 2006; 17 years ago (2006-09) in Santa Monica, California, USFoundersBrandon BeckMarc MerrillHeadquartersLos Angeles, USNumber of locations20 offices[1] (2023)Key peopleBrandon Beck (co-chairman)M…

Volcán Osorno El volcán Osorno y el lago Llanquihue desde el sector Los RiscosLocalización geográficaCordillera AndesCoordenadas 41°06′00″S 72°29′35″O / -41.1, -72.493055555556Localización administrativaPaís Chile Chile, en el límite entre las provincias de Osorno y LlanquihueDivisión OsornoLocalización ActivoCaracterísticas generalesTipo EstratovolcanAltitud 2652GeologíaObservatorio Observatorio Vulcanológico de los Andes del SurÚltima erupción 1835[…

Protein-coding gene in humans RUNX2IdentifiersAliasesRUNX2, AML3, CBF-alpha-1, CBFA1, CCD, CCD1, CLCD, OSF-2, OSF2, PEA2aA, PEBP2aA, runt related transcription factor 2, Runx2 mRNA, RUNX family transcription factor 2External IDsOMIM: 600211 MGI: 99829 HomoloGene: 68389 GeneCards: RUNX2 Gene location (Human)Chr.Chromosome 6 (human)[1]Band6p21.1Start45,328,157 bp[1]End45,664,349 bp[1]Gene location (Mouse)Chr.Chromosome 17 (mouse)[2]Band17 B3|17 21.33 cMStart44,…

2018 video game Video gameThe UniversimDeveloper(s)Crytivo GamesPublisher(s)Crytivo GamesDesigner(s)Alexander KoshelkovPlatform(s)Microsoft Windows, MacOS, LinuxGenre(s)Indie, Simulation, God gameMode(s)Single-player The Universim is an upcoming indie simulation god-style video game developed by Crytivo Games, in which the player takes the role of God and guides the development of civilization through the ages. Development started in April 2014. It is planned to be released on Microsoft Windows,…

For other uses, see Princess Sarah (disambiguation). Japanese anime series This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Princess Sara – news · newspapers · books …

1940 New Zealand Labour Party leadership election ← 1933 4 April 1940 1951 →   Candidate Peter Fraser Gervan McMillan Clyde Carr Popular vote 33 12 3 Percentage 68.7% 25.0% 6.2% Leader before election Michael Joseph Savage Leader after election Peter Fraser The New Zealand Labour Party leadership election, 1940 was held on 4 April 1940 to choose the fourth leader of the New Zealand Labour Party. The election was won by Wellington Central MP Peter Fraser. It follow…

French painter (born 1967) This article is an orphan, as no other articles link to it. Please introduce links to this page from related articles; try the Find link tool for suggestions. (March 2014) Phil Macquet Phil. Macquet (born October 8, 1967, at Lille, France) is a French painter. Inspired by the Street Art movement of the 1980s (Urban Art), he focused on the digital arts and adapted his stencil technique with new technologies to create large format on canvas. Biography Phil.Macquet Halle …

Hubert Robert painting The Bathing PoolFrench: Le Bassin aux baigneusesArtistHubert RobertYear1777–1780MediumOil on canvasDimensions174.6 cm × 123.8 cm (683⁄4 in × 483⁄4 in)LocationMetropolitan Museum of Art, New York The Bathing Pool (French: Le Bassin de baignade) is an oil-on-canvas painting executed between 1777 and 1780 by the French painter Hubert Robert. Originally commissioned for the bathing room at the Château de Bagatelle, it …

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.12.150.151