github.com/goplus/igop@v0.25.0/pkg/crypto/rsa/go121_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build go1.21
     5  
     6  package rsa
     7  
     8  import (
     9  	q "crypto/rsa"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "rsa",
    20  		Path: "crypto/rsa",
    21  		Deps: map[string]string{
    22  			"bytes":                       "bytes",
    23  			"crypto":                      "crypto",
    24  			"crypto/internal/bigmod":      "bigmod",
    25  			"crypto/internal/boring":      "boring",
    26  			"crypto/internal/boring/bbig": "bbig",
    27  			"crypto/internal/randutil":    "randutil",
    28  			"crypto/rand":                 "rand",
    29  			"crypto/subtle":               "subtle",
    30  			"errors":                      "errors",
    31  			"hash":                        "hash",
    32  			"io":                          "io",
    33  			"math":                        "math",
    34  			"math/big":                    "big",
    35  		},
    36  		Interfaces: map[string]reflect.Type{},
    37  		NamedTypes: map[string]reflect.Type{
    38  			"CRTValue":               reflect.TypeOf((*q.CRTValue)(nil)).Elem(),
    39  			"OAEPOptions":            reflect.TypeOf((*q.OAEPOptions)(nil)).Elem(),
    40  			"PKCS1v15DecryptOptions": reflect.TypeOf((*q.PKCS1v15DecryptOptions)(nil)).Elem(),
    41  			"PSSOptions":             reflect.TypeOf((*q.PSSOptions)(nil)).Elem(),
    42  			"PrecomputedValues":      reflect.TypeOf((*q.PrecomputedValues)(nil)).Elem(),
    43  			"PrivateKey":             reflect.TypeOf((*q.PrivateKey)(nil)).Elem(),
    44  			"PublicKey":              reflect.TypeOf((*q.PublicKey)(nil)).Elem(),
    45  		},
    46  		AliasTypes: map[string]reflect.Type{},
    47  		Vars: map[string]reflect.Value{
    48  			"ErrDecryption":     reflect.ValueOf(&q.ErrDecryption),
    49  			"ErrMessageTooLong": reflect.ValueOf(&q.ErrMessageTooLong),
    50  			"ErrVerification":   reflect.ValueOf(&q.ErrVerification),
    51  		},
    52  		Funcs: map[string]reflect.Value{
    53  			"DecryptOAEP":               reflect.ValueOf(q.DecryptOAEP),
    54  			"DecryptPKCS1v15":           reflect.ValueOf(q.DecryptPKCS1v15),
    55  			"DecryptPKCS1v15SessionKey": reflect.ValueOf(q.DecryptPKCS1v15SessionKey),
    56  			"EncryptOAEP":               reflect.ValueOf(q.EncryptOAEP),
    57  			"EncryptPKCS1v15":           reflect.ValueOf(q.EncryptPKCS1v15),
    58  			"GenerateKey":               reflect.ValueOf(q.GenerateKey),
    59  			"GenerateMultiPrimeKey":     reflect.ValueOf(q.GenerateMultiPrimeKey),
    60  			"SignPKCS1v15":              reflect.ValueOf(q.SignPKCS1v15),
    61  			"SignPSS":                   reflect.ValueOf(q.SignPSS),
    62  			"VerifyPKCS1v15":            reflect.ValueOf(q.VerifyPKCS1v15),
    63  			"VerifyPSS":                 reflect.ValueOf(q.VerifyPSS),
    64  		},
    65  		TypedConsts: map[string]igop.TypedConst{},
    66  		UntypedConsts: map[string]igop.UntypedConst{
    67  			"PSSSaltLengthAuto":       {"untyped int", constant.MakeInt64(int64(q.PSSSaltLengthAuto))},
    68  			"PSSSaltLengthEqualsHash": {"untyped int", constant.MakeInt64(int64(q.PSSSaltLengthEqualsHash))},
    69  		},
    70  	})
    71  }