X-Git-Url: http://git.cascardo.eti.br/?a=blobdiff_plain;f=doc%2FFORMATO;h=270c3f4458f0d622278797c966aceda72e9560f7;hb=a6fbe2b4cc6332ebf3caf71c5bac2b73c1af9088;hp=57719931c18311b64f93ca6db75cd9632051a0a2;hpb=af3299e9addf78c350d43526658b4d3e7d155f6b;p=cascardo%2Flibreceita.git diff --git a/doc/FORMATO b/doc/FORMATO index 5771993..270c3f4 100644 --- a/doc/FORMATO +++ b/doc/FORMATO @@ -20,7 +20,7 @@ C: (6 bytes) + deflate(hash) hash_arq = 16 bytes hash_trans = 16 bytes == hash_arq ni = "00000000000" (CPF em ascii) - tipo_ni = "CPF" + tp_ni = "CPF" num_ass = 0x00 (assinatura e-CPF?) p_comp = 0x00 0x00 0x00 0x00 ret = 0x00 @@ -39,7 +39,7 @@ C: (6 bytes) + deflate(hash) cliente = "201104" (será a versão do receitanet?) dados_val = parte do cabeçalho do DEC (desce in_cert até vr_totpagamentos) bytes 112 a 750 tam_dados_val = 0x00 0x00 0x00 0x00 (4 bytes) - tam_dados_val_chave = 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 (8 bytes) + tam_dados_val_chave = 0x00 0x00 0x00 0x00 (4 bytes) arquivos_restantes = 0x00 0x00 0x00 0x00 (4 bytes) S: (6 bytes) + deflate(hash) header: 0x01 0xII 0xII 0xOO 0xOO 0x01, II é o tamanho da entrada, OO é o tamanho da saída do deflate