TWI806724B - System and method for determining key - Google Patents
System and method for determining key Download PDFInfo
- Publication number
- TWI806724B TWI806724B TW111128902A TW111128902A TWI806724B TW I806724 B TWI806724 B TW I806724B TW 111128902 A TW111128902 A TW 111128902A TW 111128902 A TW111128902 A TW 111128902A TW I806724 B TWI806724 B TW I806724B
- Authority
- TW
- Taiwan
- Prior art keywords
- key
- initiator
- receiving end
- receiver
- key factor
- Prior art date
Links
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Circuits Of Receivers In General (AREA)
Abstract
Description
本發明是有關於一種用於決定金鑰的系統及方法。The present invention relates to a system and method for determining a key.
目前,決定(協商)金鑰的方法通常需要在加密的通訊下才能執行。舉例來說,若多個設備需要進行群組通話,則發起端設備需要與各接收端設備建立秘密通道,才能進行金鑰的決定/協商。此種作法效率較低。Currently, methods of determining (negotiating) keys usually require encrypted communication to be performed. For example, if multiple devices need to conduct a group call, the originating device needs to establish a secret channel with each receiving device to determine/negotiate the key. This approach is less efficient.
本發明提供一種用於決定金鑰的系統及方法,可提高金鑰的安全性以及決定金鑰的效率。The invention provides a system and method for determining a key, which can improve the security of the key and the efficiency of determining the key.
本發明的用於決定金鑰的系統包括發起端設備以及接收端設備。接收端設備通訊連接至發起端設備,其中發起端設備傳送發起端金鑰因子至接收端設備;接收端設備傳送接收端金鑰因子至發起端設備;發起端設備利用接收端金鑰因子計算出協商金鑰,並且接收端設備利用發起端金鑰因子計算出協商金鑰。The system for determining a key of the present invention includes an initiator device and a receiver device. The receiver device communicates with the initiator device, where the initiator device transmits the initiator key factor to the receiver device; the receiver device transmits the receiver key factor to the initiator device; the initiator device uses the receiver key factor to calculate A key is negotiated, and the receiving end device calculates the negotiation key by using the key factor of the initiator.
本發明的用於決定金鑰的方法包括:由發起端設備傳送發起端金鑰因子至接收端設備;由接收端設備傳送接收端金鑰因子至發起端設備;以及由發起端設備利用接收端金鑰因子計算出協商金鑰,並且由接收端設備利用所述發起端金鑰因子計算出協商金鑰。The method for determining the key of the present invention includes: the initiator device transmits the initiator key factor to the receiver device; the receiver device transmits the receiver key factor to the initiator device; and the initiator device utilizes the receiver The key factor calculates the negotiation key, and the receiving end device calculates the negotiation key by using the initiator key factor.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.
圖1是根據本發明的一實施例繪示的一種用於決定金鑰的系統100的示意圖。在本實施例中,系統100可以是基於網際網路協定的語音傳輸(VoIP,Voice Over Internet Protocol)的系統。系統100可包括發起端設備110以及接收端設備120。詳細而言,接收端設備120可包括接收端設備120a、接收端設備120b、接收端設備120c、…直到接收端設備120n。接收端設備120(即,接收端設備120a、接收端設備120b、接收端設備120c、…直到接收端設備120n)可(分別)通訊連接至發起端設備110。例如,接收端設備120可利用傳輸控制協定/網際網路協定(TCP/IP)連接至發起端設備110。進一步而言,系統100可包括群組會議控制設備130。群組會議控制設備130例如是對話啟動協定代理伺服器(SIP Proxy Server,Session Initiation Protocol Proxy Server)。接收端設備120(即,接收端設備120a、接收端設備120b、接收端設備120c、…直到接收端設備120n)可通過群組會議控制設備130以(分別)通訊連接至發起端設備110。FIG. 1 is a schematic diagram of a
發起端設備110(或接收端設備120或群組會議控制設備130)具有處理單元(如:處理器但不限於此)、通訊單元(如:各類通訊晶片、藍芽晶片、WiFi晶片等但不限於此)及儲存單元(如:可移動隨機存取記憶體、快閃記憶體、硬碟等但不限於此)等運行發起端設備110(或接收端設備120或群組會議控制設備130)的必要構件。The initiator device 110 (or the
在本實施例中,發起端設備110可儲存質數(Prime Number)
。質數
例如是大數值的質數。質數
的用途將於後續說明。
In this embodiment, the
圖2是根據本發明的一實施例繪示的用於決定金鑰的方法的信令圖。在此需先說明的是,如圖1所示,由於接收端設備120(即,接收端設備120a、接收端設備120b、接收端設備120c、…直到接收端設備120n)是通過群組會議控制設備130以(分別)通訊連接至發起端設備110,為了方便說明,圖2的各步驟並未繪示群組會議控制設備130。換言之,圖2所示的各步驟中,發起端設備110是經由群組會議控制設備130以與接收端設備120a互相傳送或者接收訊息、發起端設備110是經由群組會議控制設備130以與接收端設備120b互相傳送或者接收訊息、…直到發起端設備110是經由群組會議控制設備130以與接收端設備120n互相傳送或者接收訊息。FIG. 2 is a signaling diagram illustrating a method for determining a key according to an embodiment of the present invention. What needs to be explained here is that, as shown in FIG. 1 , since the receiving end device 120 (that is, the receiving
請參照圖2。當發起端設備110欲發起金鑰的協商時(例如,當發起端設備110欲發起SIP通話時),在步驟S201中,發起端設備110可利用質數
獲得原根(Primitive Root)
。詳細而言,發起端設備110可產生以質數
為除數模數(Modulo)運算的原根
。接著,發起端設備110可傳送群組金鑰協商邀請訊息(圖2未繪示)至接收端設備120a、接收端設備120b、接收端設備120c、…直到接收端設備120n,以邀請此些接收端設備加入金鑰的協商。在此假設接收端設備120a傳送了群組金鑰協商參與請求(圖2未繪示)至發起端設備110(即,接收端設備120a欲參與金鑰的協商)。發起端設備110可利用原根
以及發起端質數
計算出發起端金鑰因子
,其中發起端質數
小於質數
。詳細而言,發起端設備110可從小於質數
的各質數中,選出(例如,隨機選出)發起端質數
,並且根據下述公式1計算出發起端金鑰因子
。
… (公式1)
Please refer to Figure 2. When the
在步驟S202中,發起端設備110可傳送質數
、原根
以及發起端金鑰因子
至接收端設備120a。
In step S202, the
在步驟S203中,接收端設備120a可利用原根
以及接收端質數
計算出接收端金鑰因子
,其中接收端質數
小於質數
。詳細而言,接收端設備120a可從小於質數
的各質數中,選出(例如,隨機選出)接收端質數
,並且根據下述公式2計算出接收端金鑰因子
。
… (公式2)
In step S203, the
在步驟S204中,接收端設備120a可傳送接收端金鑰因子
至發起端設備110。
In step S204, the
在步驟S205中,發起端設備110可利用接收端金鑰因子
計算出協商金鑰
。具體而言,發起端設備110可利用接收端金鑰因子
以及發起端質數
,以根據下述公式3計算出協商金鑰
。
… (公式3)
In step S205, the
在步驟S206中,接收端設備120a可利用發起端金鑰因子
計算出協商金鑰
。具體而言,接收端設備120a可利用發起端金鑰因子
以及接收端質數
,以根據下述公式4計算出協商金鑰
。
… (公式4)
In step S206, the
在此需說明的是,系統100可基於迪菲赫爾曼金鑰交換(Diffie Hellman Key Exchange)技術。因此,上述公式3以及公式4所計算出的協商金鑰
將會是相同數值。在完成上述步驟S201~S206之後,發起端設備110以及接收端設備120a已完成金鑰的協商(亦稱,第一次金鑰協商)。例如,發起端設備110以及接收端設備120a可利用協商金鑰
來執行SIP通話。
It should be noted here that the
在此假設接收端設備120b也傳送了群組金鑰協商參與請求(圖2未繪示)至發起端設備110(即,接收端設備120b也欲參與金鑰的協商)。在步驟S207中,發起端設備110可利用原根
以及協商金鑰
,以根據下述公式5計算出更新的發起端金鑰因子
。
… (公式5)
It is assumed here that the
在步驟S208中,發起端設備110可傳送質數
、原根
以及發起端金鑰因子
至接收端設備120b。
In step S208, the
在步驟S209中,接收端設備120b可利用原根
以及接收端質數
計算出接收端金鑰因子
,其中接收端質數
小於質數
。詳細而言,接收端設備120b可從小於質數
的各質數中,選出(例如,隨機選出)接收端質數
,並且根據下述公式6計算出接收端金鑰因子
。
… (公式6)
In step S209, the
在步驟S210中,接收端設備120b可傳送接收端金鑰因子
至發起端設備110。
In step S210, the
在步驟S211中,發起端設備110可利用接收端金鑰因子
計算出(更新的)協商金鑰
。詳細而言,發起端設備110可利用接收端金鑰因子
以及(舊的)協商金鑰
,以根據下述公式7計算出(更新的)協商金鑰
。
… (公式7)
In step S211, the
在步驟S212中,接收端設備120b可利用發起端金鑰因子
以及接收端質數
,以根據下述公式8計算出協商金鑰
。
… (公式8)
In step S212, the
在步驟S213中,發起端設備110可傳送接收端金鑰因子
至接收端設備120a。
In step S213, the
在步驟S214中,接收端設備120a可將接收端金鑰因子
做為發起端金鑰因子,以利用發起端金鑰因子
以及(舊的)協商金鑰
,並根據下述公式9計算出更新的協商金鑰
。
… (公式9)
In step S214, the
如前述實施例所說明的,由於系統100可基於迪菲赫爾曼金鑰交換技術,上述公式7、公式8以及公式9所計算出的協商金鑰
將會是相同數值。在完成上述步驟S207~S214之後,發起端設備110、接收端設備120a以及接收端設備120b已完成金鑰的協商(亦稱,第二次金鑰協商)。例如,發起端設備110、接收端設備120a以及接收端設備120b可利用協商金鑰
來執行SIP通話。
As described in the foregoing embodiments, since the
在此假設,接收端設備120c、接收端設備120d、…、直到接收端設備120n-1也如上述實施例所說明的,依序參與了金鑰的協商(即,第三次金鑰協商中計算出協商金鑰
、第四次金鑰協商中計算出協商金鑰
、…、直到第n-1次金鑰協商中計算出協商金鑰
)。基此,在第n-1次金鑰協商完成之後,發起端設備110以及接收端設備120a、接收端設備120b、…、直到接收端設備120n-1都已獲得協商金鑰
。為了方便說明,圖2並未繪示上述的第三次金鑰協商、第四次金鑰協商、…、直到第n-1次金鑰協商。
It is assumed here that the receiving
在此假設接收端設備120n也傳送了群組金鑰協商參與請求(圖2未繪示)至發起端設備110(即,接收端設備120n欲參與金鑰的協商)。在步驟S215中,發起端設備110可利用原根
以及(舊的)協商金鑰
,以根據下述公式10計算出更新的發起端金鑰因子
。
… (公式10)
It is assumed here that the
在步驟S216中,發起端設備110可傳送質數
、原根
以及發起端金鑰因子
至接收端設備120n。
In step S216, the
在步驟S217中,接收端設備120n可利用原根
以及接收端質數
計算出接收端金鑰因子
,其中接收端質數
小於質數
。詳細而言,接收端設備120n可從小於質數
的各質數中,選出(例如,隨機選出)接收端質數
,並且根據下述公式11計算出接收端金鑰因子
。
… (公式11)
In step S217, the
在步驟S218中,接收端設備120n可傳送接收端金鑰因子
至發起端設備110。
In step S218, the
在步驟S219中,發起端設備110可利用接收端金鑰因子
計算出(更新的)協商金鑰
。詳細而言,發起端設備110可利用接收端金鑰因子
以及(舊的)協商金鑰
,以根據下述公式12計算出更新的協商金鑰
。
… (公式12)
In step S219, the
在步驟S220中,接收端設備120n可利用發起端金鑰因子
以及接收端質數
,以根據下述公式13計算出協商金鑰
。
… (公式13)
In step S220, the
在此需先說明的是,為了便於理解,下述步驟S221(a)為在發起端設備110以及接收端設備120a之間執行的步驟,且S222(a)為接收端設備120a執行的步驟。相似的,下述步驟S221(b)為在發起端設備110以及接收端設備120b之間執行的步驟,且S222(b)為接收端設備120b執行的步驟。依此類推,直到下述步驟S221(n-1)為在發起端設備110以及接收端設備120n-1之間執行的步驟,且S222(n-1)為接收端設備120n-1執行的步驟。進一步而言,發起端設備110可傳送接收端金鑰因子至接收端設備120a、接收端設備120b、接收端設備120c、…以及接收端設備120n-1的每一者。以下將繼續說明。It should be explained here that, for ease of understanding, the following step S221(a) is a step performed between the
在步驟S221(a)中,發起端設備110可傳送接收端金鑰因子
至接收端設備120a。
In step S221(a), the
在步驟S222(a)中,接收端設備120a可將接收端金鑰因子
做為發起端金鑰因子,以利用發起端金鑰因子
以及(舊的)協商金鑰
,並根據下述公式14計算出更新的協商金鑰
。
… (公式14)
In step S222(a), the
如圖2所示,與步驟S221(a)相似的S221(b)、S221(c)、…、直到S221(n-1)將會被執行。另外,與步驟S222(a)相同的S222(b)、S222 (c)、…、直到S222(n-1)將會被執行。例如,在步驟S221(n-1)中,發起端設備110可傳送接收端金鑰因子
至接收端設備120n-1。此外,在步驟S222(n-1)中,相同於上述步驟S222(a),接收端設備120n-1可利用上述公式14計算出更新的協商金鑰
。換言之,接收端設備120a、接收端設備120b、…直到接收端設備120n-1將會利用相同的方式計算出更新的協商金鑰
。
As shown in FIG. 2, S221(b), S221(c), . . . up to S221(n-1) similar to step S221(a) will be executed. In addition, S222(b), S222(c), . . . up to S222(n-1) which are the same as step S222(a) will be executed. For example, in step S221(n-1), the
如前述實施例所說明的,由於系統100可基於迪菲赫爾曼金鑰交換技術,上述公式12、公式13以及公式14所計算出的協商金鑰
將會是相同數值。在完成上述步驟S215~S220,以及上述步驟S221(a)、步驟S222(a)、步驟S221(b)、步驟S222(b)、…、直到步驟S221(n-1)及步驟S222(n-1)之後,發起端設備110以及各接收端設備(接收端設備120a、接收端設備120b、…、接收端設備120n-1以及接收端設備120n)已完成金鑰的協商(亦稱,第n次金鑰協商)。例如,發起端設備110以及各接收端設備(接收端設備120a、接收端設備120b、…、直到接收端設備120n-1以及接收端設備120n)可利用協商金鑰
來執行SIP通話。
As described in the foregoing embodiments, since the
圖3是根據本發明的一實施例繪示的一種用於決定金鑰的方法的流程圖。在步驟S301中,由發起端設備傳送發起端金鑰因子至接收端設備。在步驟S302中,由接收端設備傳送接收端金鑰因子至發起端設備。在步驟S303中,由發起端設備利用接收端金鑰因子計算出協商金鑰,並且由接收端設備利用發起端金鑰因子計算出協商金鑰。FIG. 3 is a flow chart of a method for determining a key according to an embodiment of the present invention. In step S301, the initiator device transmits the initiator key factor to the receiver device. In step S302, the receiver device transmits the receiver key factor to the initiator device. In step S303, the initiator device calculates the negotiation key by using the receiver key factor, and the receiver device calculates the negotiation key by using the initiator key factor.
綜上所述,本發明的用於決定金鑰的系統及方法可由發起端設備與各接收端設備(分別)執行金鑰協商以決定金鑰。換言之,此些金鑰協商為發起端設備與特定接收端設備之間的,點對點金鑰協商,第三方將無法獲得此金鑰,因此可提高金鑰的安全性。除此之外,本發明的用於決定金鑰的系統及方法可以不需預先建立秘密通道,從而提高了決定金鑰的效率。To sum up, in the system and method for determining the key of the present invention, the initiator device and each receiver device (respectively) perform key negotiation to determine the key. In other words, such key negotiation is a point-to-point key negotiation between the initiator device and the specific receiver device, and the third party will not be able to obtain the key, thus improving the security of the key. In addition, the system and method for determining the key of the present invention do not need to establish a secret channel in advance, thereby improving the efficiency of determining the key.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed above with the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention should be defined by the scope of the appended patent application.
100:用於決定金鑰的系統
110:發起端設備
120a~120n:接收端設備
130:群組會議控制設備
S201~S220、S221(a)、S222(a)、S221(b)、S222(b)、S221(n-1)、S222(n-1)、S301~S303:步驟
100: The system used to determine the key
110: Initiating
圖1是根據本發明的一實施例繪示的一種用於決定金鑰的系統的示意圖。 圖2是根據本發明的一實施例繪示的用於決定金鑰的方法的信令圖。 圖3是根據本發明的一實施例繪示的一種用於決定金鑰的方法的流程圖。 FIG. 1 is a schematic diagram of a system for determining a key according to an embodiment of the present invention. FIG. 2 is a signaling diagram illustrating a method for determining a key according to an embodiment of the present invention. FIG. 3 is a flow chart of a method for determining a key according to an embodiment of the present invention.
S301~S303:步驟 S301~S303: steps
Claims (9)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111128902A TWI806724B (en) | 2022-08-02 | 2022-08-02 | System and method for determining key |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW111128902A TWI806724B (en) | 2022-08-02 | 2022-08-02 | System and method for determining key |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI806724B true TWI806724B (en) | 2023-06-21 |
TW202408200A TW202408200A (en) | 2024-02-16 |
Family
ID=87803233
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW111128902A TWI806724B (en) | 2022-08-02 | 2022-08-02 | System and method for determining key |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI806724B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW543312B (en) * | 1999-03-25 | 2003-07-21 | Koninkl Philips Electronics Nv | Multi-node encryption and key delivery |
TWI434577B (en) * | 2011-09-23 | 2014-04-11 | ||
TWI501104B (en) * | 2014-03-06 | 2015-09-21 | Univ Nat Chi Nan | The method of establishing the conversation key |
US20220166616A1 (en) * | 2020-11-24 | 2022-05-26 | International Business Machines Corporation | Key reclamation in blockchain network via oprf |
US20220166614A1 (en) * | 2020-11-25 | 2022-05-26 | Cryptography Research, Inc. | System and method to optimize generation of coprime numbers in cryptographic applications |
-
2022
- 2022-08-02 TW TW111128902A patent/TWI806724B/en active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW543312B (en) * | 1999-03-25 | 2003-07-21 | Koninkl Philips Electronics Nv | Multi-node encryption and key delivery |
TWI434577B (en) * | 2011-09-23 | 2014-04-11 | ||
TWI501104B (en) * | 2014-03-06 | 2015-09-21 | Univ Nat Chi Nan | The method of establishing the conversation key |
US20220166616A1 (en) * | 2020-11-24 | 2022-05-26 | International Business Machines Corporation | Key reclamation in blockchain network via oprf |
US20220166614A1 (en) * | 2020-11-25 | 2022-05-26 | Cryptography Research, Inc. | System and method to optimize generation of coprime numbers in cryptographic applications |
Also Published As
Publication number | Publication date |
---|---|
TW202408200A (en) | 2024-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101516909B1 (en) | Discovery of security associations for key management relying on public keys | |
JP5507688B2 (en) | Secure key management in conferencing systems | |
JP5507689B2 (en) | Secure key management in multimedia communication systems | |
US8238558B2 (en) | Key agreement and re-keying over a bidirectional communication path | |
US9692834B2 (en) | Multimodal conversation transfer | |
US7975140B2 (en) | Key negotiation and management for third party access to a secure communication session | |
CN101582906B (en) | Key agreement method and device | |
US7764945B2 (en) | Method and apparatus for token distribution in session for future polling or subscription | |
KR20150138106A (en) | Efficient secure instant messaging | |
EP2426852A1 (en) | Method and system for implementing secure forking calling session in ip multi-media subsystem | |
JP2014514860A (en) | How to find security associations | |
KR101705440B1 (en) | Hybrid cloud media architecture for media communications | |
EP2911432B1 (en) | Sip based inter-mtc device secure communications method, device, and system | |
TW202037112A (en) | Method of identity authentication for voice over internet protocol call and related device | |
CN111478911A (en) | Instant messaging encryption method adopting lightweight key exchange algorithm | |
CN111064742B (en) | Method, device and related equipment for realizing intranet access based on network agent | |
US8615651B1 (en) | Offline shared security key calculation | |
CN113094722B (en) | Three-party password authentication key exchange method | |
TWI806724B (en) | System and method for determining key | |
KR100656485B1 (en) | System and method for providing pta service | |
CN107395552A (en) | A kind of data transmission method and device | |
Li et al. | A new certificateless authenticated key agreement protocol for SIP with different KGCs | |
JP2013501990A (en) | Automatic session admission | |
CN115208983B (en) | Secure communication method, apparatus, computer device and storage medium | |
CN112738038B (en) | Key negotiation method and device based on asymmetric password authentication |