๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๋ฐ˜์‘ํ˜•

LIMITED1

[JAVA] ๋Œ€์นญํ‚ค ์•”ํ˜ธํ™” ์•Œ๊ณ ๋ฆฌ์ฆ˜ ํ‚ค ์ œํ•œ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ : Illegal key size ๊ฐœ๋ฐœ ์ค‘ ๋Œ€์นญํ‚ค๋กœ ์•”ํ˜ธํ™”ํ•ด์•ผํ•  ์ƒํ™ฉ์ด ์ƒ๊ฒผ๋Š”๋ฐ(DESede/CBC, DES/CBC, AES/CBC ๋“ฑ์˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ด์šฉ), 192 ํ˜น์€ 256 bit์˜ ๋Œ€์นญํ‚ค๋ฅผ ์ด์šฉํ•˜์—ฌ ์•”ํ˜ธํ™”๋ฅผ ํ•  ๊ฒฝ์šฐ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. java.security.InvalidKeyException: Illegal key size ์›์ธ์„ ์ฐพ์•„๋ณด๋‹ˆ Java๋Š” ๊ธฐ๋ณธ์ ์œผ๋กœ JCE ์ •์ฑ…์„ ์ œ๊ณตํ•˜๋Š”๋ฐ ์ด ์ •์ฑ…์€ ๋ฏธ๊ตญ์˜ ์ •์ฑ…์— ๋”ฐ๋ผ 128 bit๋กœ ํ‚ค ๊ธธ์ด๊ฐ€ ์ œํ•œ๋˜์–ด ์žˆ์–ด์„œ ์ด๋ฅผ ์ดˆ๊ณผํ•˜๋Š” ๊ฒฝ์šฐ์—” ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•˜๋Š” ๊ฒƒ ์ด๋‹ค. ์ด ์ •์ฑ…์€ /jre/lib/security/local_policy.jar์˜ default_local.policy ํŒŒ์ผ์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ์œผ๋ฉฐ, ์ •์ฑ… ๋‚ด์šฉ์€ ์•„๋ž˜์™€ ๊ฐ™๋‹ค. // Some countries have import limit.. 2022. 1. 26.
728x90
๋ฐ˜์‘ํ˜•