cryptutil: always use kek public id, add x509 support (#2066)

This commit is contained in:
Caleb Doxsey 2021-04-07 10:44:36 -06:00 committed by GitHub
parent 294addd857
commit 9de340b48b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 200 additions and 13 deletions

View file

@ -22,5 +22,5 @@ func (o *Options) GetAuditKey() (*cryptutil.PublicKeyEncryptionKey, error) {
if err != nil {
return nil, err
}
return cryptutil.NewPublicKeyEncryptionKey(o.AuditKey.ID, raw)
return cryptutil.NewPublicKeyEncryptionKeyWithID(o.AuditKey.ID, raw)
}