Sync seal testing

This commit is contained in:
Jeff Mitchell 2019-01-22 17:23:20 -05:00
parent 9653f9e379
commit 797c622567
1 changed files with 3 additions and 0 deletions

View File

@ -38,6 +38,9 @@ func (t *TestSeal) KeyID() string {
func (t *TestSeal) Encrypt(_ context.Context, plaintext []byte) (*physical.EncryptedBlobInfo, error) {
return &physical.EncryptedBlobInfo{
Ciphertext: ReverseBytes(plaintext),
KeyInfo: &physical.SealKeyInfo{
KeyID: t.KeyID(),
},
}, nil
}