Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

CS6515 EXAM 2- COMPLETE EXAM SET Q&A 2026

Rating
-
Sold
-
Pages
16
Grade
A+
Uploaded on
22-05-2026
Written in
2025/2026

CS6515 EXAM 2- COMPLETE EXAM SET Q&A 2026

Institution
CS6515
Course
CS6515

Content preview

1|Page




CS6515 EXAM 2-
COMPLETE EXAM SET Q&A
2026

Basic Properties of MOD - correct-answer -if x:::y MOD N & a:::b MOD N:
1. x+a ::: y+b MOD N
2. xa ::: yb MODN N


Time to multiply or divide 2 n-bit numbers - correct-answer -O(n^2)


Modular Inverse - correct-answer -X is the multiplicative inverse of Z MOD N if:
- (x * z) MOD N = 1


Notation:
x:::z^-1 MOD N
z::::x^-1 MOD N


When does the inverse of x MOD N exist - correct-answer -When GCD(x, N) = 1.
That is x and N don't share a common divisor and are thus "relatively prime"


Properties of Modular Inverses - correct-answer -- if x^-1 MOD N exists, then it's
unique

,2|Page


- x^-1 MOD N doesn't exist when gcd(x, N) > 1


Euclid's Rule - correct-answer -- If x >= y > 0:
- gcd(x, y) = gcd(x MOD y, y)


Note: For Euclid's also that gcd(x, 0) = x


Extended-Euclid's algorithm alpha and beta output params - correct-answer --
Alpha is the inverse of x MOD y
- Beta is the inverse of y MOD x


Fermat's Little Theorem - correct-answer -- If p is prime then for every 1 <= z <= p
- 1:
- z ^ (p-1) ::: 1 MOD P


Note: since 1 <= z <= p - 1 that the gcd(z, p) = 1; they are relatively prime


Euler's Theorem - correct-answer -- for any N,z where gcd(z, N) = 1; that is they
are relatively prime:
- then z^(phi(n)) = 1 mod N


phi(N) = # of integers between 1 & N which are relatively prime to N
phi(N) - is called Euler's totient function


Note: Euler's Theorem is a generalization of Fermat's little theorem for arbitrary N

, 3|Page




RSA Protocol - correct-answer -1. Bob picks 2 n-bit random primes p & q
2. Bob chooses e relatively prime to (p-1)(q-1)
3. Bob publishes his public key (p*q, e)
4. Bob computes his private key: d ::: e^-1 mod (p-1)(q-1)


1. Alice looks up Bob's public key (pq, e)
2. Alice computes y:::m^e MOD N


1. Bob receives y
2. Bob decrypted: computes y^d MOD N ::: m


RSA Pitfalls - correct-answer -1. If gcd(m, N) > 1, crypto system is broken
2. m is not too large (m < N)
3. m is not too small, MOD N doesn't do anything
- send m and r, padding message by m + r
4. send same m, e times
- can decrypt message using Chinese remainder theorem


Fermat's Test - correct-answer -- Find z where z ^(r-1) != 1 mod r
--> r is composite
- This is called a Fermat Witness
--> every composite has a Fermat Witness

Written for

Institution
CS6515
Course
CS6515

Document information

Uploaded on
May 22, 2026
Number of pages
16
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$16.09
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
DRVERITY Teachme2-tutor
Follow You need to be logged in order to follow users or courses
Sold
94
Member since
1 year
Number of followers
0
Documents
7773
Last sold
16 hours ago
PROFESSIONAL ACADEMIC TUTOR

Welcome To my Store!! Certified tutor, offering accurate, reliable, and current study materials to support students in their exam preparation and assignments. Aiming to provide the best resources, such as summaries, nursing exam test. Up-to-date exams and assignments, Detailed test banks with verified questions and answers, Elaborate exam solutions, Case studies and discussions I’m committed to providing only high-quality documents to ensure the best outcomes. Get instant access to expertly prepared materials designed to help you excel in your academic journey. Reach out today and take a step closer to achieving your goals! Always be Encouraged to leave a review after a purchase, all complements and comments, positive &amp; Negative are appreciated to guide for better changes.

Read more Read less
3.8

12 reviews

5
6
4
1
3
3
2
0
1
2

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions