defectivee

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package defectivee implements a common broken rsa implementation where e and phi(n) are not coprime by finding the root of unity modulo n. Given some n, and e we factor n for p and q. We find the totient = (p-1)*(q-1) but it is not coprime to e so RSA is defective since one ciphertext can have many correct solutions. An example was seen in BuckEye CTF 2021: https://github.com/cscosu/buckeyectf-2021/tree/master/crypto/defective_rsa/solve

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attack

func Attack(ks []*keys.RSA, ch chan error)

Attack implements the defectivee method against RSA given at least one prime.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL