Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.bouncycastle.pqc.crypto.ntru
Class NTRUPublicKeyParameters

    java.lang.Object
      org.bouncycastle.crypto.params.AsymmetricKeyParameter
          org.bouncycastle.pqc.crypto.ntru.NTRUKeyParameters
              org.bouncycastle.pqc.crypto.ntru.NTRUPublicKeyParameters

All Implemented Interfaces:
  CipherParameters

public class NTRUPublicKeyParameters
extends NTRUKeyParameters

NTRU public key parameter class.

Constructor Summary
`NTRUPublicKeyParameters(NTRUParameters params, byte[] key)`

Method Summary
`byte[]` | `getEncoded()` Get the encoding of public key.
`byte[]` | `getPublicKey()` Get public key.

Methods inherited from class org.bouncycastle.pqc.crypto.ntru.NTRUKeyParameters
`getParameters`

Methods inherited from class org.bouncycastle.crypto.params.AsymmetricKeyParameter
`isPrivate`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NTRUPublicKeyParameters

    public NTRUPublicKeyParameters(NTRUParameters params,
                                   byte[] key)

Method Detail

### getPublicKey

    public byte[] getPublicKey()

  Get public key.

  Returns:
    a byte array containing public key

### getEncoded

    public byte[] getEncoded()

  Get the encoding of public key.

  Returns:
    a byte array containing public key encoding

Overview | Package | Class | Tree | Deprecated | Index | Help
| Bouncy Castle Cryptography Library 1.85
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD