|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjavax.crypto.spec.DHParameterSpec
public class DHParameterSpec
ÀÌ Å¬·¡½º´Â ¡¸PKCS #3: Diffie-Hellman Key-Agreement Standard¡¹·Î °¡¸®Å°´Â Diffie-Hellman ¾Ë°í¸®ÁòÀ¸·Î »ç¿ëµÇ´Â ÆÄ¶ó¹ÌÅͼ¼Æ®¸¦ ÁöÁ¤ÇÕ´Ï´Ù.
Áß¾ÓÀÇ ±â°üÀº ÆÄ¶ó¹ÌÅ͸¦ »ý¼ºÇØ, ºñ¹Ð۸¦ »ý¼ºÇÏ·Á°í Çϰí ÀÖ´Â 2°³ÀÇ ¿£Æ¼Æ¼¿¡ º¸³À´Ï´Ù. ÆÄ¶ó¹ÌÅÍ´Â ÇÁ¶óÀÓ p
, º£À̽º g
¹× ºñ°ø°³ÀÇ °ªÀÇ ºñÆ® ´ÜÀ§ÀÇ ±æÀÌ l
(¿É¼Ç)ÀÔ´Ï´Ù.
ÁöÁ¤µÈ Áß¾ÓÀÇ ±â°üÀÌ ÆÄ¶ó¹ÌÅÍÀÇ º¹¼öÀÇ ÀνºÅϽº¸¦ »ý¼ºÇÒ ¼ö°¡ ÀÖ¾î º¹¼öÀÇ Áß¾ÓÀÇ ±â°üÀÌ Á¸ÀçÇÒ ¼öµµ ÀÖ½À´Ï´Ù. ½ÇÁ¦, °¢°³ÀÎÀÌ ÀÚ±â ÀÚ½ÅÀÇ Áß¾Ó ±â°üÀÌ µÇ¾î, ¿£Æ¼Æ¼¿¡ ÀÇÇØ ÆÄ¶ó¹ÌÅ͸¦ µû·Î µû·Î ÇÒ ¼öµµ ÀÖ½À´Ï´Ù.
ÀÌ Å¬·¡½º¿¡¼´Â ÁöÁ¤µÈ ÆÄ¶ó¹ÌÅÍ¿¡ ´ëÇÑ °ËÁõÀº ÀüÇô ½ÇÇàµÇÁö ¾Ê½À´Ï´Ù. µû¶ó¼, ÁöÁ¤µÈ °ªÀÌ null ¿©µµ, ±×´ë·Î ¸®Åϵ˴ϴ٠.
KeyAgreement
»ý¼ºÀÚ °³¿ä | |
---|---|
DHParameterSpec (BigInteger p,
BigInteger g)
ÇÁ¶óÀÓ¸ðÁê¶ó½º p ¹× º£À̽º Á¦³×·¹ÀÌÅÍ g ¸¦ »ç¿ëÇØ, Diffie-Hellman
ÆÄ¶ó¹ÌÅÍ ¼¼Æ®¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
DHParameterSpec (BigInteger p,
BigInteger g,
int l)
ÇÁ¶óÀÓ¸ðÁê¶ó½º p , º£À̽º Á¦³×·¹ÀÌÅÍ g ¹× ·£´ý Áö¼ö (ºñ°ø°³ÀÇ °ª)ÀÇ ºñÆ® ´ÜÀ§ÀÇ »çÀÌÁî l ¸¦ »ç¿ëÇØ, Diffie-Hellman
ÆÄ¶ó¹ÌÅÍ ¼¼Æ®¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
BigInteger |
getG ()
º£À̽º Á¦³×·¹ÀÌÅÍ g ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getL ()
·£´ý Áö¼ö (ºñ°ø°³ÀÇ °ª)ÀÇ ºñÆ® ´ÜÀ§ÀÇ »çÀÌÁî l ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
BigInteger |
getP ()
ÇÁ¶óÀÓ¸ðÁê¶ó½º p ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public DHParameterSpec(BigInteger p, BigInteger g)
p
¹× º£À̽º Á¦³×·¹ÀÌÅÍ g
¸¦ »ç¿ëÇØ, Diffie-Hellman
ÆÄ¶ó¹ÌÅÍ ¼¼Æ®¸¦ ±¸ÃàÇÕ´Ï´Ù.
p
- ÇÁ¶óÀÓ¸ðÁê¶ó½ºg
- º£À̽º Á¦³×·¹ÀÌÅÍpublic DHParameterSpec(BigInteger p, BigInteger g, int l)
p
, º£À̽º Á¦³×·¹ÀÌÅÍ g
¹× ·£´ý Áö¼ö (ºñ°ø°³ÀÇ °ª)ÀÇ ºñÆ® ´ÜÀ§ÀÇ »çÀÌÁî l
¸¦ »ç¿ëÇØ, Diffie-Hellman
ÆÄ¶ó¹ÌÅÍ ¼¼Æ®¸¦ ±¸ÃàÇÕ´Ï´Ù.
p
- ÇÁ¶óÀÓ¸ðÁê¶ó½ºg
- º£À̽º Á¦³×·¹ÀÌÅÍl
- ·£´ý Áö¼ö (ºñ°ø°³ÀÇ °ª)ÀÇ ºñÆ® ´ÜÀ§ÀÇ »çÀÌÁî¸Þ¼µåÀÇ »ó¼¼ |
---|
public BigInteger getP()
p
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
p
public BigInteger getG()
g
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
g
public int getL()
l
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
l
. »çÀÌÁî°¡ ¼³Á¤µÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì´Â 0
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.