Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0465403B2 - - Google Patents
[go: Go Back, main page]

JPH0465403B2 - - Google Patents

Info

Publication number
JPH0465403B2
JPH0465403B2 JP59256641A JP25664184A JPH0465403B2 JP H0465403 B2 JPH0465403 B2 JP H0465403B2 JP 59256641 A JP59256641 A JP 59256641A JP 25664184 A JP25664184 A JP 25664184A JP H0465403 B2 JPH0465403 B2 JP H0465403B2
Authority
JP
Japan
Prior art keywords
key input
gate
key
input
clock
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.)
Expired - Lifetime
Application number
JP59256641A
Other languages
Japanese (ja)
Other versions
JPS61134825A (en
Inventor
Kazuyoshi Okazaki
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.)
NEC Corp
Original Assignee
Nippon Electric Co Ltd
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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP59256641A priority Critical patent/JPS61134825A/en
Publication of JPS61134825A publication Critical patent/JPS61134825A/en
Publication of JPH0465403B2 publication Critical patent/JPH0465403B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Input From Keyboards Or The Like (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は暗号機能を有するマイクロプロセツサ
に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprocessor having a cryptographic function.

〔従来の技術〕[Conventional technology]

従来、マイクロプロセツサを使用した応用例に
於て、特定の者にだけその使用権を認めるものの
中には、それを動作させようとする初期の段階で
暗号を入力するもの、使用方法を極端に複雑にし
たもの、あらかじめ決められた特定の話者の声に
のみ応答するもの、特定の磁気カードなどにのみ
応答するものなどがある。
Conventionally, in applications using microprocessors, there are cases in which the right to use the microprocessor is granted only to a specific person, in which a code is input at the initial stage of operation, or the method of use is extreme. Some are more complex than others, some respond only to the voice of a specific predetermined speaker, and some respond only to specific magnetic cards.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

暗号を入力する方法は、例えば0〜9のキーで
4桁入力する方法で、この場合は104通り、つま
り10000通りの組合せがある、組合せを多くする
には入力する桁数を多くすればよいが、あらかじ
め設定された暗号数字との比較回路がそれだけ増
え、又比較するためのプログラムが増大し、プロ
グラムメモリを内蔵した1チツプ・マイクロプロ
セツサでは、本来処理しなければならないプログ
ラムの領域を圧迫すると云う欠点がある。またこ
の方法は根気よく順番に入力すれば必ず解読でき
ると云う欠点もある。
The method of entering the code is, for example, by entering 4 digits using the keys 0 to 9. In this case, there are 10 4 combinations, or 10,000 combinations. To increase the number of combinations, input more digits. However, the number of comparison circuits with preset cipher numbers increases, and the number of programs for comparison increases, making it difficult for a single-chip microprocessor with built-in program memory to process the program area. It has the disadvantage of being pressurized. Another disadvantage of this method is that it is always possible to decipher the information if you patiently enter the information in order.

使用方法を複雑にするや方は、特定の使用者さ
えも使うのに不便を感じる為余り良い方法とは云
えない。特定話者を認識する方法は現在では未だ
価格が高く、非常に複雑な周辺回路が必要とな
る。磁気カードを用いる方法は、カードリーダー
が必要となり廉価な機器には適用できない。
Making the method of use complicated is not a good method because even certain users find it inconvenient to use. Currently, methods for recognizing specific speakers are still expensive and require very complex peripheral circuitry. The method using a magnetic card requires a card reader and cannot be applied to inexpensive devices.

以上の様に従来のマイクロプロセツサを使用し
た機器に於る暗号機能は、解読が難解でかつ低価
格で実施できるものが無かつた。
As described above, the cryptographic functions in devices using conventional microprocessors are difficult to decipher and cannot be implemented at low cost.

〔問題点を解決するための手段〕 電源投入後の一定期間を作り出す回路と、キー
入力端子を有するマイクロプロセツサにおいて、
キー入力されたデータと予め設定されたデータと
を比較する手段と、キー入力動作自身によつてつ
くられる信号をクロツクとして入力するシフトレ
ジスタと、該シフトレジスタの出力で決められる
入力順で前記一定期間内に前記比較結果を順次ラ
ツチするラツチと、前記ラツチされた全ての比較
結果が一致していなければ動作クロツクの供給を
禁止する手段を有することにより、少ないキーに
よる暗号コード入力方式でも暗号の複雑さを拡大
することで解読がかなり難解な暗号コード体系を
容易に実現することが可能となる。
[Means for solving the problem] In a microprocessor that has a circuit that generates a certain period of time after power is turned on and a key input terminal,
means for comparing key-input data with preset data; a shift register into which a signal generated by the key-in operation itself is input as a clock; By having a latch that sequentially latches the comparison results within a period and a means for prohibiting the supply of the operating clock if all the latched comparison results do not match, it is possible to perform encryption even with a cryptographic code input method using a small number of keys. By increasing the complexity, it becomes possible to easily realize a cryptographic code system that is quite difficult to decipher.

〔実施例〕〔Example〕

次に本発明について図面を参照して説明する。
第1図は本発明の一実施例である、周波数入力端
子1には水晶振動子39を接続することにより、
マイクロプロセツサに内蔵された交流アンプ27
で発振し基準の周波数が得られる。電源端子5に
電源が印加されると、リセツト回路6で作られる
リセツト信号7により、カウンタ2,28〜3
0,ラツチ21〜24、シフトレジスタ31〜3
4を全てリセツトすると共に、水晶振動子39に
よる発振が開始される。キー入力端子8〜11に
はモメンタリキー40が接続され、それらのキー
40が押下されるとキー入力端子8〜11にはハ
イレベルが印加される、キー入力端子8〜11は
内部のプルダウン抵抗26によりプルダウンされ
ているので、キー40を押下しない場合はロウレ
ベルになる、キー入力端子8〜11の状態はプロ
グラマブル・ロジツク・アレイ13により変換さ
れラツチ21〜24の入力データとなる。また、
チヤタリング・キヤセル回路15を通つた後、
ORゲート16に入力される。従つて、いずれか
のキー40を押下するとORゲート16の出力は
ハイレベルとなり、NANDゲート35及びNOR
ゲート37の入力もハイレベルとなる。シフトレ
ジスタ31〜34の出力はリセツト信号7により
初期状態はロウレベルになつているので、NOR
ゲート38の出力はハイレベル、インバータ36
の出力もハイレベルになる。このインバータ36
の出力はシフトレジスタ31〜34に4クロツク
入力する迄ハイレベルが続き、4クロツク目が入
力されるとロウレベルとなり、NANDゲート3
5の入力をロウレベルにして、シフトレジスタ3
1〜34にクロツクが入力されるのを禁止する、
つまり、リセツト信号7が出力された後、いずれ
かのキーを4回押下すると自動的にシフトレジス
タ31〜34のシフト動作を停止する。
Next, the present invention will be explained with reference to the drawings.
FIG. 1 shows an embodiment of the present invention, in which a crystal resonator 39 is connected to the frequency input terminal 1.
AC amplifier 27 built into the microprocessor
The reference frequency is obtained by oscillating at . When power is applied to the power supply terminal 5, the reset signal 7 generated by the reset circuit 6 resets the counters 2, 28 to 3.
0, latches 21-24, shift registers 31-3
At the same time, the crystal resonator 39 starts oscillating. Momentary keys 40 are connected to key input terminals 8 to 11, and when those keys 40 are pressed, a high level is applied to key input terminals 8 to 11. Key input terminals 8 to 11 are connected to internal pull-down resistors. Since the key input terminals 8 to 11 are pulled down by 26, they become low level when the key 40 is not pressed.The states of the key input terminals 8 to 11 are converted by the programmable logic array 13 and become input data to the latches 21 to 24. Also,
After passing through the chattering/causing circuit 15,
It is input to OR gate 16. Therefore, when any key 40 is pressed, the output of the OR gate 16 becomes high level, and the output of the NAND gate 35 and NOR gate 16 becomes high level.
The input of gate 37 also becomes high level. The outputs of the shift registers 31 to 34 are initially at low level due to the reset signal 7, so the NOR
Output of gate 38 is high level, inverter 36
The output also becomes high level. This inverter 36
The output remains high until four clocks are input to the shift registers 31 to 34, and when the fourth clock is input, it becomes low level and the NAND gate 3
5 input to low level, shift register 3
Prohibit clock input from 1 to 34.
That is, if any key is pressed four times after the reset signal 7 is output, the shift operations of the shift registers 31 to 34 are automatically stopped.

一方、ORゲート16出力はNORゲート37の
他方の入力であるゲート信号12がロウレベルの
間だけ、NORゲート37を反転して通過し
NANDゲート17〜20へ入力される。NAND
ゲート17〜20の出力はラツチ21〜24のク
ロツクとなる。従つて、ゲート信号12がロウレ
ベルの期間にキー入力端子8〜11に4回のキー
入力があると、キー入力のデータはPLA13を
介してラツチ21〜24に順番にラツチされる。
On the other hand, the output of the OR gate 16 is inverted and passed through the NOR gate 37 only while the gate signal 12, which is the other input of the NOR gate 37, is at a low level.
It is input to NAND gates 17-20. NAND
The outputs of gates 17-20 provide the clocks for latches 21-24. Therefore, when there are four key inputs to the key input terminals 8-11 while the gate signal 12 is at a low level, the data of the key inputs are sequentially latched into the latches 21-24 via the PLA 13.

最初にラツチされるのはPLA出力信号14の
データである。この信号がハイレベルになる為に
は、キー入力端子8〜11のデータは1000でなけ
ればならない。
The data on the PLA output signal 14 is latched first. In order for this signal to become high level, the data at the key input terminals 8 to 11 must be 1000.

次のデータは0010,0001,0100となる。つまり
キー入力端子8、キー入力端子10、キー入力端
子11、キー入力端子9の順にハイレベルにする
必要がある。このようにして、ゲート信号12ロ
ウレベルの期間に上述のPLA13で規定された
通りのキー40を押下(暗号コードを入力)する
ことによりラツチ21〜24の出力は全てハイレ
ベルとなり、ANDゲート25の出力には周波数
入力端子1から入力される周波数をカウンタ2で
1/2分周した周波数がCPUのクロツクとして現わ
れる。逆に、規定のキー入力をしない限り、
CPUにはクロツクが供給されない。
The next data will be 0010, 0001, 0100. In other words, it is necessary to set the key input terminal 8, key input terminal 10, key input terminal 11, and key input terminal 9 to a high level in this order. In this way, by pressing the key 40 (inputting the encryption code) as specified in the above-mentioned PLA 13 during the period when the gate signal 12 is low level, the outputs of the latches 21 to 24 all become high level, and the output of the AND gate 25 becomes high level. The frequency obtained by dividing the frequency input from the frequency input terminal 1 into 1/2 by the counter 2 appears as the CPU clock at the output. Conversely, unless the specified key input is made,
No clock is supplied to the CPU.

ゲート信号12のロウレベルの期間は周波数入
力端子1の周波数とカウンタ2,28〜30の段
数によつて決まるが、上記実施例の動作を第2図
に示すように、仮に入力周波数を1MHZ、カウン
タ2,30を1/2分周、カウンタ28〜29の1/5
分周を10段とする合計1/2×2×510=1/39062579
分周となり、ロウレベルの立下り(第2図のa
点)は電源端子5に電源を印加してから39.06秒
後、ロウレベルの期間(第2図のa点〜6点)は
同じく39.06秒となる。
The low level period of the gate signal 12 is determined by the frequency of the frequency input terminal 1 and the number of stages of the counters 2, 28 to 30, but the operation of the above embodiment is shown in FIG . Divide counters 2 and 30 by 1/2, counters 28-29 by 1/5
Total 1/2 x 2 x 5 10 = 1/39062579 with 10 stages of frequency division
The frequency is divided, and the low level falls (a in Figure 2).
Point) is 39.06 seconds after the power is applied to the power supply terminal 5, and the low level period (points a to 6 in FIG. 2) is also 39.06 seconds.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は少ないキーによ
る暗号コード入力方式でも入力する時間に制限を
設けることにより、解読がかなり難解な暗号コー
ド体系を比較的安価に実現できる効果がある。
As described above, the present invention has the effect of making it possible to realize a cryptographic code system that is quite difficult to decipher at a relatively low cost by setting a limit on the input time even in a cryptographic code input method using a small number of keys.

