KeyUtil (Bouncy Castle Library 1.52 API Specification)

org.bouncycastle.pqc.jcajce.provider.util

## Class KeyUtil

- java.lang.Object
- - org.bouncycastle.pqc.jcajce.provider.util.KeyUtil

-     public class KeyUtil
      extends java.lang.Object

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `KeyUtil()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static byte[]` | `getEncodedPrivateKeyInfo(AlgorithmIdentifier algId, ASN1Encodable privKey)`
    `static byte[]` | `getEncodedPrivateKeyInfo(PrivateKeyInfo info)`
    `static byte[]` | `getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, ASN1Encodable keyData)`
    `static byte[]` | `getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId, byte[] keyData)`
    `static byte[]` | `getEncodedSubjectPublicKeyInfo(SubjectPublicKeyInfo info)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### KeyUtil

          public KeyUtil()

  - ### Method Detail

    - #### getEncodedSubjectPublicKeyInfo

          public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId,
                                              ASN1Encodable keyData)

    - #### getEncodedSubjectPublicKeyInfo

          public static byte[] getEncodedSubjectPublicKeyInfo(AlgorithmIdentifier algId,
                                              byte[] keyData)

    - #### getEncodedSubjectPublicKeyInfo

          public static byte[] getEncodedSubjectPublicKeyInfo(SubjectPublicKeyInfo info)

    - #### getEncodedPrivateKeyInfo

          public static byte[] getEncodedPrivateKeyInfo(AlgorithmIdentifier algId,
                                        ASN1Encodable privKey)

    - #### getEncodedPrivateKeyInfo

          public static byte[] getEncodedPrivateKeyInfo(PrivateKeyInfo info)