Return the cryptographic signature of the given data using {{key.name}} as the encryption key and the specified hash algorithm.

{{key-version-select key=key onVersionChange=(action (mut key_version)) key_version=key_version }}
{{ivy-codemirror value=input valueUpdated=(action (mut input)) options=(hash lineNumbers=true tabSize=2 mode='ruby' theme='hashi' ) data-test-transit-input="input" }}
{{input type="checkbox" id="encodedBase64" checked=encodedBase64 data-test-transit-input="encodedBase64"}}
{{#if key.derived}}
{{input type="text" id="context" value=context class="input" data-test-transit-input="context"}}
{{b64-toggle value=context data-test-transit-b64-toggle="context"}}
{{/if}}
{{input id="prehashed" type="checkbox" name="prehashed" class="switch is-rounded is-success is-small" checked=prehashed }}
{{#if (or (eq key.type 'rsa-2048') (eq key.type 'rsa-3072') (eq key.type 'rsa-4096'))}}
{{/if}}