private SealedSharedKey resealKeyOf(Snapshot snapshot, PublicKey receiverPublicKey) {
        VersionedKeyPair sealingKeyPair = sealingKeyPair(snapshot.key().sealingKeyVersion());
        SecretSharedKey unsealedKey = SharedKeyGenerator.fromSealedKey(snapshot.key().sharedKey(),
                                                                       sealingKeyPair.keyPair().getPrivate());
        return SharedKeyGenerator.reseal(unsealedKey, receiverPublicKey, KeyId.ofString(snapshot.id().toString()))
                                 .sealedSharedKey();
    }
Reseal the encryption key for snapshot using given public key
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/backup/Snapshots.java