Handler for encrypting opaque blob data like checkpoints.
Note: Must be an async function. Encryption typically involves I/O operations (calling external KMS services), which should be async.
BlobEncryptor = Callable[[EncryptionContext, bytes], Awaitable[bytes]]| Name | Type | Description |
|---|---|---|
ctx* | unknown | Encryption context with model type and metadata |
blob* | unknown | The raw bytes to encrypt |