設定データ(暗号コード)はPLAの内容を変
更することにより、容易に変えることが出来、実
施例では44=256通りが可能である。またより複
雑にするには1回のキー入力に複数のキーを同時
に押下することも考えられ、その場合には154
50625通りとなる。これに加え、カウンタの段数
を操作することにより、キー入力有効期間も比較
的容易に変更できるので、暗号の複雑さを無限に
拡大することが可能である。
The setting data (encryption code) can be easily changed by changing the contents of the PLA, and in the embodiment, 4 4 = 256 settings are possible. Also, to make it more complicated, it is possible to press multiple keys at the same time for one key input, in which case 15 4 =
There are 50625 ways. In addition, the key input validity period can be changed relatively easily by manipulating the number of stages of the counter, so it is possible to increase the complexity of the cipher indefinitely.

また、これらの機能をマイクロプロセツサのプ
ログラム自体で構成させ得ることは言うまでもな
い。
Furthermore, it goes without saying that these functions can be configured by the microprocessor program itself.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明の暗号機能を備えたマイクロプ
ロセツサの一実施例を示すブロツク図、第2図そ
の動作を説明するタイミングチヤートである。 1……周波数入力端子、2……フリツプフロツ
プ、3……クロツク信号、4……CPUクロツク
信号、5……電源端子、6……リセツト信号発生
回路、7……リセツト信号、8〜11……キー入
力端子、12……ゲート信号、13……プログラ
マブル・ロジツク・アレイ(PLA)、14……
PLA出力信号、15……チヤタリング・キヤン
セル回路、16……ORゲート、17〜20……
NANDゲート、21〜24……ラツチ、25…
…ANDゲート、26……プルダウン抵抗、27
……交流アンプ、28〜30……カウンタ、31
〜34……シフトレジスタ、35……NANDゲ
ート、36……インバータ、37〜38……
NORゲート、39……水晶振動子、40……モ
ーメンタリーキー。
FIG. 1 is a block diagram showing an embodiment of a microprocessor having an encryption function according to the present invention, and FIG. 2 is a timing chart illustrating its operation. 1... Frequency input terminal, 2... Flip-flop, 3... Clock signal, 4... CPU clock signal, 5... Power supply terminal, 6... Reset signal generation circuit, 7... Reset signal, 8-11... Key input terminal, 12... Gate signal, 13... Programmable logic array (PLA), 14...
PLA output signal, 15...Chattering cancel circuit, 16...OR gate, 17-20...
NAND gate, 21-24...Latch, 25...
...AND gate, 26...Pull-down resistor, 27
...AC amplifier, 28-30...Counter, 31
~34...Shift register, 35...NAND gate, 36...Inverter, 37-38...
NOR gate, 39...crystal oscillator, 40...momentary key.

