GithubHelp home page GithubHelp logo

seed256's Introduction

seed256's People

Contributors

leeinuk avatar

Stargazers

JuWon Lee avatar Hyunjun Kim avatar enkunkun avatar souljungkim avatar Jongin Oh avatar

Watchers

 avatar zlagusdbs avatar

seed256's Issues

SeedRoundKey에서 연산이 잘못된 부분이 있어서 정정요청합니다.

작업해 주신 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]; // <= 올바른 연산

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.