The amending of A-Key must be processed cryptically in OTA authentication. So this paper deals with the algorithm of A-Key based on D-H and then discusses the generation and management of the data of A-Key using the algorithm above. The method discussed can amend the data of A-Key secretly and is advantageous in security and reliability compared with other algorithms. It can also provide a secure method for managing the data of A-Key for OTA technology.