Method and system for changing an encryption key in a mail processing system having a postage meter and a security center

Abstract: A key control system comprises the generation of a first set of keys (44) which are then used for a plurality of respective postage meters (12). The keys are then related to a respective meter in accordance with a map or algorithm. The keys may be changed by entering the second key via an encryption (DES) using the first key.

Description: The invention relates to key management for controlling keys used in encoding information and to key changing, and is applicable to mail processing systems and more particularly to security of postage metering systems. Recent advances in digital printing technology have made it possible to implement digital, e.g. bit map addressable, printing for the purpose of evidencing payment of postage by a postage-meter-like device. Where necessary in order to distinguish such postage-meter-like devices from the typical postage meter, such devices will be called herein Postage Evidencing Devices or PED's. In such devices, the printer may be a typical stand-alone printer. The computer driven printer of such a PED can print the postal indicia in a desired location on the face of a mail piece. Further, as used herein the postal indicia will be defined as the Postal Revenue Block or PRB. The PRB typically contains data such as the postage value, a unique PED identification number, the date and in some applications the name of the place where the mail is originating. It must be noted, however, that the term postage meter as used herein will be understood to cover the various types of postage accounting systems including such PED's and is not to be limited by the type of printer used. From the Post Office's point of view, it will be appreciated that a serious problem associated with PED's is that the digital printing makes it fairly easy to counterfeit the PRB since any suitable computer and printer may be used to generate multiple images. In fact, many of these new PED systems may be using printers that are able to print legitimate indicias which are indistinguishable from those printed by others that are printed without any attempt to purchase postage. In order to validate a mailpiece, that is to assure that accounting for the postage amount printed on a mailpiece has been properly done, it is known that one may include as a part of the franking an encrypted number such that, for instance, the value of the franking may be determined from the encryption to learn whether the value as printed on the mailpiece is correct. See, for example, U.S. Patent Nos. 4,757,537 and 4,775,246 to Edelmann et al. as well as U.S. Patent No. 4,649,266 to Eckert. It is also known to authenticate a mailpiece by including the address as a further part of the encryption as described in U.S. Patent No. 4,725,718 to Sansone et al and U.S. Patent No. 4,743,747 to Fougere et al. U.S. Patent No. 5,170,044 to Pastor describes a system wherein a binary array and the actual arrays of pixels are scanned in order to identify the provider of the mailpiece and to recover other encrypted plaintext information. U.S. Patent No. 5,142,577 to Pastor describes various alternatives to the DES encoding for encrypting a message and for comparing the decrypted postal information to the plaintext information on the mailpiece. GB 2,251,210A to Gilham describes a meter that contains an electronic calendar to inhibit operation of the franking machine on a periodic basis to ensure that the user conveys accounting information to the postal authorities. U.S. Patent No. 5,008,827 to Sansone et al. describes a system for updating rates and regulation parameters at each meter via a communication network between the meter and a data center. While the meter is on-line status registers in the meter are checked and an alarm condition raised if an anomaly is detected. It will be appreciated that in order to verify the information in the PRB using the encrypted message, the verifier must first be able to obtain the key used by the particular meter. In trying to deal with mailing systems which may incorporate such encryption systems, it must be recognized that the meter population is large and subject to constant fluctuation as meters are added and removed from service. If the same key were to be used for all meters, the key distribution is simple but the system is not secure. Once the code is broken by anyone, the key may be made available to others using the system and the entire operation is compromised. However, if separate keys are used respectively for each meter then key management potentially becomes extremely difficult considering the fluctuations in such a large population. US-A-4,935,961 discloses a method and apparatus for the generation and synchronization of cryptographic keys at a server station and a data center to monitor the mailing of batch mail. The data center and server each store a master key. The master key of each server is unique to that server. Since the data center may service a large number of servers, the data center must store the correspondence between the ID of each server and its master key. Thus, upon being informed of a meter ID, the data center can retrieve the corresponding master key. It is further mentioned that storing of manifest keys and the identity of corresponding servers requires the storing of an extremely large number of keys at the data center, while still not permitting simple modifications of the keys. Thus, an identical calculation scheme for the encryption key K 3 is used both at the server station and the data center departing from the ID number and the run number. EP-A-0 320 489 discusses the generation of a random number at an IC card and its transfer to a terminal. The random number is encrypted on both sides. The output code from the terminal is sent back to the card and compared to the code calculated according to the same scheme in the card thereby authenticating card and host. It is specified in general terms that the old seed value for the random number can be replaced during the authentication process by the seed value for the next communication. However, the encryption step remains unchanged. It is therefore an object of the invention to provide a key management system which provides the necessary security and yet which will allow ease of key management in a very large system. It is a further object of the invention to provide a method for keeping track of a plurality of keys in a large mailing system. It is another object to provide a method for easily changing the keys for each meter in a manner that provides security and system wide tracking of the key changes. According to one aspect of the invention, there is provided a method for use in a postage meter for changing keys used in encoding information to be printed on a mailpiece for validating the mailpiece, comprising the steps of providing a current key comprising a fixed seed and a variable seed, generating an access code and encrypting the access code using the current key to provide an encryption output, deriving a meter combination and a new variable seed from the encryption output, communicating the access code to a security center, receiving and inputting a security center combination generated at the security center, comparing the meter combination and the security center combination and if there is a match, replacing the variable seed in the current key with the new variable seed to use as a new key. According to another aspect of the invention, there is provided a postage meter system for changing keys used in encoding information to be printed on a mailpiece for validating the mailpiece, comprising: means for providing a current key comprising a fixed seed and a variable seed; means for generating an access code and encrypting the access code using the current key to provide an encryption output; means for deriving a meter combination and a new variable seed from the encryption output; means for communicating the access code to a security center, and for receiving and inputting a security center combination generated at the security center; and means for comparing the meter combination and the security center combination and, if there is a match, for replacing the variable seed in the current key with the new variable seed to use as a new key. The invention will be better understood by referring, by way of example, to the accompanying drawings, wherein: Fig. 1 is a schematic view of a system which may be used in one embodiment of the invention; Figs. 2a and 2b illustrates the information which may be printed in a first embodiment of a PRB in accordance with the invention; Figs. 3a and 3b illustrate an alternative to the information shown in Fig. 2a and 2b; Fig. 4 is a functional diagram of a key change module; Fig. 5 is a flow chart for key change in the meter; Fig. 6 is a flow chart for the key change at the data center; Fig. 7 is a flow chart of an operation for providing keys not intended to be covered by the scope of the present claims ; Fig. 8 is a flow chart of a verification process not intended to be covered by the scope of the present claims ; and Fig. 9 illustrates a method for changing keys not intended to be covered by the scope of the present claims. In Fig. 1, there is shown generally at 10 an overall system in accordance with an embodiment of the invention. In the embodiment illustrated, the system comprises a meter or PED 12 interacting with a plurality of different centers. A first center is a well-known meter-fund resetting center 14 of a type described, for example, in U.S. Patent No. 4,097,923 which is suitable for remotely adding funds to the meter to enable it to continue the operation of dispensing value bearing indicia. In. accordance with the invention there is also established a security or forensic center 16 which may of course be physically located at the resetting center 14 but is shown here separately for ease of understanding. Alternatively such a security or forensic center could be an entirely separate facility maintained by the Postal Authorities, for instance, or two separate facilities may be maintained in order to provide levels of security, if desired. The dashed lines in Fig.1 indicate telecommunication between the meter 12 and the resetting center 14 (and/or forensic center 16). Typically there may be an associated meter distribution center 18 which is utilized to simplify the logistics of placing meters with respective users. Similarly, a business processing center 20 is utilized for the purpose of processing orders for meters and for administration of the various tasks relating to the meter population as a whole. The meter manufacturer indicated at 22 provides customized meters or PED's to the distribution center 18 after establishing operability with shop checks between the manufacturer and the resetting center 14 and forensic center 16. The meter or PED is unlocked at the user's facility by a customer service representative indicated here by the box 24. At the resetting center 14 a database 26 relating to meters and meter transactions is maintained. The resetting combinations are generated by a secured apparatus labelled here as the BLACK BOX 28. The details of such a resetting arrangement are found in U.S. Patent No. 4,097,923. Database 30 and a secured encryption generating apparatus, designated here as ORANGE BOX 32 are maintained at the security center 16. The orange box preferably uses the DES standard encryption techniques to provide a coded output based on the keys and other information in the message string provided to it. It will be understood that other encryption arrangements are known and the invention is not limited to the specific embodiment using DES encryption. The security or forensic center, wherever maintained, is preferably connected by telecommunication with any Post Office inspection station, one of which is indicated here at 34. Further details are to be found in European Application EP-A-649 120 (corresponding to U.S. Application Serial No. 08/133,427). Returning now to the meter 12, as illustrated, the meter includes a clock 40 which is secure and which is used to provide a calendar function programmed by the manufacturer and not available to the user. Such clocks are well known and may be implemented in computer routines or in dedicated chips which provide programmable calendar outputs. Also stored within the registers of the meter 12 are a fund resetting key 42, security key 44, expiration dates 46 and preferably, an inscription enable flag 48. Preferably, in order to prevent the breaking of the encrypted messages to be printed by the postage meter, the security key 44 is changed at predetermined intervals as discussed below. The security key 44 is used in conjunction with a DES encrypter in the meter 12 to provide an encryption of certain information in the PRB for each printing of the PRB on a mailpiece. At each printing operation, the entire encrypted message may be printed on the mailpiece. However, preferably the cipher hereafter referred to herein as an ECODE is a truncated ciphertext produced by DES encryption of the message based on postage information available to the meter. Verification at the security center consists of verifying that the encrypted information is consistent with the ECODE. If automatic checking of the ECODE is desired, both the ECODE and the plaintext must be machine readable. A typical length of plaintext information is, for example only and not by way of limitation, the sum of the meter ID (typically 7 digits), a date (preferably 2 digits, suitably the last 2 of the number of days from a predetermined starting date such as January 1), the postage amount (4 digits), and the piece count for a typical total of 16 digits. Reading devices for lifting the information either from a bar-code on the mailpiece or as OCR are well-known and will not be further discussed. A DES block is conventionally 64-bits long, or approximately 20 decimal digits. A cipher block is an encryption of 64 bits of data. It will be appreciated that other information may be selected and that less than the information provided here may be encrypted in other embodiments of the invention. It is however important to note that the information to be encrypted must be identical to that used in verification. To this end the plaintext message may include data which indicates the particular information which is encrypted. This may take the form of an additional character, additional bar coding or a marking on the mailpiece as may be found desirable. If desired, a second ECODE could be printed using a DES key from a set of keys PS-DES known to the Postal Service. Alternatively the Postal Service could elect to manage its own set of keys as described in connection with the key management system described below. In a first embodiment, as shown in Figs. 2a and 2b, the plain text is encrypted using one of the keys from PS-DES. The Postal Service uses the same key from the set PS-DES to verify the message. A higher level of security is provided by the second ECODE. In a second embodiment, two ECODES are generated and printed on the mailpiece, one using a PS-DES key provided by the Post Service and the other using a Vendor-DES key provided, for example, by the manufacturer or security center. The Postal Service can then verify the message using its own code generating and key management system while the vendor can separately verify the validity of the message using the ECODE generated using its separate key system. Figs. 3a and 3b show the format of this second embodiment. In order to provide for reasonable management of the keys in any of these systems, one embodiment of a method of key management in accordance with the invention is seen in Fig. 4 which illustrates a suitable key change module, showing the relationship of registers. As illustrated, the unique security key 44 comprises a fixed seed (FS) 100 and a variable seed (VS) 102, preferably for DES encryption 32 bits each. The meter generates an access code AC, suitably formatted for instance with meter number 104, ascending register value 106, and a number from a key change counter 108. This access code is encrypted at DES encrypter 110 using the current key. Suitably the 18 most significant bits shown here at 112 may be kept for comparison with a similarly generated combination code while 32 bits shown at 114 may suitably used as the variable portion of the unique key. Fig. 5 is a flow chart of the key change at the meter. At the start of the routine indicated at 200 the Customer Service Representative or the customer himself sets up the meter for the key change, suitably by pressing a function key (not shown), block 205. The meter generates an access code as described above, block 210. The security center is called to receive AC from the meter whereupon the center generates and sends to the meter a combination code (Y), block 215. The AC in the meter is encrypted in the meter using its current key, block 220, and the output is converted to provide the expected combination code X and the next variable seed, block 225. When the code Y is received from the security center, it is compared at decision block 230 with the internally generated code X and if they are not equal an error signal or an alarm is generated, block 235. If they are equal, the variable seed is replaced by the new variable seed, block 240, and the routine ends. Fig. 6 is a flow chart illustrating the key change operation at the security center. In this routine illustrated generally at 300, block 305 is the security center receipt of the telephonic communication illustrated at block 215 of Fig. 5. At receipt, the Access code is decomposed to obtain the value of the ascending register and the count. If the security center is not at the fund-resetting center, a communication with the resetting center can determine whether the new ascending register value is greater than the previous value, block 310. If NO then an alarm or error signal is generated, block 315. The count is then checked, block 320, and if it doesn't match the count in the file, a check is made at block 325 to determine if it is only one less, indicating that the previous key change had not been entered, and a report to the Service Representative is made, block 330. Otherwise an error is reported, block 335. The AC is encrypted using the current key to generate the combination code and the new variable seed, block 335, and the combination code sent to the requester, block 340. At the security center, the new variable seed replaces the the old one and the counter is incremented, block 345. The updated ascending register information can be provided to the fund-resetting center if desired and the routine ends. Preferably, the meter will be locked if the meter is not inspected and/or the key change is not made prior to a predetermined date. Fig. 7 shows an arrangement for controlling the keys. First a large fixed set of keys is generated, block 400. As seen below, the system S comprises a set of pointers {p}, a set of keys indexed by the pointer {key p } and a map F or generating algorithm from the set of meter ID's {M} to the set of pointers. Thus: S = ( F, {p}, key p } ) is the system F: {M} --> {p} and F(M) = F(meter ID) = p finds the pointer to the key for a given meter M. Thus, returning to Fig. 7, as an example, the set of pointers {p} which may be the integers from 1 to 1000, are chosen, block 405. The function F may be then chosen as, again for example, the DES encryption of meter ID using a DES key K, preferably truncated to three digits, block 410 and a look-up table is generated, block 415. It will be understood that other functional relationships may be chosen. For the greatest security, it will be appreciated that the relationship between a pointer p and the corresponding key should not be easily discoverable nor should the relationship between the pointer and the meter ID. It will also be understood that the function F should be maintained in secret. Fig. 8 shows the verification process using the foregoing key management system. In order to verify a mailpiece, the meter number printed on the mailpiece is read, block 500. The key to be used, key F(M) , is then found by lookup table or algorithm F from the given meter number, block 510. The identical plain text information used to create the E-code is now encrypted at the security center using key F(M) , block 520, and the result is compared with the code printed on the mailpiece, block 530. If there is a match at decision block 540, the mailpiece is valid. If not the NO branch will trigger an alarm. Returning for the moment to Fig. 2a and Fig. 3a, the Postal Service is able in these embodiments to obtain the PS-DES pointer directly from the indicia without using the process shown in Fig. 8. In the cases illustrated in Figs. 2b and 3b, the DES pointer is obtained by using a predetermined algorithm applied to the information printed in the PED ID as described in connection with Fig. 8. As has been brought out previously, there is a need to change the keys in the meter at regular intervals in order to insure that the security is maintained. Fig. 9 shows another routine for updating the keys. In order to update the keys from a system S 1 = ( F 1 , {p 1 }, {key p 1 } ) to a system S 2 = ( F 2 , {p 2 }, {key p 2 } ) a new set of keys is generated, block.600, using a new function F (for example, the key for the DES encryption algorithm may be changed from K 1 to K 2 ). At the next scheduled update or at any selected time desired, for example, meter inspection or meter refunding, or at the next modem connection to the meter, the meter is sent, at block 610, an encrypted message E = encrypt 1 [key 2 F 2 (M) ] using key 1 F 1 (M) . In the meter, E is decrypted, block 620, to obtain the new key and it is installed, block 630, and, if desired, the new key is verified, block 640. It will be understood that if, for example, the inspection period is the period chosen for changing the key, then system S 1 is valid for one full inspection period following the generation of the set S 2 . If on the other hand, the inspection period, for example, is 6-months and the keys are updated with a longer period, then the verifier will need to hold two systems, S(present) and S(previous) and verify the mailpiece with both. It will be appreciated that with the system in accordance with the invention, the key lookup and DES encryption may be implemented to be fast and effective enough to be performed on-line.

