Module: MlDsa::Internal

Defined in:
lib/ml_dsa/internal.rb

Overview

Nested module with private_constant so that MlDsa::Internal is accessible inside this gem but invisible to external callers.

Constant Summary collapse

SIGN_OP_SK =

Named positions for the flat Ruby→C boundary arrays. Must match SIGN_OP_* / VERIFY_OP_* macros in ml_dsa_internal.h.

0
SIGN_OP_MSG =
1
SIGN_OP_CTX =
2
SIGN_OP_DET =
3
SIGN_OP_RND =

optional pre-generated rnd bytes (pluggable RNG)

4
VERIFY_OP_PK =
0
VERIFY_OP_MSG =
1
VERIFY_OP_SIG =
2
VERIFY_OP_CTX =
3
RND_BYTES =
32
DEFAULT_YIELD_EVERY =

Default number of items between cooperative yields to the fiber scheduler during batch normalization loops. Zero means no yielding.

0