Package org.webpki.crypto
Class OkpSupport
java.lang.Object
org.webpki.crypto.OkpSupport
Support methods for "OKP" [RFC 8037].
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyAlgorithmsgetKeyAlgorithm(Key key) static byte[]private2RawKey(PrivateKey privateKey, KeyAlgorithms keyAlgorithm) static byte[]public2RawKey(PublicKey publicKey, KeyAlgorithms keyAlgorithm) static PrivateKeyraw2PrivateKey(byte[] d, KeyAlgorithms keyAlgorithm) static PublicKeyraw2PublicKey(byte[] x, KeyAlgorithms keyAlgorithm)
-
Method Details
-
public2RawKey
-
raw2PublicKey
-
private2RawKey
-
raw2PrivateKey
-
getKeyAlgorithm
-