fromBytes

Wrap raw Encapsulation Key bytes into a KyberEncapsulationKey object.

Return

KyberEncapsulationKey

Parameters

Throws

when the length of the Encapsulation Key is not of any ML-KEM variant.

if the modulus check fails.