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