Consider upstream this macro to `cosmian_crypto_core` as I am sure not the KMS is not the only crate that enforces strong typing on bytes. _Originally posted by @tbrezot in https://github.com/Cosmian/kms/pull/542#discussion_r2390588070_