Skip to main content

validate_content_encryption

Function validate_content_encryption 

Source
pub fn validate_content_encryption(
    alg: &str,
) -> Result<SupportedContentEncryption, KipukaError>
Expand description

Validate a content encryption algorithm string and map it to a supported variant.

Accepts OID strings or short names (e.g., "aes-256-gcm", "2.16.840.1.101.3.4.1.46").

§Errors

Returns KipukaError::BadRequest if the algorithm is not recognised or not permitted by policy.