diff options
Diffstat (limited to 'bcpkix/src/main/java/org/bouncycastle/cms/bc/CMSUtils.java')
-rw-r--r-- | bcpkix/src/main/java/org/bouncycastle/cms/bc/CMSUtils.java | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/bcpkix/src/main/java/org/bouncycastle/cms/bc/CMSUtils.java b/bcpkix/src/main/java/org/bouncycastle/cms/bc/CMSUtils.java deleted file mode 100644 index 8beb36a..0000000 --- a/bcpkix/src/main/java/org/bouncycastle/cms/bc/CMSUtils.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.bouncycastle.cms.bc; - -import org.bouncycastle.crypto.CipherParameters; -import org.bouncycastle.crypto.params.KeyParameter; -import org.bouncycastle.operator.GenericKey; - -class CMSUtils -{ - static CipherParameters getBcKey(GenericKey key) - { - if (key.getRepresentation() instanceof CipherParameters) - { - return (CipherParameters)key.getRepresentation(); - } - - if (key.getRepresentation() instanceof byte[]) - { - return new KeyParameter((byte[])key.getRepresentation()); - } - - throw new IllegalArgumentException("unknown generic key type"); - } -} |