neicnordic / crypt4gh

Crypt4GH standard implementation
https://pkg.go.dev/github.com/neicnordic/crypt4gh
MIT License
8 stars 4 forks source link

ReEncryptHeader in headers could accept a dataeditlist to override whatever is currently in the header. #124

Closed pontus closed 5 months ago

pontus commented 8 months ago

For the use case of sending parts of an encrypted stream in sensitive data archive (e.g. sda-download, https://github.com/neicnordic/sensitive-data-archive/issues/696) it would be useful if headers.ReEncryptHeader accepted the possibility to receive something to replace the current data edit list.

I don't have any strong opinions on what the interface should look like (e.g. varargs, nil for no-replacement or something else).

Theoretically, there should be no need to remove the use of data edit list totally - the single element list [0] should mean the same, but it might be nice to be able to set the header to have no data edit list.

pontus commented 5 months ago

Solved by #128 .