Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

Kyber

Symbols

  • KyberDecapsulate
  • KyberEncapsulate
  • KyberKeyGen
ToneAr`Kyber`
KyberKeyGen
​
KyberKeyGen
[level]
generates an ML-KEM key pair at the specified security
level
.
​
Details and Options
​
Examples  
(4)
Basic Examples  
(1)
Generate a Kyber-768 key pair:
In[1]:=
keys=
KyberKeyGen
[768]
Out[1]=
PublicKeyPublicKey
Type: ML-KEM
Parameter set: 768
Public key size:
9472
b
,PrivateKeyPrivateKey
Type: ML-KEM
Parameter set: 768
Private key size:
19200
b

Extract the public and private keys:
In[2]:=
keys["PublicKey"]
Out[2]=
PublicKey
Type: ML-KEM
Parameter set: 768
Public key size:
9472
b

In[3]:=
keys["PrivateKey"]
Out[3]=
PrivateKey
Type: ML-KEM
Parameter set: 768
Private key size:
19200
b

Generate a key pair using the default security level (768):
In[4]:=
KyberKeyGen
[]
Out[4]=
PublicKeyPublicKey
Type: ML-KEM
Parameter set: 768
Public key size:
9472
b
,PrivateKeyPrivateKey
Type: ML-KEM
Parameter set: 768
Private key size:
19200
b

Scope  
(1)

Applications  
(1)

Possible Issues  
(1)

SeeAlso
KyberEncapsulate
 
▪
KyberDecapsulate
 
▪
GenerateAsymmetricKeyPair
RelatedLinks
▪
NIST Post-Quantum Cryptography
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com