def parse_version_fields

qasim-bend-kit@0.1.0.2 · libs/AES256GCM.bend:532

import qasim-bend-kit@0.1.0.2/libs/AES256GCM.bend as AES256GCM
import Base

532def parse_version_fields(fields: List<&2, String>) -> Result<&2, &2, Error, Envelope>:
533    match fields:
534        case version <> nonce_text <> tag_text <> ciphertext_text <> Nil{}:
535            parse_decoded_hex(decode_hex(nonce_text), decode_hex(tag_text), decode_hex(ciphertext_text))
536        case _: Fail{InvalidEnvelope{}}

Uses (7)

Used by (1)