14 lines
389 B
Go
14 lines
389 B
Go
package aclrecordproto
|
|
|
|
import (
|
|
"github.com/anytypeio/any-sync/util/crypto"
|
|
"github.com/anytypeio/any-sync/util/keys/symmetric"
|
|
)
|
|
|
|
func AclReadKeyDerive(signKey []byte, encKey []byte) (*crypto.AESKey, error) {
|
|
concBuf := make([]byte, 0, len(signKey)+len(encKey))
|
|
concBuf = append(concBuf, signKey...)
|
|
concBuf = append(concBuf, encKey...)
|
|
return symmetric.DeriveFromBytes(concBuf)
|
|
}
|