SYMBOL INDEX (292 symbols across 19 files) FILE: cryptobyte/asn1.go method AddASN1Int64 (line 22) | func (b *Builder) AddASN1Int64(v int64) { method AddASN1Enum (line 27) | func (b *Builder) AddASN1Enum(v int64) { method addASN1Signed (line 31) | func (b *Builder) addASN1Signed(tag asn1.Tag, v int64) { method AddASN1Uint64 (line 46) | func (b *Builder) AddASN1Uint64(v uint64) { method AddASN1BigInt (line 61) | func (b *Builder) AddASN1BigInt(n *big.Int) { method AddASN1OctetString (line 95) | func (b *Builder) AddASN1OctetString(bytes []byte) { constant generalizedTimeFormatStr (line 101) | generalizedTimeFormatStr = "20060102150405Z0700" method AddASN1GeneralizedTime (line 104) | func (b *Builder) AddASN1GeneralizedTime(t time.Time) { method AddASN1BitString (line 116) | func (b *Builder) AddASN1BitString(data []byte) { method addBase128Int (line 123) | func (b *Builder) addBase128Int(n int64) { function isValidOID (line 144) | func isValidOID(oid encoding_asn1.ObjectIdentifier) bool { method AddASN1ObjectIdentifier (line 162) | func (b *Builder) AddASN1ObjectIdentifier(oid encoding_asn1.ObjectIdenti... method AddASN1Boolean (line 176) | func (b *Builder) AddASN1Boolean(v bool) { method AddASN1NULL (line 186) | func (b *Builder) AddASN1NULL() { method MarshalASN1 (line 192) | func (b *Builder) MarshalASN1(v interface{}) { method AddASN1 (line 211) | func (b *Builder) AddASN1(tag asn1.Tag, f BuilderContinuation) { method ReadASN1Boolean (line 227) | func (s *String) ReadASN1Boolean(out *bool) bool { method ReadASN1Integer (line 250) | func (s *String) ReadASN1Integer(out interface{}) bool { function checkASN1Integer (line 277) | func checkASN1Integer(bytes []byte) bool { method readASN1BigInt (line 294) | func (s *String) readASN1BigInt(out *big.Int) bool { method readASN1Int64 (line 314) | func (s *String) readASN1Int64(out *int64) bool { function asn1Signed (line 322) | func asn1Signed(out *int64, n []byte) bool { method readASN1Uint64 (line 337) | func (s *String) readASN1Uint64(out *uint64) bool { function asn1Unsigned (line 345) | func asn1Unsigned(out *uint64, n []byte) bool { method ReadASN1Enum (line 364) | func (s *String) ReadASN1Enum(out *int) bool { method readBase128Int (line 377) | func (s *String) readBase128Int(out *int) bool { method ReadASN1ObjectIdentifier (line 396) | func (s *String) ReadASN1ObjectIdentifier(out *encoding_asn1.ObjectIdent... method ReadASN1GeneralizedTime (line 435) | func (s *String) ReadASN1GeneralizedTime(out *time.Time) bool { method ReadASN1BitString (line 454) | func (s *String) ReadASN1BitString(out *encoding_asn1.BitString) bool { method ReadASN1BitStringAsBytes (line 476) | func (s *String) ReadASN1BitStringAsBytes(out *[]byte) bool { method ReadASN1Bytes (line 493) | func (s *String) ReadASN1Bytes(out *[]byte, tag asn1.Tag) bool { method ReadASN1 (line 502) | func (s *String) ReadASN1(out *String, tag asn1.Tag) bool { method ReadASN1Element (line 515) | func (s *String) ReadASN1Element(out *String, tag asn1.Tag) bool { method ReadAnyASN1 (line 528) | func (s *String) ReadAnyASN1(out *String, outTag *asn1.Tag) bool { method ReadAnyASN1Element (line 537) | func (s *String) ReadAnyASN1Element(out *String, outTag *asn1.Tag) bool { method PeekASN1Tag (line 543) | func (s String) PeekASN1Tag(tag asn1.Tag) bool { method SkipASN1 (line 551) | func (s *String) SkipASN1(tag asn1.Tag) bool { method ReadOptionalASN1 (line 560) | func (s *String) ReadOptionalASN1(out *String, outPresent *bool, tag asn... method SkipOptionalASN1 (line 573) | func (s *String) SkipOptionalASN1(tag asn1.Tag) bool { method ReadOptionalASN1Integer (line 586) | func (s *String) ReadOptionalASN1Integer(out interface{}, tag asn1.Tag, ... method ReadOptionalASN1OctetString (line 624) | func (s *String) ReadOptionalASN1OctetString(out *[]byte, outPresent *bo... method ReadOptionalASN1Boolean (line 647) | func (s *String) ReadOptionalASN1Boolean(out *bool, defaultValue bool) b... method readASN1 (line 662) | func (s *String) readASN1(out *String, outTag *asn1.Tag, skipHeader bool... FILE: cryptobyte/asn1/asn1.go type Tag (line 15) | type Tag method Constructed (line 23) | func (t Tag) Constructed() Tag { return t | classConstructed } method ContextSpecific (line 26) | func (t Tag) ContextSpecific() Tag { return t | classContextSpecific } constant classConstructed (line 18) | classConstructed = 0x20 constant classContextSpecific (line 19) | classContextSpecific = 0x80 constant BOOLEAN (line 30) | BOOLEAN = Tag(1) constant INTEGER (line 31) | INTEGER = Tag(2) constant BIT_STRING (line 32) | BIT_STRING = Tag(3) constant OCTET_STRING (line 33) | OCTET_STRING = Tag(4) constant NULL (line 34) | NULL = Tag(5) constant OBJECT_IDENTIFIER (line 35) | OBJECT_IDENTIFIER = Tag(6) constant ENUM (line 36) | ENUM = Tag(10) constant UTF8String (line 37) | UTF8String = Tag(12) constant SEQUENCE (line 38) | SEQUENCE = Tag(16 | classConstructed) constant SET (line 39) | SET = Tag(17 | classConstructed) constant PrintableString (line 40) | PrintableString = Tag(19) constant T61String (line 41) | T61String = Tag(20) constant IA5String (line 42) | IA5String = Tag(22) constant UTCTime (line 43) | UTCTime = Tag(23) constant GeneralizedTime (line 44) | GeneralizedTime = Tag(24) constant GeneralString (line 45) | GeneralString = Tag(27) FILE: cryptobyte/builder.go type Builder (line 23) | type Builder struct method Bytes (line 55) | func (b *Builder) Bytes() ([]byte, error) { method BytesOrPanic (line 64) | func (b *Builder) BytesOrPanic() []byte { method AddUint8 (line 72) | func (b *Builder) AddUint8(v uint8) { method AddUint16 (line 77) | func (b *Builder) AddUint16(v uint16) { method AddUint24 (line 83) | func (b *Builder) AddUint24(v uint32) { method AddUint32 (line 88) | func (b *Builder) AddUint32(v uint32) { method AddBytes (line 93) | func (b *Builder) AddBytes(v []byte) { method AddUint8LengthPrefixed (line 129) | func (b *Builder) AddUint8LengthPrefixed(f BuilderContinuation) { method AddUint16LengthPrefixed (line 134) | func (b *Builder) AddUint16LengthPrefixed(f BuilderContinuation) { method AddUint24LengthPrefixed (line 139) | func (b *Builder) AddUint24LengthPrefixed(f BuilderContinuation) { method AddUint32LengthPrefixed (line 144) | func (b *Builder) AddUint32LengthPrefixed(f BuilderContinuation) { method callContinuation (line 148) | func (b *Builder) callContinuation(f BuilderContinuation, arg *Builder) { method addLengthPrefixed (line 171) | func (b *Builder) addLengthPrefixed(lenLen int, isASN1 bool, f Builder... method flushChild (line 200) | func (b *Builder) flushChild() { method add (line 276) | func (b *Builder) add(bytes ...byte) { method AddValue (line 304) | func (b *Builder) AddValue(v MarshalingValue) { function NewBuilder (line 37) | func NewBuilder(buffer []byte) *Builder { function NewFixedBuilder (line 46) | func NewFixedBuilder(buffer []byte) *Builder { type BuilderContinuation (line 119) | type BuilderContinuation type BuildError (line 124) | type BuildError struct type MarshalingValue (line 294) | type MarshalingValue interface FILE: cryptobyte/string.go type String (line 22) | type String method read (line 26) | func (s *String) read(n int) []byte { method Skip (line 36) | func (s *String) Skip(n int) bool { method ReadUint8 (line 42) | func (s *String) ReadUint8(out *uint8) bool { method ReadUint16 (line 53) | func (s *String) ReadUint16(out *uint16) bool { method ReadUint24 (line 64) | func (s *String) ReadUint24(out *uint32) bool { method ReadUint32 (line 75) | func (s *String) ReadUint32(out *uint32) bool { method readUnsigned (line 84) | func (s *String) readUnsigned(out *uint32, length int) bool { method readLengthPrefixed (line 98) | func (s *String) readLengthPrefixed(lenLen int, outChild *String) bool { method ReadUint8LengthPrefixed (line 124) | func (s *String) ReadUint8LengthPrefixed(out *String) bool { method ReadUint16LengthPrefixed (line 131) | func (s *String) ReadUint16LengthPrefixed(out *String) bool { method ReadUint24LengthPrefixed (line 138) | func (s *String) ReadUint24LengthPrefixed(out *String) bool { method ReadBytes (line 144) | func (s *String) ReadBytes(out *[]byte, n int) bool { method CopyBytes (line 155) | func (s *String) CopyBytes(out []byte) bool { method Empty (line 165) | func (s String) Empty() bool { FILE: sm2/cert/gmx509.go constant nameTypeEmail (line 48) | nameTypeEmail = 1 constant nameTypeDNS (line 49) | nameTypeDNS = 2 constant nameTypeURI (line 50) | nameTypeURI = 6 constant nameTypeIP (line 51) | nameTypeIP = 7 type publicKeyInfo (line 54) | type publicKeyInfo struct type tbsCertificateRequest (line 60) | type tbsCertificateRequest struct type certificateRequest (line 68) | type certificateRequest struct function CreateCertificateRequest (line 75) | func CreateCertificateRequest(template *x509.CertificateRequest, pub *sm... function marshalSANs (line 210) | func marshalSANs(dnsNames, emailAddresses []string, ipAddresses []net.IP... function oidInExtensions (line 234) | func oidInExtensions(oid asn1.ObjectIdentifier, extensions []pkix.Extens... function marshalPublicKey (line 243) | func marshalPublicKey(pub *sm2.PublicKey) (publicKeyBytes []byte, public... function newRawAttributes (line 257) | func newRawAttributes(attributes []pkix.AttributeTypeAndValueSET) ([]asn... function ParseCertificateRequest (line 275) | func ParseCertificateRequest(asn1Data []byte) (*x509.CertificateRequest,... function parseCertificateRequest (line 288) | func parseCertificateRequest(in *certificateRequest) (*x509.CertificateR... function parsePublicKey (line 342) | func parsePublicKey(keyData *publicKeyInfo) (interface{}, error) { function parseRawAttributes (line 370) | func parseRawAttributes(rawAttributes []asn1.RawValue) []pkix.AttributeT... function parseCSRExtensions (line 386) | func parseCSRExtensions(rawAttributes []asn1.RawValue) ([]pkix.Extension... function forEachSAN (line 416) | func forEachSAN(extension []byte, callback func(tag int, data []byte) er... function domainToReverseLabels (line 462) | func domainToReverseLabels(domain string) (reverseLabels []string, ok bo... function parseSANExtension (line 495) | func parseSANExtension(value []byte) (dnsNames, emailAddresses []string,... function VerifyDERCSRSign (line 528) | func VerifyDERCSRSign(asn1Data []byte, userId []byte) (bool, error) { function VerifyCSRSign (line 536) | func VerifyCSRSign(csr *x509.CertificateRequest, userId []byte) bool { function FillCertificateTemplateByCSR (line 541) | func FillCertificateTemplateByCSR(template *x509.Certificate, csr *x509.... function subjectBytes (line 553) | func subjectBytes(cert *x509.Certificate) ([]byte, error) { function reverseBitsInAByte (line 561) | func reverseBitsInAByte(in byte) byte { function asn1BitLength (line 571) | func asn1BitLength(bitString []byte) int { function oidFromExtKeyUsage (line 638) | func oidFromExtKeyUsage(eku x509.ExtKeyUsage) (oid asn1.ObjectIdentifier... type basicConstraints (line 647) | type basicConstraints struct type authKeyId (line 653) | type authKeyId struct type authorityInfoAccess (line 658) | type authorityInfoAccess struct type policyInformation (line 664) | type policyInformation struct type distributionPointName (line 669) | type distributionPointName struct type distributionPoint (line 675) | type distributionPoint struct function isIA5String (line 681) | func isIA5String(s string) error { function buildExtensions (line 691) | func buildExtensions(template *x509.Certificate, subjectIsEmpty bool, au... type validity (line 952) | type validity struct type certificate (line 956) | type certificate struct type tbsCertificate (line 963) | type tbsCertificate struct type TBSCertificate (line 977) | type TBSCertificate function CreateCertificateInfo (line 985) | func CreateCertificateInfo(template, parent *x509.Certificate, csr *x509... function IssueCertificateBySoftCAKey (line 1038) | func IssueCertificateBySoftCAKey(cinfo *TBSCertificate, caPri *sm2.Priva... function CreateCertificate (line 1046) | func CreateCertificate(cinfo *TBSCertificate, signature []byte) ([]byte,... function ParseCertificate (line 1058) | func ParseCertificate(asn1Data []byte) (*x509.Certificate, error) { function parseCertificate (line 1071) | func parseCertificate(in *certificate) (*x509.Certificate, error) { function parseNameConstraintsExtension (line 1299) | func parseNameConstraintsExtension(out *x509.Certificate, e pkix.Extensi... function isValidIPMask (line 1460) | func isValidIPMask(mask []byte) bool { type rfc2821Mailbox (line 1487) | type rfc2821Mailbox struct function parseRFC2821Mailbox (line 1496) | func parseRFC2821Mailbox(in string) (mailbox rfc2821Mailbox, ok bool) { function extKeyUsageFromOID (line 1633) | func extKeyUsageFromOID(oid asn1.ObjectIdentifier) (eku x509.ExtKeyUsage... FILE: sm2/cert/gmx509_test.go function TestX500Name (line 18) | func TestX500Name(t *testing.T) { function TestCreateCertificateRequest (line 29) | func TestCreateCertificateRequest(t *testing.T) { function TestCreateCertificate (line 81) | func TestCreateCertificate(t *testing.T) { FILE: sm2/keyexchange.go type ExchangeResult (line 13) | type ExchangeResult struct function reduce (line 19) | func reduce(x *big.Int, w int) *big.Int { function calculateU (line 28) | func calculateU(w int, selfStaticPriv *PrivateKey, selfEphemeralPriv *Pr... function kdfForExch (line 45) | func kdfForExch(digest hash.Hash, ux, uy *big.Int, za, zb []byte, keyBit... function calculateInnerHash (line 77) | func calculateInnerHash(digest hash.Hash, ux *big.Int, za, zb []byte, p1... function s1 (line 89) | func s1(digest hash.Hash, uy *big.Int, innerHash []byte) []byte { function s2 (line 97) | func s2(digest hash.Hash, uy *big.Int, innerHash []byte) []byte { function CalculateKeyWithConfirmation (line 105) | func CalculateKeyWithConfirmation(initiator bool, keyBits int, confirmat... function ResponderConfirm (line 146) | func ResponderConfirm(responderS2 []byte, initiatorS2 []byte) bool { FILE: sm2/keyexchange_test.go constant KeyBits (line 9) | KeyBits = 128 function TestSM2KeyExchange (line 17) | func TestSM2KeyExchange(t *testing.T) { FILE: sm2/sm2.go constant BitSize (line 20) | BitSize = 256 constant KeyBytes (line 21) | KeyBytes = (BitSize + 7) / 8 constant UnCompress (line 22) | UnCompress = 0x04 type Sm2CipherTextType (line 25) | type Sm2CipherTextType constant C1C2C3 (line 29) | C1C2C3 Sm2CipherTextType = 1 constant C1C3C2 (line 31) | C1C3C2 Sm2CipherTextType = 2 type P256V1Curve (line 43) | type P256V1Curve struct type PublicKey (line 48) | type PublicKey struct method GetUnCompressBytes (line 135) | func (pub *PublicKey) GetUnCompressBytes() []byte { method GetRawBytes (line 161) | func (pub *PublicKey) GetRawBytes() []byte { type PrivateKey (line 53) | type PrivateKey struct method GetRawBytes (line 166) | func (pri *PrivateKey) GetRawBytes() []byte { type sm2Signature (line 58) | type sm2Signature struct type sm2CipherC1C3C2 (line 62) | type sm2CipherC1C3C2 struct type sm2CipherC1C2C3 (line 68) | type sm2CipherC1C2C3 struct function init (line 74) | func init() { function initSm2P256V1 (line 78) | func initSm2P256V1() { function GetSm2P256V1 (line 95) | func GetSm2P256V1() P256V1Curve { function GenerateKey (line 99) | func GenerateKey(rand io.Reader) (*PrivateKey, *PublicKey, error) { function RawBytesToPublicKey (line 114) | func RawBytesToPublicKey(bytes []byte) (*PublicKey, error) { function RawBytesToPrivateKey (line 125) | func RawBytesToPrivateKey(bytes []byte) (*PrivateKey, error) { function CalculatePubKey (line 182) | func CalculatePubKey(priv *PrivateKey) *PublicKey { function nextK (line 189) | func nextK(rnd io.Reader, max *big.Int) (*big.Int, error) { function xor (line 204) | func xor(data []byte, kdfOut []byte, dRemaining int) { function bigIntTo32Bytes (line 211) | func bigIntTo32Bytes(bn *big.Int) []byte { function kdf (line 221) | func kdf(digest hash.Hash, c1x *big.Int, c1y *big.Int, encData []byte) { function notEncrypted (line 252) | func notEncrypted(encData []byte, in []byte) bool { function Encrypt (line 262) | func Encrypt(pub *PublicKey, in []byte, cipherTextType Sm2CipherTextType... function Decrypt (line 308) | func Decrypt(priv *PrivateKey, in []byte, cipherTextType Sm2CipherTextTy... function MarshalCipher (line 348) | func MarshalCipher(in []byte, cipherTextType Sm2CipherTextType) ([]byte,... function UnmarshalCipher (line 387) | func UnmarshalCipher(in []byte, cipherTextType Sm2CipherTextType) (out [... function getZ (line 441) | func getZ(digest hash.Hash, curve *P256V1Curve, pubX *big.Int, pubY *big... function calculateE (line 461) | func calculateE(digest hash.Hash, curve *P256V1Curve, pubX *big.Int, pub... function MarshalSign (line 471) | func MarshalSign(r, s *big.Int) ([]byte, error) { function UnmarshalSign (line 479) | func UnmarshalSign(sign []byte) (r, s *big.Int, err error) { function SignToRS (line 488) | func SignToRS(priv *PrivateKey, userId []byte, in []byte) (r, s *big.Int... function Sign (line 534) | func Sign(priv *PrivateKey, userId []byte, in []byte) ([]byte, error) { function VerifyByRS (line 543) | func VerifyByRS(pub *PublicKey, userId []byte, src []byte, r, s *big.Int... function Verify (line 578) | func Verify(pub *PublicKey, userId []byte, src []byte, sign []byte) bool { FILE: sm2/sm2_loop_test.go constant loopCount (line 11) | loopCount = 10 function TestSignVerifyLoop (line 22) | func TestSignVerifyLoop(t *testing.T) { function TestSignVerifyLoop2 (line 53) | func TestSignVerifyLoop2(t *testing.T) { function TestSignVerifyLoop3 (line 78) | func TestSignVerifyLoop3(t *testing.T) { FILE: sm2/sm2_test.go function TestGetSm2P256V1 (line 12) | func TestGetSm2P256V1(t *testing.T) { function TestGenerateKey (line 21) | func TestGenerateKey(t *testing.T) { function TestEncryptDecrypt_C1C2C3 (line 39) | func TestEncryptDecrypt_C1C2C3(t *testing.T) { function TestEncryptDecrypt_C1C3C2 (line 71) | func TestEncryptDecrypt_C1C3C2(t *testing.T) { function TestCipherDerEncode_C1C2C3 (line 103) | func TestCipherDerEncode_C1C2C3(t *testing.T) { function TestCipherDerEncode_C1C3C2 (line 148) | func TestCipherDerEncode_C1C3C2(t *testing.T) { type testSm2SignData (line 193) | type testSm2SignData struct function TestSign (line 211) | func TestSign(t *testing.T) { function TestVerify (line 239) | func TestVerify(t *testing.T) { FILE: sm3/sm3.go constant DigestLength (line 11) | DigestLength = 32 constant BlockSize (line 12) | BlockSize = 16 type sm3Digest (line 25) | type sm3Digest struct method Sum (line 41) | func (digest *sm3Digest) Sum(b []byte) []byte { method Size (line 48) | func (digest *sm3Digest) Size() int { method BlockSize (line 56) | func (digest *sm3Digest) BlockSize() int { method Reset (line 60) | func (digest *sm3Digest) Reset() { method Write (line 88) | func (digest *sm3Digest) Write(p []byte) (n int, err error) { method finish (line 123) | func (digest *sm3Digest) finish() { method checkSum (line 137) | func (digest *sm3Digest) checkSum() [DigestLength]byte { method processBlock (line 147) | func (digest *sm3Digest) processBlock() { method processWord (line 218) | func (digest *sm3Digest) processWord(in []byte, inOff int32) { method processLength (line 229) | func (digest *sm3Digest) processLength(bitLength int64) { function New (line 35) | func New() hash.Hash { function p0 (line 247) | func p0(x uint32) uint32 { function p1 (line 253) | func p1(x uint32) uint32 { function ff0 (line 259) | func ff0(x uint32, y uint32, z uint32) uint32 { function ff1 (line 263) | func ff1(x uint32, y uint32, z uint32) uint32 { function gg0 (line 267) | func gg0(x uint32, y uint32, z uint32) uint32 { function gg1 (line 271) | func gg1(x uint32, y uint32, z uint32) uint32 { function Sum (line 275) | func Sum(data []byte) [DigestLength]byte { function PrintT (line 282) | func PrintT() { FILE: sm3/sm3_test.go function TestPrintT (line 14) | func TestPrintT(t *testing.T) { function TestSum (line 18) | func TestSum(t *testing.T) { function TestSm3Digest_Sum (line 24) | func TestSm3Digest_Sum(t *testing.T) { function testSum (line 30) | func testSum(t *testing.T, src string, expected string) { function testSm3DigestSum (line 39) | func testSm3DigestSum(t *testing.T, src string, expected string) { function TestSm3Digest_Write (line 50) | func TestSm3Digest_Write(t *testing.T) { FILE: sm4/sm4.go constant BlockSize (line 12) | BlockSize = 16 constant KeySize (line 13) | KeySize = 16 type KeySizeError (line 66) | type KeySizeError method Error (line 68) | func (k KeySizeError) Error() string { type sm4Cipher (line 72) | type sm4Cipher struct method BlockSize (line 88) | func (c *sm4Cipher) BlockSize() int { method Encrypt (line 92) | func (c *sm4Cipher) Encrypt(dst, src []byte) { method Decrypt (line 102) | func (c *sm4Cipher) Decrypt(dst, src []byte) { function NewCipher (line 77) | func NewCipher(key []byte) (cipher.Block, error) { function expandKey (line 112) | func expandKey(key []byte, forEnc bool) []uint32 { function tau (line 138) | func tau(a uint32) uint32 { function lAp (line 149) | func lAp(b uint32) uint32 { function tAp (line 153) | func tAp(z uint32) uint32 { function encRound (line 157) | func encRound(x0 uint32, x1 uint32, x2 uint32, x3 uint32, x4 uint32, rk ... function decRound (line 163) | func decRound(x0 uint32, x1 uint32, x2 uint32, x3 uint32, x4 uint32, rk ... function processBlock (line 169) | func processBlock(rk []uint32, in []byte, out []byte) { function l (line 190) | func l(b uint32) uint32 { function t (line 195) | func t(z uint32) uint32 { function r (line 199) | func r(a []uint32) { function f0 (line 208) | func f0(x []uint32, rk uint32) uint32 { function f1 (line 212) | func f1(x []uint32, rk uint32) uint32 { function f2 (line 216) | func f2(x []uint32, rk uint32) uint32 { function f3 (line 220) | func f3(x []uint32, rk uint32) uint32 { function ECBEncrypt (line 226) | func ECBEncrypt(key, plainText []byte) (cipherText []byte, err error) { function ECBDecrypt (line 245) | func ECBDecrypt(key, cipherText []byte) (plainText []byte, err error) { function CBCEncrypt (line 264) | func CBCEncrypt(key, iv, plainText []byte) (cipherText []byte, err error) { function CBCDecrypt (line 282) | func CBCDecrypt(key, iv, cipherText []byte) (plainText []byte, err error) { FILE: sm4/sm4_test.go type sm4CbcTestData (line 11) | type sm4CbcTestData struct function TestSm4_CBC_Encrypt (line 33) | func TestSm4_CBC_Encrypt(t *testing.T) { type sm4EcbTestData (line 63) | type sm4EcbTestData struct function TestSm4_ECB_Encrypt_PKCS5Padding (line 81) | func TestSm4_ECB_Encrypt_PKCS5Padding(t *testing.T) { function TestSm4_ECB_Encrypt_ZeroPadding (line 105) | func TestSm4_ECB_Encrypt_ZeroPadding(t *testing.T) { FILE: util/bigint.go function Add (line 5) | func Add(x, y *big.Int) *big.Int { function Sub (line 11) | func Sub(x, y *big.Int) *big.Int { function Mod (line 17) | func Mod(x, y *big.Int) *big.Int { function ModInverse (line 23) | func ModInverse(x, y *big.Int) *big.Int { function Mul (line 29) | func Mul(x, y *big.Int) *big.Int { function Lsh (line 35) | func Lsh(x *big.Int, n uint) *big.Int { function SetBit (line 41) | func SetBit(x *big.Int, i int, b uint) *big.Int { function And (line 47) | func And(x, y *big.Int) *big.Int { FILE: util/bigint_test.go function TestAdd (line 9) | func TestAdd(t *testing.T) { function TestAdd2 (line 17) | func TestAdd2(t *testing.T) { FILE: util/ec.go function IsEcPointInfinity (line 5) | func IsEcPointInfinity(x, y *big.Int) bool { function ZForAffine (line 12) | func ZForAffine(x, y *big.Int) *big.Int { FILE: util/padding.go function PKCS5Padding (line 5) | func PKCS5Padding(src []byte, blockSize int) []byte { function PKCS5UnPadding (line 11) | func PKCS5UnPadding(src []byte) []byte { function ZeroPadding (line 17) | func ZeroPadding(src []byte, blockSize int) []byte { function UnZeroPadding (line 26) | func UnZeroPadding(src []byte, paddingLen int) []byte {