Welcome to mirror list, hosted at ThFree Co, Russian Federation.

OperatorUtils.java « bc « operator « bouncycastle « org « j2me « main « src « pkix - gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 37aa1367b14d3984c7078eecb304809ac5a5f889 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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");
    }
}