Chapter 6
Cryptographic techniques provide the mathematical foundation for document authenticity, integrity, and non-repudiation, ensuring public documents maintain the same legal validity as traditional paper documents with official seals.
Digital signatures are the electronic equivalent of handwritten signatures and official seals. Using public key cryptography, the signer's private key transforms document content into a signature value that can be verified using the corresponding public key. Unlike handwritten signatures which can be forged, properly implemented digital signatures provide strong mathematical guarantees: only the holder of the private key could have created the signature, the signed content has not been altered since signing, and the signer cannot later deny creating the signature (non-repudiation).
The WIA-SOCIAL standard supports multiple signature algorithms to accommodate different security requirements and computational constraints. RSA with SHA-256 or stronger provides widely compatible signatures suitable for most applications. ECDSA (Elliptic Curve Digital Signature Algorithm) with P-256, P-384, or P-521 curves offers equivalent security with shorter key lengths and faster operations. EdDSA with Ed25519 or Ed448 curves provides excellent performance and resistance to implementation mistakes.
| Algorithm | Key Size | Signature Size | Security Level | Performance |
|---|---|---|---|---|
| RSA-2048 + SHA-256 | 2048 bits | 256 bytes | 112-bit | Moderate |
| RSA-4096 + SHA-384 | 4096 bits | 512 bytes | 152-bit | Slow |
| ECDSA P-256 + SHA-256 | 256 bits | 64 bytes | 128-bit | Fast |
| ECDSA P-384 + SHA-384 | 384 bits | 96 bytes | 192-bit | Fast |
| EdDSA Ed25519 | 256 bits | 64 bytes | 128-bit | Very Fast |
| EdDSA Ed448 | 448 bits | 114 bytes | 224-bit | Very Fast |
PKI provides the trust framework linking public keys to identities. A Certificate Authority (CA) issues digital certificates binding public keys to entities (government agencies, officials, systems). The CA signs certificates with its private key, creating a chain of trust. Verifiers check certificate signatures up the chain to a root CA certificate they trust (pre-installed in operating systems or distributed by government).
Government PKI hierarchies typically have multiple tiers. Root CAs are kept offline in highly secure facilities, their private keys protected by Hardware Security Modules (HSMs) in geographically distributed secure vaults. Root CAs issue certificates to intermediate CAs which handle day-to-day certificate issuance. This isolates root key exposure—if an intermediate CA is compromised, only certificates it issued must be revoked; the root remains trusted. Multiple intermediate CAs serve different purposes: document signing, TLS server authentication, code signing, user authentication.
Root CA: Estonian Government Root CA
↓ [signed by Root CA]
Intermediate CA: Estonian Document Signing CA
↓ [signed by Intermediate CA]
End-Entity Certificate: Ministry of Interior Document Signer #47
Subject: CN=MoI Doc Signer 47, O=Ministry of Interior, C=EE
Public Key: [ECDSA P-384 public key]
Key Usage: Digital Signature, Non-Repudiation
Extended Key Usage: Document Signing
Validity: 2024-01-01 to 2026-12-31
Verification Process:
1. Extract document signature and signing certificate
2. Verify document signature using certificate's public key
3. Verify certificate was signed by intermediate CA
4. Verify intermediate CA certificate was signed by root CA
5. Verify root CA certificate is in trusted root store
6. Check that no certificates in chain are revoked (OCSP/CRL)
7. Verify certificates haven't expired
→ If all checks pass: signature valid, document authentic
Private keys used for signing critical documents must be protected from compromise. Software key storage is vulnerable to theft through malware, operating system vulnerabilities, or insider threats. Hardware Security Modules provide tamper-resistant hardware that performs cryptographic operations without exposing private keys to software systems.
HSMs generate keys within the device, ensuring keys never exist outside the protected boundary. They perform signing operations internally, accepting plaintext or hash values and returning signatures without exposing keys. Access controls enforce multi-party authorization for sensitive operations like key generation or export. Audit logs record all cryptographic operations. Physical tamper detection destroys keys if the device is opened or subjected to environmental attacks. FIPS 140-2 Level 3 or 4 certification provides assurance of security design and implementation.
Modern cloud HSM services (AWS CloudHSM, Azure Dedicated HSM, Google Cloud HSM) provide HSM capabilities without requiring physical hardware management. Keys remain in FIPS 140-2 Level 3 certified hardware controlled solely by the customer. These services integrate with key management systems and cryptographic libraries, simplifying HSM adoption while maintaining security properties.
| HSM Deployment | Use Case | Advantages | Considerations |
|---|---|---|---|
| On-Premises HSM | Root CA, high-security keys | Full physical control | High cost, maintenance burden |
| Cloud HSM | Operational signing keys | Scalability, managed service | Trust in cloud provider |
| HSM as a Service | Development, testing | Low cost, easy provisioning | Shared hardware (isolated keys) |
| Smart Card HSM | Personal signing keys | Portable, user-owned | Limited computational power |
Sometimes certificates must be revoked before their expiration date—if private keys are compromised, if an official leaves their position, if certificate information becomes inaccurate, or if security vulnerabilities are discovered. Two mechanisms enable checking certificate revocation status: Certificate Revocation Lists (CRLs) and Online Certificate Status Protocol (OCSP).
CAs periodically publish lists of revoked certificate serial numbers. Verifiers download and cache CRLs, checking whether certificates appear in the list. CRLs are simple and work offline (once downloaded) but have scalability challenges. Large CAs may have CRLs containing millions of entries, requiring megabytes of download. CRLs are only current as of publication time, introducing revocation latency.
OCSP provides real-time revocation checking. Verifiers send certificate serial numbers to an OCSP responder, which returns revocation status. This provides up-to-date information without downloading large CRLs. OCSP responses are small (typically <1KB) and can be cached. However, OCSP introduces network dependency—verification fails if the OCSP responder is unavailable. OCSP stapling addresses this by having servers obtain OCSP responses and include them with TLS handshakes.
OCSP Request:
POST /ocsp HTTP/1.1
Host: ocsp.gov.ee
Content-Type: application/ocsp-request
[binary OCSP request containing certificate serial number]
OCSP Response:
HTTP/1.1 200 OK
Content-Type: application/ocsp-response
{
"certificateSerial": "0x3A7F2E...",
"status": "good", // or "revoked" or "unknown"
"thisUpdate": "2025-01-15T10:30:00Z",
"nextUpdate": "2025-01-15T11:30:00Z",
"revokedAt": null,
"revokedReason": null
}
Status Values:
- "good": Certificate is valid and not revoked
- "revoked": Certificate has been revoked
- "unknown": Responder doesn't know about this certificate
While digital signatures provide authenticity and integrity, encryption provides confidentiality. Sensitive documents must be encrypted both at rest (in storage) and in transit (during transmission). The WIA-SOCIAL standard supports multiple encryption approaches for different scenarios.
Symmetric algorithms like AES use the same key for encryption and decryption. AES-256-GCM (Galois/Counter Mode) provides both encryption and authentication, preventing both eavesdropping and tampering. Symmetric encryption is fast and suitable for bulk data. The challenge is key distribution—sender and receiver must securely share the key.
Asymmetric algorithms use public keys for encryption and private keys for decryption. Anyone can encrypt data using a recipient's public key, but only the recipient with the corresponding private key can decrypt. RSA and ECIES (Elliptic Curve Integrated Encryption Scheme) provide asymmetric encryption. However, asymmetric encryption is slow and limited to small data sizes. Hybrid approaches encrypt data with a symmetric key, then encrypt the symmetric key with asymmetric encryption, combining benefits of both.
For maximum privacy, documents can be encrypted client-side before uploading to servers. Only the intended recipient's private key can decrypt. Even if servers are compromised, attackers cannot read document contents. This provides strong privacy but complicates features like search and content analysis. Attribute-Based Encryption and Homomorphic Encryption offer possibilities for processing encrypted data without decryption, though with significant complexity.
JSON Web Encryption (JWE) Compact Serialization:
eyJhbGciOiJSU0EtT0FFUC0yNTYiLCJlbmMiOiJBMjU2R0NNIn0.
[encrypted symmetric key]
.
[initialization vector]
.
[encrypted content]
.
[authentication tag]
Structure:
1. Header (Base64URL encoded):
{
"alg": "RSA-OAEP-256", // Key encryption algorithm
"enc": "A256GCM" // Content encryption algorithm
}
2. Encrypted Key:
- Generate random AES-256 key (Content Encryption Key - CEK)
- Encrypt CEK using recipient's RSA public key
- Result is encrypted symmetric key
3. Initialization Vector:
- Random value for AES-GCM
4. Ciphertext:
- Document content encrypted with CEK using AES-256-GCM
5. Authentication Tag:
- GCM authentication tag proving integrity
Decryption Process:
1. Verify JWE structure and header
2. Decrypt CEK using recipient's RSA private key
3. Decrypt content using CEK and IV
4. Verify authentication tag
→ If all steps succeed: document decrypted and authentic
Beyond basic encryption, advanced cryptographic techniques enable privacy-preserving document operations. These allow verification of document properties without revealing full contents, minimizing data exposure while maintaining functionality.
Rather than sharing an entire document, citizens can selectively disclose specific attributes. A driver's license holder can prove they're over 21 without revealing their exact birth date or address. Implementation approaches include separate signatures on each attribute (allowing selective inclusion), zero-knowledge proofs (proving properties without revealing data), or credential revocation lists combined with attribute commitments.
Zero-knowledge proofs allow proving statements about data without revealing the data itself. For example, proving "I am over 18" without revealing your birth date, or proving "I have a valid driver's license" without revealing the license number or expiration date. zk-SNARKs (Zero-Knowledge Succinct Non-Interactive Arguments of Knowledge) provide compact proofs that can be verified quickly. While computationally intensive to generate, verification is fast, making them suitable for privacy-preserving document applications.
Blind signatures allow authorities to sign documents without seeing their contents. The requester blinds (encrypts) the document, sends it for signing, receives the blind signature, then unblinds to obtain a standard signature. This enables issuing authorities to certify documents while preserving privacy. Applications include anonymous credentials and privacy-preserving authentication tokens.
| Privacy Technique | Use Case | Privacy Level | Complexity |
|---|---|---|---|
| Selective Disclosure | Share specific attributes only | Medium | Low |
| Zero-Knowledge Proofs | Prove properties without revealing data | High | High |
| Blind Signatures | Anonymous credentials | Very High | Medium |
| Homomorphic Encryption | Compute on encrypted data | Very High | Very High |
| Secure Multi-Party Computation | Multi-agency data analysis | Very High | Very High |
The European Union's General Data Protection Regulation (GDPR) imposes strict requirements on personal data processing. Document systems handling EU citizen data must implement technical and organizational measures ensuring compliance.
Lawfulness, fairness, and transparency require clear legal basis for processing and informing data subjects. Purpose limitation means data can only be used for stated purposes. Data minimization requires collecting only necessary data. Accuracy requires keeping data correct and current. Storage limitation requires deleting data when no longer needed. Integrity and confidentiality require security measures. Accountability requires demonstrating compliance.
Data subjects have rights that document systems must support. Right of access requires providing copies of all data held. Right to rectification requires correcting inaccurate data. Right to erasure ("right to be forgotten") requires deletion in some circumstances (though exceptions apply for legal obligations). Right to data portability requires providing data in structured, machine-readable formats. Right to object allows refusing certain processing types. Systems must provide workflows and APIs implementing these rights.
Public document systems require regular security audits and compliance assessments. Multiple frameworks provide standards and methodologies for evaluating security posture.
ISO 27001 specifies requirements for establishing, implementing, maintaining, and continually improving an information security management system (ISMS). It covers risk assessment, security controls implementation, incident management, business continuity, and continuous improvement. Certification provides assurance to stakeholders that appropriate security measures are in place.
Common Criteria (ISO/IEC 15408) provides a framework for evaluating computer security products. Evaluation Assurance Levels (EALs) range from EAL1 (basic) to EAL7 (highest rigor). Government document systems typically target EAL4+ for critical components like cryptographic modules and authentication systems.
Regular penetration testing simulates real-world attacks to identify vulnerabilities. Tests should cover web application security (OWASP Top 10), API security, authentication bypass attempts, authorization flaws, cryptographic weaknesses, and infrastructure vulnerabilities. Both automated scanning and manual expert testing are necessary. Critical systems should undergo testing at least annually, with continuous automated scanning.
Korea operates digital transformation through a comprehensive governance system. Digital Government: Digital Platform Government Committee (established September 2022, under the President)·Ministry of the Interior and Safety Digital Government Bureau·e-Government Support Center·Gov.kr·National Citizen Service·KDIS (Korea Digital Information Society)·NIA (National Information Society Agency)·MOIS (Ministry of the Interior and Safety). K-DNS Infrastructure: Korea Internet & Security Agency (KISA) Korea Internet Center·KISA DNS Root Server·KRNIC (Korea Network Information Center)·BGP Korea·National Cyber Security Center (NCSC)·KCC (Korea Communications Commission)·MSIT (Ministry of Science and ICT)·NIA·NIPA. Korean Cloud Infrastructure: KT Cloud·NAVER Cloud (NCloud)·Samsung SDS Cloud·LG U+ Cloud·NHN Cloud·Kakao Enterprise Cloud·SK Telecom Cloud·KISA Cloud Security Assurance Program (CSAP)·KCMVP-validated cloud·ISMS-P (Information Security & Personal Information Management System). Korean Security Certifications: KISA ISMS-P certification·KCMVP (Korean Cryptographic Module Validation Program)·NIS (National Intelligence Service) "National Cryptographic Technology Operation Standards"·NCSC "National Cyber Security Strategy 2024-2028"·CC (Common Criteria) Korean evaluation bodies·EAL4·EAL5·KS X ISO/IEC 15408·19790·24759 Korean Profile. Korean Data Standards: NIA AI Hub·National Data Standardization Committee·Statistics Korea (KOSTAT)·MyData 4 Designated Combination Specialists (Samsung SDS, KICI, KOSTAT, KFTC)·National Institute of Korean Language·National Law Information Center·National Spatial Information Platform·National Spatial Data Center·Korean Spatial Information Standards. Finance and Fintech Standards: FSC (Financial Services Commission)·FSS (Financial Supervisory Service)·FIU (Financial Intelligence Unit)·BOK (Bank of Korea)·FSEC (Financial Security Institute)·KFTC (Korea Financial Telecommunications)·KSD (Korea Securities Depository)·KRX (Korea Exchange) 8-agency cooperation. 5G/6G Communications Infrastructure: 5G subscribers 35 million (2024)·5G base stations 350,000·6G commercialization target 2028·5G dedicated networks 16 operators·6G Acceleration Council (MSIT, 2024). K-Content: KOCCA (Korea Creative Content Agency)·MCST (Ministry of Culture, Sports and Tourism)·KCA (Korea Communications Agency)·Korea Culture Information Service Agency·Korean Film Archive·Korea Publishing Industry Promotion Agency. Data 3 Acts (Personal Information Protection Act·Credit Information Act·Telecommunications Network Act, 2020 enforcement)·Data Industry Act (2021)·Public Data Act (2013)·AI Framework Act (2026)·Digital Platform Government Framework Act (2024 proposed) — Korea digital transformation core legislation.
Korea operates its industrial ecosystem and standardization system through the following core infrastructure. Korea Top 5 Groups: Samsung, Hyundai Motor, LG, SK, Lotte. Each group operates standardization committees and ISO/IEC TC Korean secretariats. Samsung Electronics (semiconductors, displays, home appliances, telecom)·Hyundai Motor (automobiles, mobility)·LG Electronics (home appliances, displays, OLED)·SK hynix (memory)·LG Energy Solution·Samsung SDI (batteries)·POSCO Future M (materials)·Hyundai Mobis (parts). Korean IT Big Tech: NAVER (search, cloud, AI HyperCLOVA)·Kakao (messenger, payment, mobility, banking)·Coupang (e-commerce, logistics)·Karrot Market·Toss·Woowa Brothers. Korea Telcos: SK Telecom·KT·LG U+. 5G·5G dedicated networks·B2B cloud·AI businesses operating. Korea Top 7 Research Universities: Seoul National University·KAIST·POSTECH·Yonsei University·Korea University·UNIST·DGIST·GIST. All serve as standardization R&D bases and ISO/IEC/IEEE Korean chairs. Korea Government-affiliated National Research Institutes (26): KIST, KAERI, KIMM, KIER, KFRI, KRICT, KRIBB, KARI, KASI, KIGAM, KICT, KISTI, KETI, ETRI, NIMS, KIMS, KISDI, KOTRA, STEPI, KOEN, KICCE, KIET, KIPF, KIHASA, KICJ, KLRI. Korea Industrial Complexes / Tech Valleys: Pangyo Techno Valley·Dongtan·Gwanggyo·Songdo IBD·Yeouido·Gangnam·Sihwa·Banwol·Gumi·Ulsan·Changwon·Geoje·Yeosu·Onsan·Cheongju·Iksan·Gwangyang·POSCO Gwangyang Steel Mill·Asan Bay·Seosan·Songdo·Incheon Airport·Sejong·Cheongna·Geomdan. Korea Trade and Finance Infrastructure: Korea International Trade Association (KITA)·Korea Trade-Investment Promotion Agency (KOTRA)·Export-Import Bank of Korea (KEXIM)·Bank of Korea·Kookmin Bank·Shinhan·Hana·Woori·NH Nonghyup·IBK Industrial Bank·SC First Bank·Citi Bank Korea·HSBC Korea·DBS Korea — 14 Korean major banks and foreign banks. Korea K-POP / K-Content: HYBE·SM·YG·JYP 4 major entertainment companies·CJ ENM·tvN·MBC·KBS·SBS·EBS·YTN·Yonhap News TV·JTBC Korean broadcasting·NETFLIX Korea·Disney Plus·TVING·Wavve·Watcha·Coupang Play. Korea Gaming Industry: Nexon·NCsoft·Krafton·Netmarble·Kakao Games·Pearl Abyss·Com2uS·Gamevil·NHN·Smilegate·Webzen. Korea Automotive / Battery: Hyundai Motor·Kia·Genesis·LG Energy Solution·Samsung SDI·SK On·POSCO Future M·EcoPro·L&F battery cathode material suppliers. Korea Semiconductor: Samsung Electronics (HBM3E·HBM4)·SK hynix (HBM3E 12-Hi)·DB HiTek·SK siltron·SK Enpulse·Dongjin Semichem·Seoul Semiconductor·Simmtech·Samsung Display·LG Display.
Korea operates a comprehensive standards governance system through inter-ministerial cooperation. National Standards Council (under Prime Minister's Office, per Framework Act on National Standards Article 5) coordinates KATS (Korean Agency for Technology and Standards), MFDS (Ministry of Food and Drug Safety), MOTIE (Ministry of Trade, Industry and Energy), MSIT (Ministry of Science and ICT), MOIS (Ministry of the Interior and Safety), MOE (Ministry of Environment), MOHW (Ministry of Health and Welfare), MND (Ministry of National Defense), MCST (Ministry of Culture, Sports and Tourism), MOFA (Ministry of Foreign Affairs), MOJ (Ministry of Justice), and FSC (Financial Services Commission). Accreditation and Testing: KOLAS (Korea Laboratory Accreditation Scheme) accredits 800+ testing laboratories. KAS (Korea Accreditation System) accredits 50+ certification bodies. KTC (Korea Testing Certification), KTR (Korea Testing & Research Institute), KTL (Korea Testing Laboratory), and KCL (Korea Conformity Laboratories) provide conformance testing. Telecom and Cyber: KCC (Korea Communications Commission), KCA (Korea Communications Agency), TTA (Telecommunications Technology Association), IITP (Institute for Information & Communications Technology Planning & Evaluation), NIPA (National IT Industry Promotion Agency), KISA (Korea Internet & Security Agency), KCMVP (Korea Cryptographic Module Validation Program), NIS (National Intelligence Service), NSR (National Security Research Institute), and NCSC (National Cyber Security Center). National R&D Centers: KIST, ETRI, KAIST, Seoul National University, Yonsei University, Korea University, POSTECH, UNIST, GIST, DGIST, KISTI, KIER, KIMM, KRICT, KFRI, KRIBB. International Standards Cooperation: ISO TC/SC Korean secretariats, IEC TC/SC Korean secretariats, ITU-T Study Group Korean chairs, 3GPP RAN/SA Korean chairs, IEEE 802 Korean chairs, W3C Korea office, OASIS Korea office, IETF Korea cooperation, OECD CSTP, UN ESCAP, APEC SCSC Korean cooperation. Korean Industrial Standards (KS) Catalog: KS X (Information) 25,000+, KS A (Basic) 15,000+, KS B (Machinery) 25,000+, KS C (Electrical) 18,000+, KS D (Metallurgy) 12,000+, KS E (Mining) 5,000+, KS F (Construction) 18,000+, KS H (Food) 8,000+, KS I (Environment) 5,000+, KS J (Biology) 3,000+, KS K (Textile) 15,000+, KS L (Ceramics) 7,000+, KS M (Chemistry) 12,000+, KS P (Medical) 5,000+, KS Q (Quality Mgmt) 4,000+, KS R (Transport) 12,000+, KS S (Service) 3,000+, KS T (Packaging) 4,000+, KS V (Shipbuilding) 5,000+, KS W (Aerospace) 3,000+ — totaling 220,000+ Korean Industrial Standards. Key Acts: Personal Information Protection Act (Act 19234, effective Sept 15, 2024), Electronic Government Act, Electronic Signature Act, Act on Promotion of Information and Communications Network Utilization and Information Protection, Information and Communications Infrastructure Protection Act, Data Industry Act, Public Data Act, AI Framework Act (Act 20212, effective July 2026), Industrial Technology Innovation Promotion Act, Framework Act on Science and Technology — 70+ Korean standardization-related laws.