Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

class method

Gem::Security.create_ml_dsa_key

create_ml_dsa_key(algorithm)

Creates an ML-DSA key pair of the algorithm such as ML-DSA-65. ML-DSA requires OpenSSL >= 3.5 or an SSL library supporting ML-DSA.