Cryptographic functionalities (ideal and real) for Java