From 54fef00bfd3f0d23c53bb2eb046bdb252974773b Mon Sep 17 00:00:00 2001 From: leonardolara Date: Wed, 4 Sep 2024 11:19:16 -0300 Subject: [PATCH] initial translation in reference/rnp/functions --- reference/rnp/functions/rnp-import-keys.xml | 79 ++++++++++++ .../rnp/functions/rnp-import-signatures.xml | 79 ++++++++++++ .../functions/rnp-key-export-autocrypt.xml | 103 +++++++++++++++ .../functions/rnp-key-export-revocation.xml | 119 ++++++++++++++++++ 4 files changed, 380 insertions(+) create mode 100644 reference/rnp/functions/rnp-import-keys.xml create mode 100644 reference/rnp/functions/rnp-import-signatures.xml create mode 100644 reference/rnp/functions/rnp-key-export-autocrypt.xml create mode 100644 reference/rnp/functions/rnp-key-export-revocation.xml diff --git a/reference/rnp/functions/rnp-import-keys.xml b/reference/rnp/functions/rnp-import-keys.xml new file mode 100644 index 000000000..101aca331 --- /dev/null +++ b/reference/rnp/functions/rnp-import-keys.xml @@ -0,0 +1,79 @@ + + + + rnp_import_keys + Importa chaves da string PHP para o chaveiro e recebe JSON descrevendo chaves novas/atualizadas + + + + &reftitle.description; + + stringfalsernp_import_keys + RnpFFIffi + stringinput + intflags + + + + + + + + &reftitle.parameters; + + + ffi + + + &rnp.parameter.ffi-description; + + + + + input + + + Pacotes OpenPGP contendo chaves a serem carregadas. Pode ser binário ou blindado ASCII. + + + + + flags + + + Consulte as constantes predefinidas RNP_LOAD_SAVE_*. + + + + + + + + &reftitle.returnvalues; + + String JSON com informações sobre chaves novas e atualizadas em caso de sucesso&return.falseforfailure;. + + + + + + diff --git a/reference/rnp/functions/rnp-import-signatures.xml b/reference/rnp/functions/rnp-import-signatures.xml new file mode 100644 index 000000000..5e3d3d14a --- /dev/null +++ b/reference/rnp/functions/rnp-import-signatures.xml @@ -0,0 +1,79 @@ + + + + rnp_import_signatures + Importa assinaturas independentes para o chaveiro e recebe JSON descrevendo chaves atualizadas + + + + &reftitle.description; + + stringfalsernp_import_signatures + RnpFFIffi + stringinput + intflags + + + + + + + + &reftitle.parameters; + + + ffi + + + &rnp.parameter.ffi-description; + + + + + input + + + Pacotes OpenPGP contendo assinaturas a serem importadas. Pode ser binário ou blindado ASCII. + + + + + flags + + + Atualmente precisar ser 0. + + + + + + + + &reftitle.returnvalues; + + String JSON com informações sobre chaves atualizadas em caso de sucesso&return.falseforfailure;. + + + + + + diff --git a/reference/rnp/functions/rnp-key-export-autocrypt.xml b/reference/rnp/functions/rnp-key-export-autocrypt.xml new file mode 100644 index 000000000..192dad6b0 --- /dev/null +++ b/reference/rnp/functions/rnp-key-export-autocrypt.xml @@ -0,0 +1,103 @@ + + + + rnp_key_export_autocrypt + + Exporte o mínimo de chaves para o recurso de criptografia automática (apenas 5 pacotes: chave, uid, assinatura, + subchave de criptografia, assinatura) + + + + + &reftitle.description; + + stringfalsernp_key_export_autocrypt + RnpFFIffi + stringkey_fp + stringsubkey_fp + stringuid + intflags + + + + + + + + &reftitle.parameters; + + + ffi + + + &rnp.parameter.ffi-description; + + + + + key_fp + + + Impressão digital da chave primária. + + + + + subkey_fp + + + Subchave para exportar. Pode ser uma string vazia + para selecionar a primeira subchave adequada. + + + + + uid + + + ID do usuário a ser exportado. Pode ser uma string vazia + se a chave exportada tiver apenas um uid. + + + + + flags + + + Apenas RNP_KEY_EXPORT_BASE64 é suportada atualmente. Ativá-la + exportaria dados de chave codificados em base64 em vez de binários. + + + + + + + + &reftitle.returnvalues; + + Pacotes OpenPGP de chave exportada em caso de sucesso&return.falseforfailure;. + + + + + + diff --git a/reference/rnp/functions/rnp-key-export-revocation.xml b/reference/rnp/functions/rnp-key-export-revocation.xml new file mode 100644 index 000000000..6a95131da --- /dev/null +++ b/reference/rnp/functions/rnp-key-export-revocation.xml @@ -0,0 +1,119 @@ + + + + rnp_key_export_revocation + Gera e exporta assinatura de revogação de chave primária + + + + &reftitle.description; + + stringfalsernp_key_export_revocation + RnpFFIffi + stringkey_fp + intflags + arrayoptions + + + Nota: para revogar uma chave é preciso importar esta assinatura para o armazenamento de chaves ou usar + a função rnp_key_revoke. + + + + + + &reftitle.parameters; + + + ffi + + + &rnp.parameter.ffi-description; + + + + + key_fp + + + Impressão digital da chave primária a ser revogada. + + + + + flags + + + RNP_KEY_EXPORT_ARMORED ou 0. + + + + + options + + + Um array associativo com opções. + + + + + + Chave + Tipo de dado + &Description; + + + + + "hash" + string + Define o algoritmo de hash usado durante cálculo da assinatura. + + + "code" + string + Código do motivo da revogação. Valores possíveis são: 'no' (não), 'superseded' (substituída), 'compromised' (comprometida) e + 'retired' (aposentada). Se não definida, o valor 'no' será usado por padrão. + + + "reason" + string + Representação textual do motivo da revogação. + + + + + + + + + + + &reftitle.returnvalues; + + Assinatura de revogação exportada em caso de sucesso&return.falseforfailure;. + + + + + +