KISA에서 제공하는 SEED 256비트 알고리즘의 Java 버전입니다.
leeinuk / seed256 Goto Github PK
View Code? Open in Web Editor NEWSeed256 Java 버전
Seed256 Java 버전
KISA에서 제공하는 SEED 256비트 알고리즘의 Java 버전입니다.
작업해 주신 Java Seed 256 코드를 올려주셔서 참고해서 작업하고 있습니다. 감사합니다.
SeedRoundKey에서 연산이 잘못된 부분이 있어서 정정요청합니다.
T1 계산하는 부분입니다. H의 연산이 잘못되어 있습니다.
SEED256.c의 void SeedRoundKey(DWORD *pdwRoundKey, BYTE *pbUserKey) 에서 아래와 같이 되어 있습니다.
T0 = (((A + C) ^ E ) - F) ^ KC0;
T1 = (((B - D) ^ G ) + H) ^ KC0; // <= T1 연산
Seed256.java에서 public static void SeedRoundKey를 보면
T0 = ((((int) A[0] + (int) C[0]) ^ (int) E[0]) - (int) F[0]) ^ (int) KC[0];
T1 = ((((int) B[0] - (int) D[0]) ^ (int) G[0]) - (int) H[0]) ^ (int) KC[0]; // <= 잘못된 부분
T1 = ((((int) B[0] - (int) D[0]) ^ (int) G[0]) + (int) H[0]) ^ (int) KC[0]; // <= 올바른 연산
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.