nl::Weave::ASN1

이 네임스페이스는 ASN.1 (Abstract Syntax Notation One)을 사용하기 위한 Weave 내의 모든 인터페이스를 포함합니다.

요약

열거

@334 enum
ASN1TagClasses enum
ASN1UniversalTags enum

Typedef

ASN1_ERROR typedef
모든 ASN1 하위 시스템 오류의 기본 유형입니다.

함수

DumpASN1(ASN1Reader & reader, const char *prefix, const char *indent)
FormatASN1Error(char *buf, uint16_t bufSize, int32_t err)
bool
ASN1 오류가 발생하면 인간이 읽을 수 있는 NULL로 끝나는 오류를 설명하는 C 문자열을 반환합니다.
GetEncodedObjectID(OID oid, const uint8_t *& encodedOID, uint16_t & encodedOIDLen)
bool
GetOIDCategory(OID oid)
OIDCategory
GetOIDName(OID oid)
const char *
HighestBit(uint32_t v)
uint8_t
ParseObjectID(const uint8_t *encodedOID, uint16_t encodedOIDLen)
OID
ReverseBits(uint8_t v)
uint8_t
ReverseBits(uint8_t v)
uint8_t
itoa2(uint32_t val, uint8_t *buf)
void

클래스

nl::Weave::ASN1::ASN1Reader
nl::Weave::ASN1::ASN1UniversalTime
nl::Weave::ASN1::ASN1Writer

열거형

@334

 @334

ASN1TagClasses

 ASN1TagClasses

ASN1UniversalTags

 ASN1UniversalTags

Typedef

ASN1_ERROR

ASN1_CONFIG_ERROR_TYPE ASN1_ERROR

모든 ASN1 하위 시스템 오류의 기본 유형입니다.

이는 플랫폼 또는 시스템별 유형으로 정의됩니다.

함수

DumpASN1

ASN1_ERROR DumpASN1(
  ASN1Reader & reader,
  const char *prefix,
  const char *indent
)

FormatASN1Error

bool FormatASN1Error(
  char *buf,
  uint16_t bufSize,
  int32_t err
)

ASN1 오류가 발생하면 인간이 읽을 수 있는 NULL로 끝나는 오류를 설명하는 C 문자열을 반환합니다.

세부정보
매개변수
[in] buf
오류 문자열이 배치될 버퍼입니다.
[in] bufSize
제공된 버퍼의 크기(바이트)입니다.
[in] err
설명할 오류입니다.
반환
제공된 버퍼에 설명 문자열이 작성된 경우 true입니다.
반환
제공된 오류가 ASN1 오류가 아닌 경우 false입니다.

GetEncodedObjectID

bool GetEncodedObjectID(
  OID oid,
  const uint8_t *& encodedOID,
  uint16_t & encodedOIDLen
)

GetOIDCategory

OIDCategory GetOIDCategory(
  OID oid
)

GetOIDName

const char * GetOIDName(
  OID oid
)

HighestBit

uint8_t HighestBit(
  uint32_t v
)

ParseObjectID

OID ParseObjectID(
  const uint8_t *encodedOID,
  uint16_t encodedOIDLen
)

ReverseBits

uint8_t ReverseBits(
  uint8_t v
)

ReverseBits

uint8_t ReverseBits(
  uint8_t v
)

itoa2

void itoa2(
  uint32_t val,
  uint8_t *buf
)