Fix size of field.
[cascardo/libreceita.git] / doc / FORMATO
index 5771993..270c3f4 100644 (file)
@@ -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