Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

Are there any implementations of cryptographic commitment schemes available as API/libraries in Java? I looked around in the security package and couldn't find much. Any help is appreciated.

Thanks

share|improve this question

1 Answer 1

up vote 2 down vote accepted

There is a huge variety of commitment schemes out there; they have various characteristics. The simplest commitment scheme is a simple hash, and Java does offer implementation of the most standard hash functions (through the java.security.MessageDigest API). More advanced commitment schemes allow for proving that the commitment is "correct" (the committed data fulfills some algebraic property) without opening it. Many such schemes have been designed, but none is a standard in its own right, so there is no readily available implementation in standard Java.

(That's the difference between a cryptographic algorithm, as described in an academic article, and a standard: the latter states unambiguously where each bit goes, dealing with boring but important issues like endianness and corner cases.)

At least Java does offer some useful tools for implementing cryptographic algorithms, namely BigInteger and hash functions.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.