


















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















Cryptography _chapter
Security of information: Information is an asset that has a value like any other asset. As an asset information needs to be secured from attacks.
Security goals: There are three primary goals in any security service. These are confidentially, integrity and availability.
Confidentiality: The principle of confidentiality is that : only the sender and the reciever should be able to access the contents of a message. Confidentiality gets compromised if an unauthorized person is able to access the message.
Integrity: When the contents of a message are changed after the sender sends it, but before it reaches the reciever, we say that the integrity of the message is lost.
Availability
The principle of availability : is that resources should be available to authorized parties at all times.
OSI SECURITY ARCHITECTURE
The OSI security architecture focuses on security attacks, mechanisms, and services. These can be defined briefly as follows:
Security attack: Security attack is any action that compromises the security of information owned by an organization.
Security mechanism
A process that is designed to detect, prevent, or recover from a security attack.
Security service
A communication service that enhances the security of the data processing systems and the information transfers of an organization.
Threat : A threat is a possible danger that might exploit vulnerability(weakness).
Attack: Attack is an assault on system security that derives from an a deliberate attempt to evade security services and violate the security policy of a system.
TYPES OF ATTACKS
Attacks are classified as passive and active.
A passive attack is :an attempt to learn or make use of information from the system without affecting system resources ;
Active attack is an attempt to alter system resources or affect their operation.
Passive Attacks
Passive attacks are in the nature of eavesdropping(overhearing)b, or monitoring of, transmissions. The goal of the opponent is to obtain information that is being transmitted.
Two types of passive attacks are
The opponent could determine the location and identity of communicating hosts and could observe the frequency and length of messages being exchanged. This information might be useful in guessing the nature of the communication that was taking place.
eg: customer message sent to the bank to perform a transaction .attacker modifies changes the transaction.
Eg: PING flooding
Attacks Passive/active Threatening Snooping
Traffic analysis
passive confidentiality
Modification
Masquerading
Replaying
active integrity
repudiation active availability
ITU-T (International telecommunication Union) develops standards called relating to Telecommunication. X.800 is used to define general security-related architectural elements needed when protection of communication between open systems is required.
Data Confidentiality - Protection of data from unauthorized disclosure.
Confidentiality is the protection of transmitted data from passive attacks snooping and traffic anlysis. Example: when aTCP connection is set up between two systems, this broad protection prevents the release of any user data transmitted over the TCP connection. It can detect modifications (insertion, deletion,replay).
We know that,At each level two entities (N-entity) interact by means of the (N) protocol by transmitting Protocol Data Units (PDU).
Service Data Unit (SDU) is a specific unit of data that has been passed down from an OSI layer, to a lower layer.
services provided for the protection of data from unauthorized disclosure as described below:
Connection confidentiality : This service provides for the confidentiality of all (N)- user-data on an (N)-connection.
Digital Signature : sender can electronically sign the data and receiver can electronically verify the signature.
Data Integrity:
Access Control: these mechanisms enforce access rights to resources. Eg:passswords,PIN
Authentication Exchange : two entities can prove their identities before exchange of messages. Eg: OTP,captcha.
Traffic Padding : The insertion of bits into gaps in a data stream is called traffic padding. This helps to prevent traffic analysis attempts.
Routing Control : Routing control enables selection of secure routes for certain data transmission and allows routing changes, especially when a breach of security is suspected.
Notarization: This is the use of a trusted third party to assure certain properties of a data exchange.
SERVICES TECHNIQUES: security goals can be implemented using security service techniques which are :
cryptography (general) and steganography (specific).
Cryptography
Cryptography, a word with Greek origin, means “secret writing”.
Definition: The science and art of transforming messages to make them secure and immune to attacks.
Earlier,cryptography reffered only to the encrytion and decryption of messages using secert keys, today it is defined as involving three distinct mechanisms:
Alice send a message to Bob, over an insecure channel with the assumption that Eve eavesdropping over the channel.
Alice encrypts the message using an encryption algorithm. Bob decrypts the message using a decryption algorithm.
Symmetric-key encipherment uses a single secret key for both encryption and decryption.
Encryption/decryption can be thought of as electronic locking system.
In symmetric-key enciphering, Alice puts the message in a box and locks the box using the shared secret key ;
Bob unlocks the box with the same key and takes out the messages.
asymmetric Encipherment same as the symmetric-key encipherment, with a few exceptions.
There two keys instead of one; one public key and one private key.
To send a secure message to Bob,
Integer division
If we divide a by n we get q and r.
The relationship between 4 integers can be shown using division relation as
a=q X n + r
a is called dividend , q quotient ,n is the divisor ,r the remainder
eg: in 13 divided by 2 a=13,n=2,q=5,r=
13= 5 X 2 +
Two restrictions
Graph of the relation
Starting from zero we can reach point representing integer a on that line.
We need to move qxn units to right and move r units in same directions.
Eg: for 25/3 a=25 n=3 q=8 and r=
Divisibility
division relation is a=q X n + r
If a is not zero and r=0 in division relation, then
a=qxn.
when we are not Interested in the value of q the we can write the relation as n|a. (or a|n)
we can say that,
Example:
All divisors :
A positive integer can have more than one divisor.
Eg: 32 has 6 divisors (1,2,4,8,16,32)
Common divisors of two integers
Greatest Common Divisor
The greatest common divisor of two positive integers is the largest integer that can divide both integers.
Euclidean Algorithm
Is developed 2000 years ago by Euclid.
To find GCD of two positive integers.
Fact 1: gcd (a, 0) = a
Eg: gcd(2,0)=
Fact 2: gcd (a, b) = gcd (b, r),
where r is the remainder of dividing a by b
eg: gcd(36,10) =gcd(10,6)=gcd(6,4)=gcd(4,2)=gcd(2,0)=
so gcd(36,10) =
Process:
When gcd (a, b) = 1, we say that a and b are relatively prime.
A=210, b=
q r 1 r 2 r 4 210 45 30 1 45 30 15 2 30 15 0
Gcd (a=210, b=45)= 15
A=97, b=
q r 1 r 2 r 4 97 20 17 1 20 17 3 5 17 3 2 1 3 2 1
Gcd of 20 and 97 is 1.
Hw: gcd (2470,1760)
Extended Euclidean Algorithm
Where s and t are two integers.
The extended Euclidean algorithm can
Process