public class ASN1 extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte[] |
Oid_secp256r1 |
static byte[] |
Oid_secp384r1 |
static byte[] |
Oid_secp521r1 |
| Constructor and Description |
|---|
ASN1() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
EncodePKCS8(byte[] oid,
byte[] keyBytes,
byte[] spki) |
static byte[] |
EncodeSignature(byte[] r,
byte[] s) |
static byte[] |
EncodeSubjectPublicKeyInfo(byte[] oid,
byte[] keyBytes)
Encode a subject public key info structure from an oid and the data bytes
for the key
|
public static final byte[] Oid_secp256r1
public static final byte[] Oid_secp384r1
public static final byte[] Oid_secp521r1
public static byte[] EncodeSubjectPublicKeyInfo(byte[] oid,
byte[] keyBytes)
throws CoseException
oid - - encoded Object IdentifierkeyBytes - - encoded key bytesCoseExceptionpublic static byte[] EncodePKCS8(byte[] oid,
byte[] keyBytes,
byte[] spki)
throws CoseException
CoseExceptionpublic static byte[] EncodeSignature(byte[] r,
byte[] s)
throws CoseException
CoseExceptionCOSE for Java documentation, generatedin 2018.