diff options
author | bouncy <bouncy> | 2012-03-22 04:29:42 +0000 |
---|---|---|
committer | bouncy <bouncy> | 2012-03-22 04:29:42 +0000 |
commit | 78b9998659f63e633c6ece845265f7ae8ff30008 (patch) | |
tree | 624995977cc43f0282fd7c5013bff6f30e735ab5 | |
parent | 20d57980f16f457a2b45a5c166482e84c8d4ef8a (diff) | |
download | android_external_spongycastle-78b9998659f63e633c6ece845265f7ae8ff30008.tar.gz android_external_spongycastle-78b9998659f63e633c6ece845265f7ae8ff30008.tar.bz2 android_external_spongycastle-78b9998659f63e633c6ece845265f7ae8ff30008.zip |
initial check in.
-rw-r--r-- | crypto/j2me/org/bouncycastle/operator/bc/OperatorUtils.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/crypto/j2me/org/bouncycastle/operator/bc/OperatorUtils.java b/crypto/j2me/org/bouncycastle/operator/bc/OperatorUtils.java new file mode 100644 index 000000000..37aa1367b --- /dev/null +++ b/crypto/j2me/org/bouncycastle/operator/bc/OperatorUtils.java @@ -0,0 +1,16 @@ +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"); + } +} |