Claims (1)

【特許請求の範囲】[Claims] 1 電源投入後の一定期間を作り出す回路と、キ
ー入力端子を有するマイクロプロセツサにおい
て、キー入力されたデータと予め設定されたデー
タとを比較する手段と、キー入力動作自身によつ
てつくられる信号をクロツクとして入力するシフ
トレジスタと、該シフトレジスタの出力で決めら
れる入力順で前記一定期間内に前記比較結果を順
次ラツチするラツチと、前記ラツチされた全ての
比較結果が一致していなければ動作クロツクの供
給を禁止する手段を有することを特徴とするマイ
クロプロセツサ。
1. A circuit that generates a certain period of time after power is turned on, a means for comparing key input data with preset data in a microprocessor having a key input terminal, and a signal generated by the key input operation itself. a shift register that inputs the clock as a clock, a latch that sequentially latches the comparison results within the certain period in the input order determined by the output of the shift register, and operates if all the latched comparison results do not match. A microprocessor characterized in that it has means for inhibiting clock supply.
JP59256641A 1984-12-05 1984-12-05 Microprocessor Granted JPS61134825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59256641A JPS61134825A (en) 1984-12-05 1984-12-05 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59256641A JPS61134825A (en) 1984-12-05 1984-12-05 Microprocessor

