mirror of
https://git.mirrors.martin98.com/https://github.com/ceph/ceph-csi.git
synced 2025-08-04 14:00:41 +08:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps the golang-dependencies group with 3 updates: [golang.org/x/crypto](https://github.com/golang/crypto), [golang.org/x/net](https://github.com/golang/net) and [golang.org/x/sys](https://github.com/golang/sys). Updates `golang.org/x/crypto` from 0.24.0 to 0.25.0 - [Commits](https://github.com/golang/crypto/compare/v0.24.0...v0.25.0) Updates `golang.org/x/net` from 0.26.0 to 0.27.0 - [Commits](https://github.com/golang/net/compare/v0.26.0...v0.27.0) Updates `golang.org/x/sys` from 0.21.0 to 0.22.0 - [Commits](https://github.com/golang/sys/compare/v0.21.0...v0.22.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang-dependencies - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang-dependencies - dependency-name: golang.org/x/sys dependency-type: direct:production update-type: version-update:semver-minor dependency-group: golang-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
47 lines
1.5 KiB
Go
47 lines
1.5 KiB
Go
// Copyright 2017 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Package asn1 contains supporting types for parsing and building ASN.1
|
|
// messages with the cryptobyte package.
|
|
package asn1
|
|
|
|
// Tag represents an ASN.1 identifier octet, consisting of a tag number
|
|
// (indicating a type) and class (such as context-specific or constructed).
|
|
//
|
|
// Methods in the cryptobyte package only support the low-tag-number form, i.e.
|
|
// a single identifier octet with bits 7-8 encoding the class and bits 1-6
|
|
// encoding the tag number.
|
|
type Tag uint8
|
|
|
|
const (
|
|
classConstructed = 0x20
|
|
classContextSpecific = 0x80
|
|
)
|
|
|
|
// Constructed returns t with the constructed class bit set.
|
|
func (t Tag) Constructed() Tag { return t | classConstructed }
|
|
|
|
// ContextSpecific returns t with the context-specific class bit set.
|
|
func (t Tag) ContextSpecific() Tag { return t | classContextSpecific }
|
|
|
|
// The following is a list of standard tag and class combinations.
|
|
const (
|
|
BOOLEAN = Tag(1)
|
|
INTEGER = Tag(2)
|
|
BIT_STRING = Tag(3)
|
|
OCTET_STRING = Tag(4)
|
|
NULL = Tag(5)
|
|
OBJECT_IDENTIFIER = Tag(6)
|
|
ENUM = Tag(10)
|
|
UTF8String = Tag(12)
|
|
SEQUENCE = Tag(16 | classConstructed)
|
|
SET = Tag(17 | classConstructed)
|
|
PrintableString = Tag(19)
|
|
T61String = Tag(20)
|
|
IA5String = Tag(22)
|
|
UTCTime = Tag(23)
|
|
GeneralizedTime = Tag(24)
|
|
GeneralString = Tag(27)
|
|
)
|