• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Java Threshold Signature Package

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,
I'm using this library to encrypt & decrypt. I wrote the final part of the algorithm in order to decrypt. the decryption function is as follows without including the verifiers:
Note: Ci is an array of received decryption shares.a decryption share is the same as SignShare.



the problem is that this code works most of the time but not always. Sometimes I receive the wrong decrypted text and of the wrong length.e.g. when it should return a plaintext of 6 bytes, it returns 8 wrong bytes.
what am I missing? it there a bug in the Library?

Also, it doesn't work when the k=1. this is an easy fix in the poly class.

I would really appreciate it if anyone can help me. my whole application has been built on it and I just found out this error in the testing stage. it is quite late to go with another threshold crypto library.

Thank you..
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well the library you are using is open source, so I can only recommend downloading the source code and attaching it to your debugger, see if you can place a debug point to see why it's returning you 6 instead of 8 characters
 
Sumayah Abdul
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Martijn Verburg wrote:Well the library you are using is open source, so I can only recommend downloading the source code and attaching it to your debugger, see if you can place a debug point to see why it's returning you 6 instead of 8 characters



I am using their source code but I still can't find out the problem. it could be in one of their equations. its full of calculations and I don't know how to figure it out.
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm afraid I can't help out any further , I assume you've posted on their forum/mailing list?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic