mirror of
https://github.com/hanzoai/pki.git
synced 2026-11-03 18:08:14 +00:00
14 lines
386 B
Go
14 lines
386 B
Go
package dataprotection
|
|
|
|
import "context"
|
|
|
|
// Provider interface for data protection
|
|
type Provider interface {
|
|
// Protect returns protected blob
|
|
Protect(ctx context.Context, data []byte) ([]byte, error)
|
|
// Unprotect returns unprotected data
|
|
Unprotect(ctx context.Context, protected []byte) ([]byte, error)
|
|
// IsReady returns true when provider has encryption keys
|
|
IsReady() bool
|
|
}
|