Code Monkey home page Code Monkey logo

bilg.sist.lab-deney-l-neer-kr-pto-anal-z's Introduction

BİLGİSAYAR SİSTEMLERİ LAB.

  • Deney: LİNEER KRİPTO ANALİZ
  • 15260038 Furkan Ali Ünal

Sorular:




Soru 1: Transform fonksiyonu ne işe yarar?

  • 56 bitlik anahtarın her roundda 2 ye bölünmesi ve iki parçanın da shift edilerek birleştirilmesi ve yeni bir anahtar oluşturulması da transform işlemidir



Soru 2: Pc-1 fonksiyonu ne işe yarar?

  • Transform edilen anahtarların birleştirildiği, şifrelendiği yerdir



Soru 3: S-Box fonksiyonu ne işe yarar?

  • Önceki aşamada XOR işlemi uygulanan 48 bit in, 8 parçaya bölünmesi S1-S8 S-Box çıkışlarında bu 6 bitlik verilerin 4 bitlik hale çevirilmesidir.



Soru 4: PlainText 1 bitlerinden oluşan bir girdide anahtar 0 bitleri girilir ise ilk roundun çıktısı ne olur?


Plain Text: 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 (64x 1 biti)

Key: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 (64x 0 biti)

Plain text parçalanır:
    L bit: 11111111 11111111 11111111 11111111 (İlk 32 bit)
    R bit: 11111111 11111111 11111111 11111111 (Son 32 bit)

R bit f fonksiyonuna sokulur...

Öncelikle X-OR işlemine tabi tutulacak anahtar hazırlanır

0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0

Parity bitler atılır

Parity bit verinin aktarım sırasında kayba uğramadığını test etmek için kullanılan 1 bitlerini çift sayıya ulaştıracak kontrol bitidir

Sonucunda 56 bitlik anahtar elde edilir. Bu 56 bitlik anahtar 28, 28 bitlik iki parçaya ayrılır

PC1 de elimizdeki parçalar birleştirilir = 56 Adet 0 bitidir ancak yanlardaki 4' er bitler ignore edilir ve 48 bit elde edilir

R bitimiz 32 bitten oluşuyor. Bu bitler expand işlemine alınarak 48 bit haline getirilecektir

Örnek olarak bu tablo kullanılacaktır

Örnek Tablo

Bu tabloya göre expand işlemi sonucu bitlerimiz yine 0 lardan oluşur ancak artık 48 adettir.

Artık X-OR işlemine başlayabiliriz

R bit: 000000 000000 000000 000000 000000 000000 000000 000000
PC-1: 111111 111111 111111 111111 111111 111111 111111 111111

48 Bitlik Sonuç: 111111 111111 111111 111111 111111 111111 111111 111111

Şimdi son olarak bu sonuç S-Box yardımı ile 32 bite çevirilecektir

S-Box S-Box Tablosu

Sonuç: 0011 0011 0011 0011 0011 0011 0011 0011

Şeklinde 32 bit haline getirilir ve L bit ile birleştirilir

Şifrelenmiş mesaj: 00110011 00110011 00110011 00110011 11111111 11111111 11111111 11111111

bilg.sist.lab-deney-l-neer-kr-pto-anal-z's People

Contributors

furkanaliunal avatar

Watchers

 avatar

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.