edu.vt.middleware.crypt.Randomizable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vt-crypt Show documentation
Show all versions of vt-crypt Show documentation
Library for performing common cryptographic operations
/*
$Id$
Copyright (C) 2007-2011 Virginia Tech.
All rights reserved.
SEE LICENSE FOR MORE INFORMATION
Author: Middleware Services
Email: [email protected]
Version: $Revision$
Updated: $Date$
*/
package edu.vt.middleware.crypt;
/**
* Describes algorithms that support initialization with an arbitrary amount of
* random data.
*
* @author Middleware Services
* @version $Revision: 3 $
*/
public interface Randomizable
{
/**
* Gets the number of random bytes used for calculations that need random
* data.
*
* @return Number of bytes of random data.
*/
int getRandomByteSize();
/**
* Sets the number of random bytes used for calculations that need random
* data.
*
* @param size Number of bytes to obtain from random provider.
*/
void setRandomByteSize(int size);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy