Skip to content

Commit

Permalink
Add partially blind RSA implementation (#445)
Browse files Browse the repository at this point in the history
* Add partially blind RSA implementation

See the specification for more information:
https://datatracker.ietf.org/doc/html/draft-amjad-cfrg-partially-blind-rsa-00

* Apply linter

* Drop internal PrepareRandom function and rename the type

* Remove a couple more dead things

* Address Bas comments

* Apply changes from code review

* Shuffle around the package contents per Armando's feedback

* Add safe prime check for the partially blind RSA constructor

* gofumptd

* Update blindsign/blindrsa/brsa.go

Co-authored-by: Armando Faz <[email protected]>

* Update blindsign/blindrsa/brsa.go

Co-authored-by: Armando Faz <[email protected]>

* Update blindsign/blindrsa/common.go

Co-authored-by: Armando Faz <[email protected]>

* Armando's comments on brsa

* File perms

* Update blindsign/blindrsa/partiallyblindrsa/pbrsa.go

Co-authored-by: Armando Faz <[email protected]>

* Update blindsign/blindrsa/partiallyblindrsa/pbrsa.go

Co-authored-by: Armando Faz <[email protected]>

* Update blindsign/blindrsa/partiallyblindrsa/pbrsa.go

Co-authored-by: Armando Faz <[email protected]>

* Update blindsign/blindrsa/partiallyblindrsa/pbrsa.go

Co-authored-by: Armando Faz <[email protected]>

* Update blindsign/blindrsa/partiallyblindrsa/pbrsa.go

Co-authored-by: Armando Faz <[email protected]>

* Final Armando pass

* Update blindsign/blindrsa/partiallyblindrsa/pbrsa_test.go

Co-authored-by: Armando Faz <[email protected]>

* Fix comment

* Refactoring to hide internals.

* Updates based on latest draft changes

* Add test vector verification

---------

Co-authored-by: Armando Faz <[email protected]>
Co-authored-by: armfazh <[email protected]>
  • Loading branch information
3 people authored Jul 6, 2023
1 parent 946a259 commit afe0bef
Show file tree
Hide file tree
Showing 11 changed files with 1,489 additions and 521 deletions.
342 changes: 0 additions & 342 deletions blindsign/blindrsa/blindrsa.go

This file was deleted.

Loading

0 comments on commit afe0bef

Please sign in to comment.