Claims: A method for use in a postage meter for changing keys used in encoding information to be printed on a mailpiece for validating the mailpiece, comprising the steps of providing a current key (UK) comprising a fixed seed (FS) and a variable seed (VS), generating (210) an access code (AC) and encrypting (220) the access code using the current key to provide an encryption output, deriving (225) a meter combination (code X) and a new variable seed (new VS) from the encryption output, communicating the access code to a security center, receiving and inputting a security center combination (code Y) generated (335) at the security center, comparing (230) the meter combination and the security center combination and if there is a match, replacing (240) the variable seed in the current key with the new variable seed to use as a new key. A method according to Claim 1, in which said security center combination is generated at the security center by encrypting the communicated access number using the current key, said new key being for use at both the postage meter and the security center. A method according to Claim 1 or 2, wherein the access code includes a number representative of the count of the times that the key has been changed. A postage meter system (10) for changing keys used in encoding information to be printed on a mailpiece for validating the mailpiece, comprising: means (44) for providing a current key (UK) comprising a fixed seed (FS, 100) and a variable seed (VS, 102); means (104,106,108) for generating an access code (AC) and encrypting (110) the access code using the current key to provide an encryption output; means (114) for deriving a meter combination (code X) and a new variable seed (new VS) from the encryption output; means for communicating the access code to a security center (14), and for receiving and inputting a security center combination (code Y) generated at the security center (14); and means for comparing the meter combination and the security center combination and, if there is a match, for replacing the variable seed in the current key with the new variable seed to use as a new key.

Inventors: CORDERY ROBERT A, KIM HYUNG-KUN PAUL, PINTSOV LEON A, CORDERY, ROBERT A., KIM, HYUNG-KUN PAUL, PINTSOV, LEON A.
Applicants: PITNEY BOWES INC, PITNEY BOWES INC.
Application year: 1994
Main classification: G07B17
IPC codes: G07B17, H04L9