mldsa-0.1.0.0: src/SecureBytes.hs
-- |
-- Module : SecureBytes
-- License : BSD-3-Clause
-- Copyright : (c) 2025 Olivier Chéron
--
-- Use a type-level annotation to decide between a scrubbed byte array or
-- a regular byte array
--
module SecureBytes
( SecureBytes, unsafeCreate, SecureBytes.length, copyByteArrayToPtr
) where
import Marking
length :: Classified marking => SecureBytes marking -> Int
length = lengthBytes