Publications (2)

Publication Number Publication Date
JPS61134825A JPS61134825A (en) 1986-06-21
JPH0465403B2 true JPH0465403B2 (en) 1992-10-20

Family

ID=17295421

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59256641A Granted JPS61134825A (en) 1984-12-05 1984-12-05 Microprocessor

Country Status (1)

Country Link
JP (1) JPS61134825A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62132405A (en) * 1985-12-04 1987-06-15 Toshiba Corp Crystal oscillation circuit
JP2503291B2 (en) * 1990-06-01 1996-06-05 シャープ株式会社 Small electronic devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS594799B2 (en) * 1979-03-26 1984-01-31 三菱電機株式会社 memory device
JPS5632904U (en) * 1979-08-22 1981-03-31
JPS59121517A (en) * 1982-12-28 1984-07-13 Fujitsu Ltd Clock stop control system

Also Published As

Publication number Publication date
JPS61134825A (en) 1986-06-21

Similar Documents

Publication Publication Date Title
US5117380A (en) Random number generator driven by independent clock pulses asynchronously with system clock pulses
CA1073554A (en) Keyboard circuit
US6954866B2 (en) Method and apparatus for smoothing current consumption in an integrated circuit
KR960003062B1 (en) Clock signal switching circuit and the switching method thereof
ATE196582T1 (en) PERSONAL DEVICE FOR NOTARIAL CERTIFICATION OF DATE AND TIME
JPH0465403B2 (en)
US4037212A (en) Information processing system
JPS6129577B2 (en)
JPH01126793A (en) Portable electronic device
JPH10340183A (en) Random number generating circuit
JPH0362611A (en) Clock generating circuit
JP2002217689A (en) Frequency variable rc oscillator and microcomputer
JPS5922587Y2 (en) random number generator
US4468133A (en) Electronic timepiece
JP2953713B2 (en) Semiconductor integrated circuit
JPS6239453B2 (en)
JP2536816Y2 (en) Timing generation circuit
JPH08335179A (en) One-chip microcomputer
JPS6017179B2 (en) preset circuit
JPS6110231Y2 (en)
JPS6055856B2 (en) memory device
JPS6020224A (en) Semiconductor integrated circuit device
JPS6213851B2 (en)
JPH02268358A (en) Microcomputer
JPH01185727A (en) Information processor