CN112305565B - B1C authentication signal generation method and device, electronic equipment and storage medium - Google Patents

B1C authentication signal generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112305565B
CN112305565B CN202011159824.5A CN202011159824A CN112305565B CN 112305565 B CN112305565 B CN 112305565B CN 202011159824 A CN202011159824 A CN 202011159824A CN 112305565 B CN112305565 B CN 112305565B
Authority
CN
China
Prior art keywords
embedded
authentication
code
key
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011159824.5A
Other languages
Chinese (zh)
Other versions
CN112305565A (en
Inventor
陈潇
陈颖
刘婷
宿晨庚
杨光
卢鋆
徐颖
高为广
穆盛林
巩应奎
王威
袁洪
刘成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING INSTITUTE OF TRACKING AND COMMUNICATION TECHNOLOGY
Aerospace Information Research Institute of CAS
Original Assignee
BEIJING INSTITUTE OF TRACKING AND COMMUNICATION TECHNOLOGY
Aerospace Information Research Institute of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING INSTITUTE OF TRACKING AND COMMUNICATION TECHNOLOGY, Aerospace Information Research Institute of CAS filed Critical BEIJING INSTITUTE OF TRACKING AND COMMUNICATION TECHNOLOGY
Priority to CN202011159824.5A priority Critical patent/CN112305565B/en
Publication of CN112305565A publication Critical patent/CN112305565A/en
Application granted granted Critical
Publication of CN112305565B publication Critical patent/CN112305565B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/21Interference related issues ; Issues related to cross-correlation, spoofing or other methods of denial of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/024Guidance services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

The disclosure provides a B1C authentication signal generation method, a device, an electronic apparatus, and a storage medium, which are applied to the technical field of satellite navigation, and include: according to the received B1C navigation message and B1C authentication message, obtaining a B1C navigation authentication message, wherein the B1C navigation authentication message comprises a B1C authentication message and a B1C navigation message, extracting MAC and KEY in the B1C authentication message, obtaining an authentication spread spectrum code sequence according to the MAC and KEY, embedding the authentication spread spectrum code sequence into a B1C main code to obtain a B1C main code spread spectrum code, carrying out exclusive OR operation on the B1C main code spread spectrum code and a B1C subcode to obtain a B1C pilot frequency composite code, modulating the B1C pilot frequency composite code and the B1C navigation authentication code message by subcarriers to generate a B1C authentication signal, and adding the authentication spread spectrum code into the message to generate a B1C authentication signal so as to improve the security of the B1C signal.

Description

B1C authentication signal generation method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of satellite navigation technologies, and in particular, to a B1C authentication signal generating method, a device, an electronic apparatus, and a storage medium.
Background
With the development of satellite navigation technology in recent years, the global navigation satellite system (GNSS, global Navigation Satellite System) has been widely used in a plurality of fields such as location services, weather forecast, transportation and emergency rescue.
The civil signal format of the satellite navigation system is disclosed, so that the civil receiver is easy to be threatened by deception jamming. GNSS spoofing attacks are frequent in recent years and also present a significant challenge to the security of GNSS navigation. Unlike traditional means for solving the anti-deception attack at the user side, the signal authentication technology is a technical means for solving the GNSS deception attack from the system side so as to alleviate deception attack to a certain extent, and the security of the existing authentication information is low.
Disclosure of Invention
The main purpose of the application is to provide a B1C authentication signal generation method, a device, electronic equipment and a storage medium, and to improve the security of Beidou B1C signals.
To achieve the above object, a first aspect of an embodiment of the present application provides a method for generating a B1C authentication signal, including:
obtaining a B1C navigation authentication message according to the received B1C navigation message and B1C authentication message, wherein the B1C navigation authentication message comprises the B1C authentication message and the B1C navigation message;
extracting MAC and KEY in the B1C authentication text, and obtaining an authentication spread spectrum code sequence according to the MAC and KEY;
embedding the authentication spread spectrum code sequence into the B1C main code to obtain a B1C main code spread spectrum code;
performing exclusive OR operation on the B1C main code spread spectrum code and the B1C subcode to obtain a B1C pilot frequency composite code;
and modulating the B1C pilot frequency composite code and the B1C navigation authentication text code by subcarriers to generate a B1C authentication signal.
Optionally, the extracting the MAC and KEY in the B1C authentication document, and obtaining the authentication spreading code sequence according to the MAC and KEY includes:
based on the China Business density SM3 standard, generating 256-bit data according to the MAC and the KEY;
acquiring 128-bit data of lower bits in the 256-bit data, and taking the 128-bit data of the lower bits as an embedded key;
based on the China public key SM4 standard, generating an authentication spread spectrum code sequence according to the embedded key, wherein the authentication spread spectrum code sequence comprises a numerical value to be embedded in the B1C main code and a position in the B1C main code, in which the numerical value is to be embedded.
Optionally, the generating the authentication spreading code sequence based on the chinese secret SM4 standard according to the embedded key includes:
based on the Chinese commercial secret SM4 standard, generating a 128-bit embedded value ciphertext according to the embedded key and a preset embedded value plaintext, wherein the 128-bit embedded value ciphertext comprises a value to be embedded into the B1C main code;
based on the Chinese commercial secret SM4 standard, generating a 128-bit embedded position ciphertext according to the embedded key and a preset embedded position plaintext, wherein the 128-bit embedded position ciphertext comprises the position to be embedded with the numerical value in the B1C main code.
Optionally, the embedding the authentication spreading code sequence into the B1C master code to obtain a B1C master code spreading code includes:
searching the position to be embedded with the numerical value in the B1C main code according to the 128-bit embedded position ciphertext;
acquiring a value to be embedded into the B1C main code in the 128-bit embedded value secret;
and embedding the numerical value in the 128-bit embedded numerical value secret into the B1C main code according to the position to be embedded with the numerical value in the B1C main code.
A second aspect of the embodiments of the present application provides a B1C authentication signal generating apparatus, including:
the first generation module is used for obtaining a B1C navigation authentication message according to the received B1C navigation message and B1C authentication message, wherein the B1C navigation authentication message comprises the B1C authentication message and the B1C navigation message;
the extraction module is used for extracting the MAC and the KEY in the B1C authentication text;
the second generation module is used for obtaining an authentication spread spectrum code sequence according to the MAC and the KEY;
the embedding module is used for embedding the authentication spread spectrum code sequence into the B1C main code to obtain a B1C main code spread spectrum code;
the operation module is used for carrying out exclusive OR operation on the B1C main code spread spectrum code and the B1C subcode to obtain a B1C pilot frequency composite code;
and the modulation module is used for modulating the B1C pilot frequency composite code and the B1C navigation authentication text code through subcarriers to generate a B1C authentication signal.
Optionally, the second generating module includes:
the first generation submodule is used for generating 256-bit data according to the MAC and the KEY based on the China public KEY SM3 standard;
the acquisition module is used for acquiring the 128-bit data of the lower bits in the 256-bit data and taking the 128-bit data of the lower bits as an embedded key;
the second generation submodule is used for generating an authentication spread spectrum code sequence based on the China public key SM4 standard according to the embedded key, wherein the authentication spread spectrum code sequence comprises a numerical value to be embedded in the B1C main code and a position to be embedded in the B1C main code.
Optionally, the second generating submodule includes:
the third generation submodule is used for generating 128-bit embedded value ciphertext according to the embedded secret key and a preset embedded value plaintext based on the China commercial secret SM4 standard, wherein the 128-bit embedded value ciphertext comprises a value to be embedded into the B1C main code;
and the fourth generation submodule is used for generating 128-bit embedded position ciphertext based on the Chinese commercial secret SM4 standard according to the embedded key and a preset embedded position plaintext, wherein the 128-bit embedded position ciphertext comprises the position to be embedded with the numerical value in the B1C main code.
Optionally, the embedding the module includes:
the searching sub-module is used for searching the position to be embedded with the numerical value in the B1C main code according to the 128-bit embedded position ciphertext;
the obtaining submodule is used for obtaining the value to be embedded into the B1C main code in the 128-bit embedded value secret;
and the embedding sub-module is used for embedding the numerical value in the 128-bit embedded numerical value secret into the B1C main code according to the position of the numerical value to be embedded in the B1C main code.
A third aspect of the embodiments of the present application provides an electronic device, including:
the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and is characterized in that the processor realizes the B1C authentication signal generation method provided in the first aspect of the application when executing the program.
A fourth aspect of the embodiments of the present application provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the B1C authentication signal generation method provided in the first aspect of the embodiments of the present application.
As can be seen from the foregoing embodiments of the present application, according to the method, apparatus, electronic device, and storage medium for generating a B1C authentication signal provided in the present application, according to a received B1C navigation message and a received B1C authentication message, a B1C navigation authentication message is obtained, the B1C navigation authentication message includes the B1C authentication message and the B1C navigation message, MACs and KEYs in the B1C authentication message are extracted, according to the MACs and KEYs, an authentication spreading code sequence is obtained, the authentication spreading code sequence is embedded into a B1C main code, a B1C main code spreading code is obtained, the B1C main code spreading code and the B1C subcode are subjected to exclusive-or operation, a B1C pilot composite code is obtained, the B1C pilot composite code and the B1C navigation authentication code message are modulated by subcarriers, a B1C authentication signal is generated, and the authentication spreading code is added into the message, thereby generating the B1C authentication signal, and improving the security of the B1C signal.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 schematically illustrates a flowchart of a B1C authentication signal generation method provided by an embodiment of the present disclosure;
FIG. 2 schematically illustrates an authentication spreading code embedding location 128bit data illustration in accordance with an embodiment of the present disclosure;
FIG. 3 schematically illustrates an authentication spreading code embedded value 128bit data illustration in accordance with an embodiment of the present disclosure;
fig. 4 schematically illustrates a beidou B1C text frame format according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of an embedding location according to an embodiment of the present disclosure;
fig. 6 schematically illustrates a structural diagram of a B1C authentication signal generating apparatus provided by an embodiment of the present disclosure;
fig. 7 shows a schematic diagram of a hardware structure of an electronic device.
Detailed Description
In order to make the application objects, features and advantages of the present application more obvious and understandable, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a B1C authentication signal generating method according to an embodiment of the present application, where the method mainly includes the following steps:
s101, obtaining a B1C navigation authentication message according to the received B1C navigation message and the B1C authentication message, wherein the B1C navigation authentication message comprises the B1C authentication message and the B1C navigation message.
S102, extracting the MAC and the KEY in the B1C authentication text, and obtaining an authentication spread spectrum code sequence according to the MAC and the KEY.
S103, embedding the authentication spread spectrum code sequence into the B1C main code to obtain a B1C main code spread spectrum code.
S104, performing exclusive OR operation on the B1C main code spread spectrum code and the B1C subcode to obtain the B1C pilot frequency composite code.
S105, modulating the B1C pilot frequency composite code and the B1C navigation authentication text code by subcarriers to generate a B1C authentication signal.
In one embodiment of the present disclosure, step S102 includes: based on the China Business density SM3 standard, generating 256-bit data according to the MAC and the KEY; acquiring lower 128-bit data in the 256-bit data, and taking the lower 128-bit data as an embedded key; based on the Chinese commercial secret SM4 standard, generating an authentication spread spectrum code sequence according to the embedded key, wherein the authentication spread spectrum code sequence comprises a numerical value to be embedded in the B1C main code and a position to be embedded in the B1C main code.
Wherein, the MAC and KEY in the B1C authentication document are 225 bits, specifically, 256 bits of data can be generated based on the China public KEY SM3 standard by utilizing the SHA-256 algorithm according to the 225 bits of MAC and KEY.
In one embodiment of the present disclosure, the generating the authentication spreading code sequence based on the chinese secret SM4 standard according to the embedded key includes: based on the China commercial secret SM4 standard, generating a 128-bit embedded value ciphertext according to the embedded key and a preset embedded value plaintext, wherein the 128-bit embedded value ciphertext comprises a value to be embedded into the B1C main code; based on the Chinese commercial secret SM4 standard, generating a 128-bit embedded position ciphertext according to the embedded key and a preset embedded position plaintext, wherein the 128-bit embedded position ciphertext comprises the position to be embedded with the numerical value in the B1C main code.
The 128-bit embedded value ciphertext can be generated based on the Chinese commercial secret SM4 standard by utilizing an AES-128 algorithm according to the embedded key and a preset embedded value plaintext. Similarly, the 128-bit embedded position ciphertext can be generated based on the Chinese commercial secret SM4 standard according to the embedded key and a preset embedded position plaintext by using an AES-128 algorithm.
In the present disclosure, the preset embedded value plaintext and the embedded position plaintext are changed once every preset time period, which may be, for example, 18 seconds, 36 seconds, 90 seconds, or the like. The embedded numerical plaintext and the embedded position plaintext are 16 bytes, and specifically include information such as a frame header, a satellite number, a plaintext identifier, a week number, zhou Namiao, a frequency point, a link, an authentication period, a reservation, a frame tail, and the like, such as the embedded numerical plaintext of the spreading code shown in table 1 and the embedded position plaintext of the spreading code shown in table 2.
TABLE 1
Name of the name Number of bytes Description of the invention
Frame header 2 0x55AA
Satellite sign 1 Beidou satellite number
Plaintext identification 1 0x01, representing the embedded value of the spreading code
Week count 2 Beidou week number
Seconds within a week 2 Big Dipper within week second technique, unit s
Frequency point 1 B1c-0x0、B2a-0x1、B3I-0x2
Link 1 Satellite-0 x0, other 0x1
Authentication period 1 18s-0x0、36s-0x1、90s-0x2
Reservation 4 Reservation
Frame end 1 0xE2
TABLE 2
In one embodiment of the present disclosure, step S103 includes: searching the position to be embedded with the numerical value in the B1C main code according to the 128-bit embedded position ciphertext; acquiring a value to be embedded into the B1C main code in the 128-bit embedded value secret; and embedding the numerical value in the 128-bit embedded numerical value secret into the B1C main code according to the position to be embedded with the numerical value in the B1C main code.
In the present disclosure, a schematic illustration of a 128-bit embedded position ciphertext is shown in fig. 2. Code1-Code7 represent the Code segment positions of the values to be embedded, indicated by 5 bits. Sector1 represents the number of values embedded in the 1 st millisecond, using binary counting, see in particular table 3.
TABLE 3 Table 3
As shown in fig. 3, sector1 represents a value embedded in the 1 st millisecond, sector2 represents a value embedded in the 2 nd millisecond, sector3 represents a value embedded in the 3 rd millisecond, sector4 represents a value embedded in the 4 th millisecond, and the above are illustrative examples selected with a cycle of 4 milliseconds.
In the present disclosure, fig. 4 schematically illustrates a B-CNAV1 message format of beidou B1C, and one frame of message includes three subframes, subframe 1, subframe 2, and subframe 3. Wherein subframe 1 comprises 14 bits of data, subframe 2 comprises 600bits of data, and subframe 3 comprises 264bits of data. The three subframes are 878 bits in total, converted into 1800 sign bits in total, 18 seconds in total. More, 36 seconds, 90 seconds, etc. are also possible.
Further, as shown in fig. 5, in this embodiment, the authentication period, the authentication subcodes, and the authentication spreading code are plotted. The authentication period is 180 seconds and includes 10 message frame periods. Each message frame period is 18 seconds, consistent with the B1C subcode period, and includes 1800 subcode chips. The B1C main code period is 10ms, the main code length is 10230 chips, wherein the 1ms main code length is 1023 chips, 1023=31×33. The 1ms main code is divided into 31 segments of 33 chips each. The 33 chips are BOC (1, 1) chips of the pilot component of the B1C signal.
The complex envelope of the B1C signal can be expressed as: s is(s) B1C (t)=s B1C_data (t)+js B1C_pilot (t)
Wherein s is B1C_data (t) data component, derived from navigation message data D BIC_dat (t) and ranging code C BIC_data (t) via subcarrier sc BIC_da t (t) modulation is generated by adopting a sine BOC (1, 1) modulation mode; s is(s) B1C_pilot (t) is the pilot component, which is defined by ranging code C BIC_data (t) via subcarrier sC BIC_dat (t) modulation generation, adopting a QMB OC (6,1,4/33) modulation mode; the power ratio of the data component to the pilot component is 1:3. The mathematical expression of the two components is as follows:
subcarrier sc of B1C data component B1C_data (t) expression: sc B1C_data (t)=sign(sin(2πf sc_B1C_ a t)), where f sc_B1C_a Is 1.023MHz.
Subcarrier sc of B1C pilot component B1C_pilot And (t) is a QMB OC (6,1,4/33) composite subcarrier, and is formed by combining BOC (1, 1) subcarriers and BOC (6, 1) subcarriers which are mutually orthogonal, wherein the power ratio of the two subcarriers is 29:4. sc B1C_pilot (t) expression:wherein f sc_Bic_a Is 6.138MHz.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a B1C authentication signal generating apparatus according to an embodiment of the present application, where the apparatus mainly includes: the device comprises a first generation module 601, an extraction module 602, a second generation module 603, an embedding module 604, an operation module 605 and a modulation module 606.
The first generating module 601 is configured to obtain a B1C navigation authentication message according to the received B1C navigation message and the received B1C authentication message, where the B1C navigation authentication message includes the B1C authentication message and the B1C navigation message.
And an extracting module 602, configured to extract the MAC and KEY in the B1C authentication document.
A second generating module 603, configured to obtain an authentication spreading code sequence according to the MAC and KEY.
An embedding module 604, configured to embed the authentication spreading code sequence into the B1C master code, to obtain a B1C master code spreading code.
The operation module 605 is configured to perform exclusive-or operation on the B1C main code spreading code and the B1C subcode, to obtain a B1C pilot frequency composite code.
The modulation module 606 is configured to modulate the B1C pilot frequency composite code and the B1C navigation authentication text code with subcarriers to generate a B1C authentication signal.
In one embodiment of the present disclosure, the second generating module includes:
the first generation submodule is used for generating 256-bit data according to the MAC and the KEY based on the China public KEY SM3 standard;
the acquisition module is used for acquiring the 128-bit data of the lower bits in the 256-bit data and taking the 128-bit data of the lower bits as an embedded key;
the second generation submodule is used for generating an authentication spread spectrum code sequence based on the China public key SM4 standard according to the embedded key, wherein the authentication spread spectrum code sequence comprises a numerical value to be embedded in the B1C main code and a position to be embedded in the B1C main code.
In one embodiment of the present disclosure, the second generating submodule includes:
the third generation submodule is used for generating 128-bit embedded value ciphertext according to the embedded secret key and a preset embedded value plaintext based on the China commercial secret SM4 standard, wherein the 128-bit embedded value ciphertext comprises a value to be embedded into the B1C main code;
and the fourth generation submodule is used for generating 128-bit embedded position ciphertext based on the Chinese commercial secret SM4 standard according to the embedded key and a preset embedded position plaintext, wherein the 128-bit embedded position ciphertext comprises the position to be embedded with the numerical value in the B1C main code.
In one embodiment of the present disclosure, the embedding module includes:
the searching sub-module is used for searching the position to be embedded with the numerical value in the B1C main code according to the 128-bit embedded position ciphertext;
the acquisition sub-module is used for acquiring the value to be embedded into the B1C main code in the 128-bit embedded value secret;
and the embedding sub-module is used for embedding the numerical value in the 128-bit embedded numerical value secret into the B1C main code according to the position to be embedded with the numerical value in the B1C main code.
Referring to fig. 7, fig. 7 shows a hardware configuration diagram of an electronic device.
The electronic device described in the present embodiment includes:
the memory 71, the processor 72, and a computer program stored on the memory 71 and executable on the processor, which when executed implements the B1C authentication signal generation method described in the foregoing embodiment shown in fig. 1.
Further, the electronic device further includes:
at least one input device 73; at least one output device 74.
The memory 71, the processor 72, the input device 73 and the output device 74 are connected by a bus 75.
The processor 72 is a beidou receiving processor, specifically includes a field programmable gate array (FPGA, field Programmable Gate Array), an ARM processor (Advanced RISC Machine), a digital signal processor (DSP, digital Signal Processor), and the like, and the input device 73 may specifically be a signal collector. The output device 74 may be embodied as a serial port, a network port, or the like.
The memory 71 may be a high-speed random access memory (RAM, random Access Memory) memory or a non-volatile memory (non-volatile memory), such as a disk memory. Memory 71 is used to store a set of executable program codes and processor 72 is coupled to memory 71.
Further, the embodiment of the present disclosure also provides a computer readable storage medium, which may be provided in the electronic device in the above embodiments, and the computer readable storage medium may be the electronic device in the above embodiment shown in fig. 7. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, implements the B1C authentication signal generation method described in the foregoing embodiment shown in fig. 1. Further, the computer-readable medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, etc. which may store the program code.
It should be noted that, each functional module in each embodiment of the present disclosure may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules.
The integrated modules, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such an understanding, the technical solution of the invention may be embodied essentially or partly in the form of a software product or in part in addition to the prior art.
It should be noted that, for the sake of simplicity of description, the foregoing method embodiments are all expressed as a series of combinations of actions, but it should be understood by those skilled in the art that the present invention is not limited by the order of actions described, as some steps may be performed in other order or simultaneously in accordance with the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily all required for the present invention.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and for parts of one embodiment that are not described in detail, reference may be made to the related descriptions of other embodiments.
The foregoing describes a B1C authentication signal generating method, apparatus, electronic device and readable storage medium provided by the present invention, and those skilled in the art will change the specific implementation and application scope according to the idea of the embodiments of the present invention, so that the disclosure should not be construed as limiting the invention.

Claims (8)

1. A B1C authentication signal generation method, comprising:
obtaining a B1C navigation authentication message according to the received B1C navigation message and B1C authentication message, wherein the B1C navigation authentication message comprises the B1C authentication message and the B1C navigation message;
extracting MAC and KEY in the B1C authentication text, and obtaining an authentication spread spectrum code sequence according to the MAC and KEY;
embedding the authentication spread spectrum code sequence into a B1C main code to obtain a B1C main code spread spectrum code;
performing exclusive OR operation on the B1C main code spread spectrum code and the B1C subcode to obtain a B1C pilot frequency composite code;
modulating the B1C pilot frequency composite code and the B1C navigation authentication text code by subcarriers to generate a B1C authentication signal;
the extracting the MAC and KEY in the B1C authentication document, and obtaining the authentication spreading code sequence according to the MAC and KEY includes:
based on the China Business density SM3 standard, generating 256-bit data according to the MAC and the KEY;
acquiring 128-bit data of lower bits in the 256-bit data, and taking the 128-bit data of the lower bits as an embedded key;
based on the China public key SM4 standard, generating an authentication spread spectrum code sequence according to the embedded key, wherein the authentication spread spectrum code sequence comprises a numerical value to be embedded in the B1C main code and a position in the B1C main code, in which the numerical value is to be embedded.
2. The B1C authentication signal generation method according to claim 1, wherein the generating an authentication spreading code sequence based on the embedded key based on the chinese secret SM4 standard comprises:
based on the Chinese commercial secret SM4 standard, generating a 128-bit embedded value ciphertext according to the embedded key and a preset embedded value plaintext, wherein the 128-bit embedded value ciphertext comprises a value to be embedded into the B1C main code;
based on the Chinese commercial secret SM4 standard, generating a 128-bit embedded position ciphertext according to the embedded key and a preset embedded position plaintext, wherein the 128-bit embedded position ciphertext comprises the position to be embedded with the numerical value in the B1C main code.
3. The B1C authentication signal generation method of claim 2, wherein the embedding the authentication spreading code sequence into the B1C master code to obtain a B1C master code spreading code comprises:
searching the position to be embedded with the numerical value in the B1C main code according to the 128-bit embedded position ciphertext;
acquiring a value to be embedded into the B1C main code in the 128-bit embedded value secret;
and embedding the numerical value in the 128-bit embedded numerical value secret into the B1C main code according to the position to be embedded with the numerical value in the B1C main code.
4. A B1C authentication signal generation apparatus, comprising:
the first generation module is used for obtaining a B1C navigation authentication message according to the received B1C navigation message and B1C authentication message, wherein the B1C navigation authentication message comprises the B1C authentication message and the B1C navigation message;
the extraction module is used for extracting the MAC and the KEY in the B1C authentication text;
the second generation module is used for obtaining an authentication spread spectrum code sequence according to the MAC and the KEY;
the embedding module is used for embedding the authentication spread spectrum code sequence into the B1C main code to obtain a B1C main code spread spectrum code;
the operation module is used for carrying out exclusive OR operation on the B1C main code spread spectrum code and the B1C subcode to obtain a B1C pilot frequency composite code;
the modulation module is used for modulating the B1C pilot frequency composite code and the B1C navigation authentication text code through subcarriers to generate a B1C authentication signal;
the second generation module includes:
the first generation submodule is used for generating 256-bit data according to the MAC and the KEY based on the China public KEY SM3 standard;
the acquisition module is used for acquiring the 128-bit data of the lower bits in the 256-bit data and taking the 128-bit data of the lower bits as an embedded key;
the second generation submodule is used for generating an authentication spread spectrum code sequence based on the China public key SM4 standard according to the embedded key, wherein the authentication spread spectrum code sequence comprises a numerical value to be embedded in the B1C main code and a position to be embedded in the B1C main code.
5. The B1C authentication signal generation apparatus of claim 4, wherein the second generation submodule comprises:
the third generation submodule is used for generating 128-bit embedded value ciphertext according to the embedded secret key and a preset embedded value plaintext based on the China commercial secret SM4 standard, wherein the 128-bit embedded value ciphertext comprises a value to be embedded into the B1C main code;
and the fourth generation submodule is used for generating 128-bit embedded position ciphertext based on the Chinese commercial secret SM4 standard according to the embedded key and a preset embedded position plaintext, wherein the 128-bit embedded position ciphertext comprises the position to be embedded with the numerical value in the B1C main code.
6. The B1C authentication signal generation apparatus of claim 5, wherein the embedding module comprises:
the searching sub-module is used for searching the position to be embedded with the numerical value in the B1C main code according to the 128-bit embedded position ciphertext;
the obtaining submodule is used for obtaining the value to be embedded into the B1C main code in the 128-bit embedded value secret;
and the embedding sub-module is used for embedding the numerical value in the 128-bit embedded numerical value secret into the B1C main code according to the position of the numerical value to be embedded in the B1C main code.
7. An electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the B1C authentication signal generation method according to any one of claims 1 to 3 when executing the computer program.
8. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the B1C authentication signal generation method of any one of claims 1 to 3.
CN202011159824.5A 2020-10-26 2020-10-26 B1C authentication signal generation method and device, electronic equipment and storage medium Active CN112305565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011159824.5A CN112305565B (en) 2020-10-26 2020-10-26 B1C authentication signal generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011159824.5A CN112305565B (en) 2020-10-26 2020-10-26 B1C authentication signal generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112305565A CN112305565A (en) 2021-02-02
CN112305565B true CN112305565B (en) 2024-01-26

Family

ID=74330712

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011159824.5A Active CN112305565B (en) 2020-10-26 2020-10-26 B1C authentication signal generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112305565B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090283A (en) * 2014-06-30 2014-10-08 北京邮电大学 Method and device for generating positioning signal
WO2017045484A1 (en) * 2015-09-15 2017-03-23 中兴通讯股份有限公司 Xts-sm4-based storage encryption and decryption method and apparatus
CN109067676A (en) * 2018-08-14 2018-12-21 西安空间无线电技术研究所 A kind of satellite navigation signals high-precision time domain performance estimating method
CN109639431A (en) * 2018-11-19 2019-04-16 中国科学院光电研究院 A kind of text authentication method, equipment, system and medium
CN110167023A (en) * 2019-05-23 2019-08-23 中国人民解放军陆军工程大学 A kind of navigation signal encryption and authentication method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209056B (en) * 2011-04-15 2013-06-19 华中科技大学 Navigation signal modulation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104090283A (en) * 2014-06-30 2014-10-08 北京邮电大学 Method and device for generating positioning signal
WO2017045484A1 (en) * 2015-09-15 2017-03-23 中兴通讯股份有限公司 Xts-sm4-based storage encryption and decryption method and apparatus
CN109067676A (en) * 2018-08-14 2018-12-21 西安空间无线电技术研究所 A kind of satellite navigation signals high-precision time domain performance estimating method
CN109639431A (en) * 2018-11-19 2019-04-16 中国科学院光电研究院 A kind of text authentication method, equipment, system and medium
CN110167023A (en) * 2019-05-23 2019-08-23 中国人民解放军陆军工程大学 A kind of navigation signal encryption and authentication method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
吴克河 等.基于商密算法的北斗短报文安全通信协议研究.《计算机与数字工程》.2018,(第11期),全文. *
张舒黎 等.北斗短报文通信安全研究.《通信技术》.2019,第52卷(第11期),第2.2节. *
章林锋 等.北斗B1C信号及导航电文的特点分析与比较.《现代导航》.2018,(第2期),第1.3节. *

Also Published As

Publication number Publication date
CN112305565A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN109951296B (en) Remote data integrity verification method based on short signature
CN111182525B (en) Method and device for storing data
CN103109509A (en) Method and apparatus for providing communication with a service using a recipient identifier
CN110167023B (en) Navigation signal encryption authentication method
CN102074240A (en) Digital audio watermarking algorithm for copyright management
CN109639431A (en) A kind of text authentication method, equipment, system and medium
Nagaraju et al. A hybrid PAPR reduction technique in OFDM systems
CN109617693A (en) The anti-deception measures of Beidou II system based on elliptic curve
WO2017185872A1 (en) Short message processing method, device, and system, and storage medium
CN104301387A (en) Anti-counterfeiting method and device of project digital photo
CN104113420A (en) Identity based aggregate signcryption method
CN111182497A (en) V2X anonymous authentication method, device and storage medium
CN104036531A (en) Information hiding method based on vector quantization and bintree
CN110909321B (en) Physical layer digital watermarking method for 4G communication
CN107707686B (en) Equipment identification method and device
Wu et al. TESLA-based authentication for BeiDou civil navigation message
CN112305565B (en) B1C authentication signal generation method and device, electronic equipment and storage medium
KR101091164B1 (en) Active RFID apparatus with improved PN code generation
CN113239341B (en) Identity authentication method, equipment and system independent of user real characteristic information
CN112598501B (en) Bank electronic evidence processing method and system
CN109033853A (en) Physical layer information hidden method, device and terminal based on convolutional code
CN111190925B (en) Multi-dimensional query method, system and storage medium for edge computing
CN103731654A (en) Information embedding system and information extracting system using 2D/3D videos
US10700862B2 (en) Reduced data set digest
Muzi et al. Randomly Flipped Chip based signal power authentication for GNSS civilian signals

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant