Skip to main content

Module extension

Module extension 

Source
Expand description

The known extension-error conditions, as (origin, name) constants for matching against Error::Extension.

Constants§

COLLISION_DETECTED
sha1-checked’s collision condition: a rejecting digest’s input carried a SHA-1 collision attack pattern.
MESSAGE_TOO_LONG
public-encryption’s plaintext-bound condition: the plaintext (or wrapped serialization) exceeds the key’s bound — the signal to switch to hybrid wrapping.
ORIGIN
The origin of conditions the polymorph:webcrypto package defines.