Package anbxj
Class Crypto_ByteArray
java.lang.Object
anbxj.Crypto_ByteArray
- All Implemented Interfaces:
Serializable
Byte Array: a custom implementation of a byte array, used to store the result
of various cryptographic functions
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCrypto_ByteArray
(byte[] digest) Constructs a Crypto_ByteArray with the given byte array.Crypto_ByteArray
(byte[] digest, String comment) Constructs a Crypto_ByteArray with the given byte array and comment. -
Method Summary
-
Constructor Details
-
Crypto_ByteArray
public Crypto_ByteArray(byte[] digest) Constructs a Crypto_ByteArray with the given byte array.- Parameters:
digest
- the byte array
-
Crypto_ByteArray
Constructs a Crypto_ByteArray with the given byte array and comment.- Parameters:
digest
- the byte arraycomment
- a comment (unused in the current implementation)
-
-
Method Details
-
getByteArray
public byte[] getByteArray()Gets the byte array.- Returns:
- the byte array
-
getLength
public int getLength()Gets the length of the byte array.- Returns:
- the length of the byte array
-
hashCode
public int hashCode() -
equals
-
toString
-