org.bouncycastle.operator.bc.OperatorUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gwt-crypto Show documentation
Show all versions of gwt-crypto Show documentation
A GWT cryptography library ported from Legion of the Bouncy Castle.
The newest version!
package org.bouncycastle.operator.bc;
import org.bouncycastle.operator.GenericKey;
class OperatorUtils
{
static byte[] getKeyBytes(GenericKey key)
{
if (key.getRepresentation() instanceof byte[])
{
return (byte[])key.getRepresentation();
}
throw new IllegalArgumentException("unknown generic key type");
}
}