SYMBOL INDEX (8468 symbols across 695 files) FILE: aead/aead.go function init (line 32) | func init() { FILE: aead/aead_benchmark_test.go type testCase (line 29) | type testCase struct function testCases (line 35) | func testCases() []testCase { function BenchmarkEncrypt (line 91) | func BenchmarkEncrypt(b *testing.B) { function BenchmarkDecrypt (line 118) | func BenchmarkDecrypt(b *testing.B) { FILE: aead/aead_factory.go function New (line 33) | func New(handle *keyset.Handle) (tink.AEAD, error) { function NewWithConfig (line 43) | func NewWithConfig(handle *keyset.Handle, config keyset.Config) (tink.AE... type wrappedAead (line 53) | type wrappedAead struct method Encrypt (line 162) | func (a *wrappedAead) Encrypt(plaintext, associatedData []byte) ([]byt... method Decrypt (line 175) | func (a *wrappedAead) Decrypt(ciphertext, associatedData []byte) ([]by... type aeadAndKeyID (line 61) | type aeadAndKeyID struct method Encrypt (line 66) | func (a *aeadAndKeyID) Encrypt(plaintext, associatedData []byte) ([]by... method Decrypt (line 70) | func (a *aeadAndKeyID) Decrypt(ciphertext, associatedData []byte) ([]b... type fullAEADPrimitiveAdapter (line 76) | type fullAEADPrimitiveAdapter struct method Encrypt (line 81) | func (a *fullAEADPrimitiveAdapter) Encrypt(plaintext, associatedData [... method Decrypt (line 89) | func (a *fullAEADPrimitiveAdapter) Decrypt(ciphertext, associatedData ... function extractFullAEAD (line 95) | func extractFullAEAD(entry *primitiveset.Entry[tink.AEAD]) (*aeadAndKeyI... function newWrappedAead (line 105) | func newWrappedAead(ps *primitiveset.PrimitiveSet[tink.AEAD]) (*wrappedA... function createLoggers (line 132) | func createLoggers(ps *primitiveset.PrimitiveSet[tink.AEAD]) (monitoring... FILE: aead/aead_factory_test.go function TestFactoryMultipleKeys (line 51) | func TestFactoryMultipleKeys(t *testing.T) { type stubAEAD (line 113) | type stubAEAD struct method Encrypt (line 117) | func (a *stubAEAD) Encrypt(p, _ []byte) ([]byte, error) { method Decrypt (line 120) | func (a *stubAEAD) Decrypt(c, _ []byte) ([]byte, error) { function TestNewWithConfig (line 127) | func TestNewWithConfig(t *testing.T) { function TestFactoryRawKeyAsPrimary (line 217) | func TestFactoryRawKeyAsPrimary(t *testing.T) { function validateAEADFactoryCipher (line 236) | func validateAEADFactoryCipher(encryptCipher, decryptCipher tink.AEAD, e... function TestFactoryWithInvalidPrimitiveSetType (line 277) | func TestFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestFactoryWithValidPrimitiveSetType (line 289) | func TestFactoryWithValidPrimitiveSetType(t *testing.T) { function TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecryptionWithPrefix (line 301) | func TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecrypti... function TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecryptionWithoutPrefix (line 356) | func TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecrypti... function TestPrimitiveFactoryMonitoringWithAnnotatiosMultipleKeysLogsEncryptionDecryption (line 410) | func TestPrimitiveFactoryMonitoringWithAnnotatiosMultipleKeysLogsEncrypt... function TestPrimitiveFactoryWithMonitoringAnnotationsEncryptionFailureIsLogged (line 511) | func TestPrimitiveFactoryWithMonitoringAnnotationsEncryptionFailureIsLog... function TestPrimitiveFactoryWithMonitoringAnnotationsDecryptionFailureIsLogged (line 570) | func TestPrimitiveFactoryWithMonitoringAnnotationsDecryptionFailureIsLog... function mustCreateHandle (line 611) | func mustCreateHandle(t *testing.T, annotations map[string]string, templ... function TestFactoryWithMonitoringMultiplePrimitivesLogOperations (line 633) | func TestFactoryWithMonitoringMultiplePrimitivesLogOperations(t *testing... function TestPrimitiveFactoryEncryptDecryptWithoutAnnotationsDoesNothing (line 710) | func TestPrimitiveFactoryEncryptDecryptWithoutAnnotationsDoesNothing(t *... FILE: aead/aead_init_test.go function TestAEADInit (line 24) | func TestAEADInit(t *testing.T) { FILE: aead/aead_key_templates.go constant aesGCMTypeURL (line 34) | aesGCMTypeURL = "type.googleapis.com/google.crypto.tink.AesGc... constant xAESGCMTypeURL (line 35) | xAESGCMTypeURL = "type.googleapis.com/google.crypto.tink.XAesG... constant chaCha20Poly1305TypeURL (line 36) | chaCha20Poly1305TypeURL = "type.googleapis.com/google.crypto.tink.ChaCh... constant xChaCha20Poly1305TypeURL (line 37) | xChaCha20Poly1305TypeURL = "type.googleapis.com/google.crypto.tink.XChaC... constant aesCTRHMACAEADTypeURL (line 38) | aesCTRHMACAEADTypeURL = "type.googleapis.com/google.crypto.tink.AesCt... constant aesGCMSIVTypeURL (line 39) | aesGCMSIVTypeURL = "type.googleapis.com/google.crypto.tink.AesGc... function AES128GCMKeyTemplate (line 48) | func AES128GCMKeyTemplate() *tinkpb.KeyTemplate { function AES256GCMKeyTemplate (line 55) | func AES256GCMKeyTemplate() *tinkpb.KeyTemplate { function AES256GCMNoPrefixKeyTemplate (line 62) | func AES256GCMNoPrefixKeyTemplate() *tinkpb.KeyTemplate { function XAES256GCM192BitNonceKeyTemplate (line 70) | func XAES256GCM192BitNonceKeyTemplate() *tinkpb.KeyTemplate { function XAES256GCM192BitNonceNoPrefixKeyTemplate (line 78) | func XAES256GCM192BitNonceNoPrefixKeyTemplate() *tinkpb.KeyTemplate { function XAES256GCM160BitNonceKeyTemplate (line 86) | func XAES256GCM160BitNonceKeyTemplate() *tinkpb.KeyTemplate { function XAES256GCM160BitNonceNoPrefixKeyTemplate (line 94) | func XAES256GCM160BitNonceNoPrefixKeyTemplate() *tinkpb.KeyTemplate { function AES128GCMSIVKeyTemplate (line 101) | func AES128GCMSIVKeyTemplate() *tinkpb.KeyTemplate { function AES256GCMSIVKeyTemplate (line 108) | func AES256GCMSIVKeyTemplate() *tinkpb.KeyTemplate { function AES256GCMSIVNoPrefixKeyTemplate (line 115) | func AES256GCMSIVNoPrefixKeyTemplate() *tinkpb.KeyTemplate { function AES128CTRHMACSHA256KeyTemplate (line 125) | func AES128CTRHMACSHA256KeyTemplate() *tinkpb.KeyTemplate { function AES256CTRHMACSHA256KeyTemplate (line 135) | func AES256CTRHMACSHA256KeyTemplate() *tinkpb.KeyTemplate { function ChaCha20Poly1305KeyTemplate (line 140) | func ChaCha20Poly1305KeyTemplate() *tinkpb.KeyTemplate { function XChaCha20Poly1305KeyTemplate (line 149) | func XChaCha20Poly1305KeyTemplate() *tinkpb.KeyTemplate { function CreateKMSEnvelopeAEADKeyTemplate (line 187) | func CreateKMSEnvelopeAEADKeyTemplate(uri string, dekTemplate *tinkpb.Ke... function KMSEnvelopeAEADKeyTemplate (line 216) | func KMSEnvelopeAEADKeyTemplate(uri string, dekTemplate *tinkpb.KeyTempl... function createAESGCMKeyTemplate (line 226) | func createAESGCMKeyTemplate(keySize uint32, outputPrefixType tinkpb.Out... function createXAESGCMKeyTemplate (line 243) | func createXAESGCMKeyTemplate(saltSize uint32, outputPrefixType tinkpb.O... function createAESGCMSIVKeyTemplate (line 262) | func createAESGCMSIVKeyTemplate(keySize uint32, outputPrefixType tinkpb.... function createAESCTRHMACAEADKeyTemplate (line 277) | func createAESCTRHMACAEADKeyTemplate(aesKeySize, ivSize, hmacKeySize, ta... FILE: aead/aead_key_templates_test.go function TestKeyTemplates (line 31) | func TestKeyTemplates(t *testing.T) { function TestKMSEnvelopeAEADKeyTemplate (line 89) | func TestKMSEnvelopeAEADKeyTemplate(t *testing.T) { function TestKMSEnvelopeAEADKeyTemplateMultipleKeysSameKEK (line 136) | func TestKMSEnvelopeAEADKeyTemplateMultipleKeysSameKEK(t *testing.T) { function TestMigrateFromCreateKMSEnvelopeAEADKeyTemplateToNewKMSEnvelopeAEAD2 (line 188) | func TestMigrateFromCreateKMSEnvelopeAEADKeyTemplateToNewKMSEnvelopeAEAD... function TestCreateKMSEnvelopeAEADKeyTemplateCompatibleWithKMSEnevelopeAEADKeyTemplate (line 234) | func TestCreateKMSEnvelopeAEADKeyTemplateCompatibleWithKMSEnevelopeAEADK... function TestKMSEnvelopeAEADKeyTemplateFails (line 283) | func TestKMSEnvelopeAEADKeyTemplateFails(t *testing.T) { function TestCreateKMSEnvelopeAEADKeyTemplateFails (line 302) | func TestCreateKMSEnvelopeAEADKeyTemplateFails(t *testing.T) { function TestCreateKMSEnvelopeAEADKeyTemplateWithUnsupportedTemplateFails (line 316) | func TestCreateKMSEnvelopeAEADKeyTemplateWithUnsupportedTemplateFails(t ... function testEncryptDecrypt (line 327) | func testEncryptDecrypt(template *tinkpb.KeyTemplate) error { FILE: aead/aead_test.go function Example (line 29) | func Example() { FILE: aead/aesctrhmac/aead.go type fullAEAD (line 30) | type fullAEAD struct method Encrypt (line 75) | func (a *fullAEAD) Encrypt(plaintext, associatedData []byte) ([]byte, ... method Decrypt (line 96) | func (a *fullAEAD) Decrypt(ciphertext, associatedData []byte) ([]byte,... function newAEAD (line 41) | func newAEAD(key *Key) (tink.AEAD, error) { function aadSizeInBits (line 62) | func aadSizeInBits(associatedData []byte) []byte { function primitiveConstructor (line 116) | func primitiveConstructor(k key.Key) (any, error) { FILE: aead/aesctrhmac/aead_test.go function createAEAD (line 31) | func createAEAD(encryptionKey []byte, ivSize int, hashType aesctrhmac.Ha... function mustDecodeHex (line 136) | func mustDecodeHex(t *testing.T, data string) []byte { function TestAEADRFCTestVectors (line 145) | func TestAEADRFCTestVectors(t *testing.T) { function TestAEADEncryptDecrypt (line 247) | func TestAEADEncryptDecrypt(t *testing.T) { function TestAEADWithAssociatedDataSlice (line 285) | func TestAEADWithAssociatedDataSlice(t *testing.T) { function TestAEADEncryptDecryptRandomMessage (line 309) | func TestAEADEncryptDecryptRandomMessage(t *testing.T) { function TestAEADMultipleEncrypt (line 337) | func TestAEADMultipleEncrypt(t *testing.T) { function TestAEADInvalidTagSize (line 368) | func TestAEADInvalidTagSize(t *testing.T) { function TestAEADDecryptModifiedCiphertext (line 382) | func TestAEADDecryptModifiedCiphertext(t *testing.T) { function TestAEADEmptyParams (line 446) | func TestAEADEmptyParams(t *testing.T) { FILE: aead/aesctrhmac/aesctrhmac.go function newKeyManager (line 34) | func newKeyManager() registry.KeyManager { function RegisterPrimitiveConstructor (line 48) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 52) | func init() { FILE: aead/aesctrhmac/aesctrhmac_test.go function TestGetKeyFromHandle (line 35) | func TestGetKeyFromHandle(t *testing.T) { function TestCreateKeysetHandleFromKey (line 79) | func TestCreateKeysetHandleFromKey(t *testing.T) { function TestCreateKeysetHandleFromParameters (line 132) | func TestCreateKeysetHandleFromParameters(t *testing.T) { function TestRegisterPrimitiveConstructor (line 174) | func TestRegisterPrimitiveConstructor(t *testing.T) { function TestGetKeyManager (line 208) | func TestGetKeyManager(t *testing.T) { FILE: aead/aesctrhmac/key.go type Key (line 27) | type Key struct method AESKeyBytes (line 82) | func (k *Key) AESKeyBytes() secretdata.Bytes { return k.aesKeyBytes } method HMACKeyBytes (line 89) | func (k *Key) HMACKeyBytes() secretdata.Bytes { return k.hmacKeyBytes } method Parameters (line 92) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 96) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 101) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 104) | func (k *Key) Equal(other key.Key) bool { type KeyOpts (line 38) | type KeyOpts struct function NewKey (line 49) | func NewKey(params KeyOpts) (*Key, error) { function createKey (line 113) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: aead/aesctrhmac/key_manager_test.go function TestKeyManagerNewKeyMultipleTimes (line 34) | func TestKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestKeyManagerNewKeyWithInvalidSerializedKeyFormat (line 75) | func TestKeyManagerNewKeyWithInvalidSerializedKeyFormat(t *testing.T) { function mustCreateSubtleAEAD (line 145) | func mustCreateSubtleAEAD(t *testing.T, key []byte, ivSize int, hashAlgo... function TestKeyManagerPrimitive (line 163) | func TestKeyManagerPrimitive(t *testing.T) { function TestKeyManagerPrimitiveWithInvalidKey (line 205) | func TestKeyManagerPrimitiveWithInvalidKey(t *testing.T) { FILE: aead/aesctrhmac/key_parameters.go type Variant (line 32) | type Variant method String (line 45) | func (variant Variant) String() string { constant VariantUnknown (line 36) | VariantUnknown Variant = iota constant VariantTink (line 38) | VariantTink constant VariantCrunchy (line 40) | VariantCrunchy constant VariantNoPrefix (line 42) | VariantNoPrefix type HashType (line 59) | type HashType method String (line 76) | func (ht HashType) String() string { constant UnknownHashType (line 63) | UnknownHashType HashType = iota constant SHA1 (line 65) | SHA1 constant SHA224 (line 67) | SHA224 constant SHA256 (line 69) | SHA256 constant SHA384 (line 71) | SHA384 constant SHA512 (line 73) | SHA512 function calculateOutputPrefix (line 94) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { type Parameters (line 108) | type Parameters struct method AESKeySizeInBytes (line 120) | func (p *Parameters) AESKeySizeInBytes() int { return p.aesKeySizeInBy... method HMACKeySizeInBytes (line 123) | func (p *Parameters) HMACKeySizeInBytes() int { return p.hmacKeySizeIn... method IVSizeInBytes (line 126) | func (p *Parameters) IVSizeInBytes() int { return p.ivSizeInBytes } method TagSizeInBytes (line 129) | func (p *Parameters) TagSizeInBytes() int { return p.tagSizeInBytes } method HashType (line 132) | func (p *Parameters) HashType() HashType { return p.hashType } method Variant (line 135) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 205) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 208) | func (p *Parameters) Equal(other key.Parameters) bool { type ParametersOpts (line 138) | type ParametersOpts struct function maxTagSize (line 147) | func maxTagSize(ht HashType) (int, error) { constant minTagSize (line 164) | minTagSize = 10 function validateOpts (line 166) | func validateOpts(opts *ParametersOpts) error { function NewParameters (line 190) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: aead/aesctrhmac/key_parameters_test.go function TestNewParametersInvalidAESKeySize (line 24) | func TestNewParametersInvalidAESKeySize(t *testing.T) { function TestNewParametersInvalidIVSize (line 40) | func TestNewParametersInvalidIVSize(t *testing.T) { function TestNewParametersInvalidHMACKeySize (line 56) | func TestNewParametersInvalidHMACKeySize(t *testing.T) { function TestNewParametersInvalidTagSize (line 72) | func TestNewParametersInvalidTagSize(t *testing.T) { function TestNewParametersInvalidVariant (line 120) | func TestNewParametersInvalidVariant(t *testing.T) { type paramsTestVector (line 134) | type paramsTestVector struct function paramsTestVectors (line 139) | func paramsTestVectors() []paramsTestVector { function TestNewParametersWorks (line 207) | func TestNewParametersWorks(t *testing.T) { function TestParametersEqualFalseIfDifferent (line 243) | func TestParametersEqualFalseIfDifferent(t *testing.T) { FILE: aead/aesctrhmac/key_test.go function TestNewKeyFails (line 37) | func TestNewKeyFails(t *testing.T) { function TestOutputPrefix (line 117) | func TestOutputPrefix(t *testing.T) { type TestKey (line 181) | type TestKey struct function TestNewKeyWorks (line 189) | func TestNewKeyWorks(t *testing.T) { type stubKey (line 459) | type stubKey struct method Parameters (line 463) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 464) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 465) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqual_FalseIfDifferentType (line 467) | func TestKeyEqual_FalseIfDifferentType(t *testing.T) { function TestKeyEqualReturnsFalseIfDifferent (line 494) | func TestKeyEqualReturnsFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 744) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsForWrongAESKeySize (line 781) | func TestKeyCreator_FailsForWrongAESKeySize(t *testing.T) { FILE: aead/aesctrhmac/protoserialization.go constant typeURL (line 32) | typeURL = "type.googleapis.com/google.crypto.tink.AesCtrHmacAeadKey" type keySerializer (line 34) | type keySerializer struct method SerializeKey (line 68) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 38) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function hashTypeToProto (line 51) | func hashTypeToProto(ht HashType) (commonpb.HashType, error) { type keyParser (line 117) | type keyParser struct method ParseKey (line 151) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 121) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... function hashTypeFromProto (line 134) | func hashTypeFromProto(ht commonpb.HashType) (HashType, error) { type parametersSerializer (line 208) | type parametersSerializer struct method Serialize (line 212) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 254) | type parametersParser struct method Parse (line 258) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: aead/aesctrhmac/protoserialization_test.go function TestParseKeyFails (line 35) | func TestParseKeyFails(t *testing.T) { function mustCreateKeySerialization (line 289) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function mustSerializeProto (line 298) | func mustSerializeProto(t *testing.T, m proto.Message) []byte { type keyParsingTestCase (line 307) | type keyParsingTestCase struct function testCases (line 313) | func testCases(t *testing.T) []*keyParsingTestCase { function TestParseKey (line 560) | func TestParseKey(t *testing.T) { type testParams (line 575) | type testParams struct method HasIDRequirement (line 579) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 581) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 586) | type testKey struct method Parameters (line 592) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 594) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 602) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 604) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 628) | func TestSerializeKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 643) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 670) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersSerializationTestCase (line 698) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 704) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 805) | func TestSerializeParameters(t *testing.T) { function mustCreateParameters (line 819) | func mustCreateParameters(t *testing.T, parametersOpts ParametersOpts) *... function TestParseParameters (line 828) | func TestParseParameters(t *testing.T) { function mustMarshal (line 842) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFailsWithWrongKeyTemplate (line 851) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: aead/aesgcm/aead.go constant ivSize (line 32) | ivSize = 12 constant tagSize (line 34) | tagSize = 16 type fullAEAD (line 41) | type fullAEAD struct method Encrypt (line 56) | func (a *fullAEAD) Encrypt(plaintext, associatedData []byte) ([]byte, ... method Decrypt (line 76) | func (a *fullAEAD) Decrypt(ciphertext, associatedData []byte) ([]byte,... function NewAEAD (line 96) | func NewAEAD(k *Key) (tink.AEAD, error) { function primitiveConstructor (line 123) | func primitiveConstructor(k key.Key) (any, error) { FILE: aead/aesgcm/aead_test.go type testCase (line 34) | type testCase struct constant ivSize (line 39) | ivSize = 12 constant tagSize (line 40) | tagSize = 16 function TestNewAEADFailures (line 43) | func TestNewAEADFailures(t *testing.T) { function TestAEAD (line 78) | func TestAEAD(t *testing.T) { function TestAEADDecryptFailsIfCiphertextIsCorruptedOrTruncated (line 252) | func TestAEADDecryptFailsIfCiphertextIsCorruptedOrTruncated(t *testing.T) { function TestAEADEncryptUsesRandomNonce (line 309) | func TestAEADEncryptUsesRandomNonce(t *testing.T) { function TestAEADWycheproofCases (line 340) | func TestAEADWycheproofCases(t *testing.T) { function TestPrimitiveCreator (line 388) | func TestPrimitiveCreator(t *testing.T) { function TestPrimitiveCreatorInvalidParameters (line 499) | func TestPrimitiveCreatorInvalidParameters(t *testing.T) { FILE: aead/aesgcm/aesgcm.go function newKeyManager (line 34) | func newKeyManager() registry.KeyManager { function RegisterPrimitiveConstructor (line 48) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 52) | func init() { FILE: aead/aesgcm/aesgcm_test.go function TestGetKeyFromHandle (line 38) | func TestGetKeyFromHandle(t *testing.T) { function TestCreateKeysetHandleFromKey (line 74) | func TestCreateKeysetHandleFromKey(t *testing.T) { function TestCreateKeysetHandleFromParameters (line 127) | func TestCreateKeysetHandleFromParameters(t *testing.T) { function mustDecodeHex (line 167) | func mustDecodeHex(t *testing.T, hexStr string) []byte { function mustCreateKey (line 176) | func mustCreateKey(t *testing.T, keyValue []byte, keyID uint32, opts aes... function TestAESGCMAEADWorks (line 190) | func TestAESGCMAEADWorks(t *testing.T) { function TestRegisterPrimitiveConstructor (line 319) | func TestRegisterPrimitiveConstructor(t *testing.T) { function TestGetKeyManager (line 346) | func TestGetKeyManager(t *testing.T) { FILE: aead/aesgcm/key.go type Variant (line 35) | type Variant method String (line 48) | func (variant Variant) String() string { constant VariantUnknown (line 39) | VariantUnknown Variant = iota constant VariantTink (line 41) | VariantTink constant VariantCrunchy (line 43) | VariantCrunchy constant VariantNoPrefix (line 45) | VariantNoPrefix function calculateOutputPrefix (line 62) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { type Parameters (line 76) | type Parameters struct method KeySizeInBytes (line 86) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method IVSizeInBytes (line 89) | func (p *Parameters) IVSizeInBytes() int { return p.ivSizeInBytes } method TagSizeInBytes (line 92) | func (p *Parameters) TagSizeInBytes() int { return p.tagSizeInBytes } method Variant (line 95) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 135) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 138) | func (p *Parameters) Equal(other key.Parameters) bool { type ParametersOpts (line 98) | type ParametersOpts struct function validateOpts (line 105) | func validateOpts(opts *ParametersOpts) error { function NewParameters (line 122) | func NewParameters(opts ParametersOpts) (*Parameters, error) { type Key (line 148) | type Key struct method KeyBytes (line 201) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 204) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 208) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 213) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 216) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 165) | func NewKey(keyBytes secretdata.Bytes, idRequirement uint32, parameters ... function createKey (line 224) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: aead/aesgcm/key_manager_test.go function TestAESGCMGetPrimitiveBasic (line 36) | func TestAESGCMGetPrimitiveBasic(t *testing.T) { function TestAESGCMGetPrimitiveWithInvalidInput (line 68) | func TestAESGCMGetPrimitiveWithInvalidInput(t *testing.T) { function TestAESGCMNewKeyMultipleTimes (line 94) | func TestAESGCMNewKeyMultipleTimes(t *testing.T) { function TestAESGCMNewKeyBasic (line 129) | func TestAESGCMNewKeyBasic(t *testing.T) { function TestAESGCMNewKeyWithInvalidInput (line 151) | func TestAESGCMNewKeyWithInvalidInput(t *testing.T) { function TestAESGCMNewKeyDataBasic (line 177) | func TestAESGCMNewKeyDataBasic(t *testing.T) { function TestAESGCMNewKeyDataWithInvalidInput (line 208) | func TestAESGCMNewKeyDataWithInvalidInput(t *testing.T) { function TestAESGCMDoesSupport (line 233) | func TestAESGCMDoesSupport(t *testing.T) { function TestAESGCMTypeURL (line 246) | func TestAESGCMTypeURL(t *testing.T) { function genInvalidAESGCMKeys (line 256) | func genInvalidAESGCMKeys() []proto.Message { function genInvalidAESGCMKeyFormats (line 269) | func genInvalidAESGCMKeyFormats() []proto.Message { function validateAESGCMKey (line 280) | func validateAESGCMKey(key *gcmpb.AesGcmKey, format *gcmpb.AesGcmKeyForm... FILE: aead/aesgcm/key_test.go function TestNewParametersInvalidKeySize (line 43) | func TestNewParametersInvalidKeySize(t *testing.T) { function TestNewParametersInvalidIVSize (line 57) | func TestNewParametersInvalidIVSize(t *testing.T) { function TestNewParametersInvalidTagSize (line 71) | func TestNewParametersInvalidTagSize(t *testing.T) { function TestNewParametersInvalidVariant (line 85) | func TestNewParametersInvalidVariant(t *testing.T) { function TestNewKeyFailsIfParametersIsNil (line 97) | func TestNewKeyFailsIfParametersIsNil(t *testing.T) { function TestNewKeyFailsIfKeySizeIsDifferentThanParameters (line 107) | func TestNewKeyFailsIfKeySizeIsDifferentThanParameters(t *testing.T) { function TestNewKeyFailsIfInvalidParams (line 150) | func TestNewKeyFailsIfInvalidParams(t *testing.T) { function TestNewKeyFailsIfNoPrefixAndIDIsNotZero (line 161) | func TestNewKeyFailsIfNoPrefixAndIDIsNotZero(t *testing.T) { function TestOutputPrefix (line 178) | func TestOutputPrefix(t *testing.T) { function TestNewParametersWorks (line 230) | func TestNewParametersWorks(t *testing.T) { function TestParametersEqualFalseIfDifferent (line 304) | func TestParametersEqualFalseIfDifferent(t *testing.T) { type TestKey (line 355) | type TestKey struct function TestNewKeyWorks (line 363) | func TestNewKeyWorks(t *testing.T) { type stubKey (line 456) | type stubKey struct method Parameters (line 460) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 461) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 462) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqual_FalseIfDifferentType (line 464) | func TestKeyEqual_FalseIfDifferentType(t *testing.T) { function TestKeyEqualReturnsFalseIfDifferent (line 484) | func TestKeyEqualReturnsFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 593) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsIfInvalidKeySize (line 625) | func TestKeyCreator_FailsIfInvalidKeySize(t *testing.T) { FILE: aead/aesgcm/protoserialization.go constant protoVersion (line 33) | protoVersion = 0 constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.AesGcmKey" type keySerializer (line 37) | type keySerializer struct method SerializeKey (line 54) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 41) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type keyParser (line 86) | type keyParser struct method ParseKey (line 103) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 90) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type parametersSerializer (line 142) | type parametersSerializer struct method Serialize (line 146) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 169) | type parametersParser struct method Parse (line 173) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: aead/aesgcm/protoserialization_test.go function TestParseKeyFails (line 32) | func TestParseKeyFails(t *testing.T) { function mustCreateKeySerialization (line 143) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKey (line 152) | func TestParseKey(t *testing.T) { type testParams (line 227) | type testParams struct method HasIDRequirement (line 231) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 233) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 238) | type testKey struct method Parameters (line 244) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 246) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 254) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 256) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 280) | func TestSerializeKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 355) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 382) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersSerializationTestCase (line 398) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 404) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 430) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 444) | func TestParseParameters(t *testing.T) { function mustMarshal (line 458) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFailsWithWrongKeyTemplate (line 467) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: aead/aesgcmsiv/aead.go type aead (line 28) | type aead struct method Encrypt (line 49) | func (ca *aead) Encrypt(plaintext []byte, associatedData []byte) ([]by... method Decrypt (line 58) | func (ca *aead) Decrypt(ciphertext []byte, associatedData []byte) ([]b... function newAEAD (line 36) | func newAEAD(key *Key) (tink.AEAD, error) { function primitiveConstructor (line 70) | func primitiveConstructor(key key.Key) (any, error) { FILE: aead/aesgcmsiv/aead_test.go function TestEncryptDecrypt (line 28) | func TestEncryptDecrypt(t *testing.T) { function TestDecryptFailsWithWrongPrefix (line 102) | func TestDecryptFailsWithWrongPrefix(t *testing.T) { function mustDecodeHex (line 169) | func mustDecodeHex(t *testing.T, hexStr string) []byte { function TestDecryptCorrectness (line 178) | func TestDecryptCorrectness(t *testing.T) { FILE: aead/aesgcmsiv/aesgcmsiv.go function newKeyManager (line 36) | func newKeyManager() registry.KeyManager { function RegisterPrimitiveConstructor (line 50) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 54) | func init() { FILE: aead/aesgcmsiv/aesgcmsiv_test.go function TestGetKeyFromHandle (line 35) | func TestGetKeyFromHandle(t *testing.T) { function TestCreateKeysetHandleFromKey (line 65) | func TestCreateKeysetHandleFromKey(t *testing.T) { function TestCreateKeysetHandleFromParameters (line 118) | func TestCreateKeysetHandleFromParameters(t *testing.T) { function TestRegisterPrimitiveConstructor (line 152) | func TestRegisterPrimitiveConstructor(t *testing.T) { function mustDecodeHex (line 173) | func mustDecodeHex(t *testing.T, hexStr string) []byte { function TestGetKeyManager (line 182) | func TestGetKeyManager(t *testing.T) { FILE: aead/aesgcmsiv/key.go type Variant (line 34) | type Variant method String (line 47) | func (variant Variant) String() string { constant VariantUnknown (line 38) | VariantUnknown Variant = iota constant VariantTink (line 40) | VariantTink constant VariantCrunchy (line 42) | VariantCrunchy constant VariantNoPrefix (line 44) | VariantNoPrefix function calculateOutputPrefix (line 61) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { type Parameters (line 75) | type Parameters struct method KeySizeInBytes (line 83) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method Variant (line 86) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 113) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 116) | func (p *Parameters) Equal(other key.Parameters) bool { function validateParams (line 88) | func validateParams(params *Parameters) error { function NewParameters (line 101) | func NewParameters(keySizeInBytes int, variant Variant) (*Parameters, er... type Key (line 124) | type Key struct method KeyBytes (line 171) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 174) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 178) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 183) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 186) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 141) | func NewKey(keyBytes secretdata.Bytes, idRequirement uint32, parameters ... function createKey (line 194) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: aead/aesgcmsiv/key_manager_test.go function TestKeyManagerGetPrimitiveBasic (line 33) | func TestKeyManagerGetPrimitiveBasic(t *testing.T) { function TestKeyManagerGetPrimitiveWithInvalidInput (line 68) | func TestKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyMultipleTimes (line 94) | func TestKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestKeyManagerNewKeyBasic (line 129) | func TestKeyManagerNewKeyBasic(t *testing.T) { function TestKeyManagerNewKeyWithInvalidInput (line 153) | func TestKeyManagerNewKeyWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyDataBasic (line 179) | func TestKeyManagerNewKeyDataBasic(t *testing.T) { function TestKeyManagerNewKeyDataWithInvalidInput (line 234) | func TestKeyManagerNewKeyDataWithInvalidInput(t *testing.T) { function TestKeyManagerDoesSupport (line 260) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 273) | func TestKeyManagerTypeURL(t *testing.T) { function genInvalidAESGCMSIVKeys (line 283) | func genInvalidAESGCMSIVKeys() []proto.Message { function genInvalidAESGCMSIVKeyFormats (line 296) | func genInvalidAESGCMSIVKeyFormats() []proto.Message { function validateAESGCMSIVKey (line 307) | func validateAESGCMSIVKey(key *gcmsivpb.AesGcmSivKey, format *gcmsivpb.A... FILE: aead/aesgcmsiv/key_test.go function TestNewParametersInvalidKeySize (line 43) | func TestNewParametersInvalidKeySize(t *testing.T) { function TestNewParametersInvalidVariant (line 51) | func TestNewParametersInvalidVariant(t *testing.T) { function TestNewKeyFailsIfParametersIsNil (line 57) | func TestNewKeyFailsIfParametersIsNil(t *testing.T) { function TestNewKeyFailsIfKeySizeIsDifferentThanParameters (line 67) | func TestNewKeyFailsIfKeySizeIsDifferentThanParameters(t *testing.T) { function TestNewKeyFailsIfInvalidParams (line 103) | func TestNewKeyFailsIfInvalidParams(t *testing.T) { function TestNewKeyFailsIfNoPrefixAndIDIsNotZero (line 114) | func TestNewKeyFailsIfNoPrefixAndIDIsNotZero(t *testing.T) { function TestOutputPrefix (line 125) | func TestOutputPrefix(t *testing.T) { function TestNewParametersWorks (line 171) | func TestNewParametersWorks(t *testing.T) { function TestParametersEqualFalseIfDifferent (line 233) | func TestParametersEqualFalseIfDifferent(t *testing.T) { type TestKey (line 272) | type TestKey struct function TestNewKeyWorks (line 280) | func TestNewKeyWorks(t *testing.T) { type stubKey (line 367) | type stubKey struct method Parameters (line 371) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 372) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 373) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqual_FalseIfDifferentType (line 375) | func TestKeyEqual_FalseIfDifferentType(t *testing.T) { function TestKeyEqualReturnsFalseIfDifferent (line 390) | func TestKeyEqualReturnsFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 487) | func TestKeyCreator(t *testing.T) { FILE: aead/aesgcmsiv/protoserialization.go constant protoVersion (line 33) | protoVersion = 0 constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.AesGcmSivKey" type keySerializer (line 37) | type keySerializer struct method SerializeKey (line 54) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 41) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type keyParser (line 82) | type keyParser struct method ParseKey (line 99) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 86) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type parametersSerializer (line 133) | type parametersSerializer struct method Serialize (line 137) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 160) | type parametersParser struct method Parse (line 164) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: aead/aesgcmsiv/protoserialization_test.go function TestParseKeyFails (line 32) | func TestParseKeyFails(t *testing.T) { function mustCreateKeySerialization (line 143) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKey (line 152) | func TestParseKey(t *testing.T) { type testParams (line 222) | type testParams struct method HasIDRequirement (line 226) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 228) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 233) | type testKey struct method Parameters (line 239) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 241) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 249) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 251) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 275) | func TestSerializeKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 344) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 371) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersSerializationTestCase (line 387) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 393) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 418) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 432) | func TestParseParameters(t *testing.T) { function mustMarshal (line 446) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFailsWithWrongKeyTemplate (line 455) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: aead/chacha20poly1305/aead.go type fullAEAD (line 30) | type fullAEAD struct method Encrypt (line 54) | func (ca *fullAEAD) Encrypt(plaintext []byte, associatedData []byte) (... method Decrypt (line 67) | func (ca *fullAEAD) Decrypt(ciphertext []byte, associatedData []byte) ... function newAEAD (line 38) | func newAEAD(key *Key) (tink.AEAD, error) { function primitiveConstructor (line 85) | func primitiveConstructor(key key.Key) (any, error) { FILE: aead/chacha20poly1305/aead_test.go function TestEncryptDecrypt (line 28) | func TestEncryptDecrypt(t *testing.T) { function TestDecryptFailsCiphertextTooShort (line 85) | func TestDecryptFailsCiphertextTooShort(t *testing.T) { function TestDecryptFailsWithWrongPrefix (line 139) | func TestDecryptFailsWithWrongPrefix(t *testing.T) { function mustDecodeHex (line 193) | func mustDecodeHex(t *testing.T, hexStr string) []byte { function TestDecryptCorrectness (line 202) | func TestDecryptCorrectness(t *testing.T) { FILE: aead/chacha20poly1305/chacha20poly1305.go function newKeyManager (line 33) | func newKeyManager() registry.KeyManager { function RegisterPrimitiveConstructor (line 47) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 51) | func init() { FILE: aead/chacha20poly1305/chacha20poly1305_test.go function TestGetKeyFromHandle (line 35) | func TestGetKeyFromHandle(t *testing.T) { function TestCreateKeysetHandleFromKey (line 64) | func TestCreateKeysetHandleFromKey(t *testing.T) { function TestCreateKeysetHandleFromParameters (line 117) | func TestCreateKeysetHandleFromParameters(t *testing.T) { function TestRegisterPrimitiveConstructor (line 151) | func TestRegisterPrimitiveConstructor(t *testing.T) { function mustDecodeHex (line 172) | func mustDecodeHex(t *testing.T, hexStr string) []byte { function TestGetKeyManager (line 181) | func TestGetKeyManager(t *testing.T) { FILE: aead/chacha20poly1305/key.go type Variant (line 35) | type Variant method String (line 48) | func (variant Variant) String() string { constant VariantUnknown (line 39) | VariantUnknown Variant = iota constant VariantTink (line 41) | VariantTink constant VariantCrunchy (line 43) | VariantCrunchy constant VariantNoPrefix (line 45) | VariantNoPrefix function calculateOutputPrefix (line 62) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { type Parameters (line 76) | type Parameters struct method Variant (line 83) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 96) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 99) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 86) | func NewParameters(variant Variant) (*Parameters, error) { type Key (line 105) | type Key struct method KeyBytes (line 142) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 145) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 150) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 155) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 158) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 115) | func NewKey(keyBytes secretdata.Bytes, idRequirement uint32, parameters ... function createKey (line 165) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: aead/chacha20poly1305/key_manager_test.go function TestKeyManagerGetPrimitive (line 34) | func TestKeyManagerGetPrimitive(t *testing.T) { function TestKeyManagerGetPrimitiveWithInvalidKeys (line 71) | func TestKeyManagerGetPrimitiveWithInvalidKeys(t *testing.T) { function TestKeyManagerNewKey (line 88) | func TestKeyManagerNewKey(t *testing.T) { function TestKeyManagerNewKeyData (line 106) | func TestKeyManagerNewKeyData(t *testing.T) { function TestKeyManagerDoesSupport (line 148) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 161) | func TestKeyManagerTypeURL(t *testing.T) { function genInvalidChaCha20Poly1305Keys (line 171) | func genInvalidChaCha20Poly1305Keys() []*cppb.ChaCha20Poly1305Key { function validateChaCha20Poly1305Key (line 194) | func validateChaCha20Poly1305Key(key *cppb.ChaCha20Poly1305Key) error { FILE: aead/chacha20poly1305/key_test.go function TestNewParametersInvalidVariant (line 39) | func TestNewParametersInvalidVariant(t *testing.T) { function TestOutputPrefix (line 45) | func TestOutputPrefix(t *testing.T) { function TestNewParametersWorks (line 91) | func TestNewParametersWorks(t *testing.T) { function TestParametersEqualFalseIfDifferentVariant (line 132) | func TestParametersEqualFalseIfDifferentVariant(t *testing.T) { type TestKey (line 170) | type TestKey struct function TestNewKeyWorks (line 177) | func TestNewKeyWorks(t *testing.T) { function TestNewKeyFailsIfNoPrefixAndIDIsNotZero (line 234) | func TestNewKeyFailsIfNoPrefixAndIDIsNotZero(t *testing.T) { type stubKey (line 245) | type stubKey struct method Parameters (line 249) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 250) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 251) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqual_FalseIfDifferentType (line 253) | func TestKeyEqual_FalseIfDifferentType(t *testing.T) { function TestKeyEqualReturnsFalseIfDifferent (line 268) | func TestKeyEqualReturnsFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 345) | func TestKeyCreator(t *testing.T) { FILE: aead/chacha20poly1305/protoserialization.go constant protoVersion (line 33) | protoVersion = 0 constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.ChaCha20Poly1305Key" type keySerializer (line 37) | type keySerializer struct method SerializeKey (line 54) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 41) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type keyParser (line 86) | type keyParser struct method ParseKey (line 103) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 90) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type parametersSerializer (line 136) | type parametersSerializer struct method Serialize (line 140) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 161) | type parametersParser struct method Parse (line 165) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: aead/chacha20poly1305/protoserialization_test.go function TestParseKeyFails (line 31) | func TestParseKeyFails(t *testing.T) { function mustCreateKeySerialization (line 142) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKey (line 151) | func TestParseKey(t *testing.T) { type testParams (line 220) | type testParams struct method HasIDRequirement (line 224) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 226) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 231) | type testKey struct method Parameters (line 237) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 239) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 247) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 249) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 273) | func TestSerializeKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 343) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 370) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... function TestSerializeParameters (line 384) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 425) | func TestParseParameters(t *testing.T) { function mustMarshal (line 465) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFailsWithWrongKeyTemplate (line 474) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: aead/internal/testutil/testutil.go function EncryptDecrypt (line 28) | func EncryptDecrypt(encryptor, decryptor tink.AEAD) error { FILE: aead/internal/testutil/testutil_test.go function TestEncryptDecryptFailsWithFailingAEAD (line 27) | func TestEncryptDecryptFailsWithFailingAEAD(t *testing.T) { function TestEncryptDecryptWorks (line 44) | func TestEncryptDecryptWorks(t *testing.T) { FILE: aead/kms_envelope_aead.go constant lenDEK (line 29) | lenDEK = 4 constant maxLengthEncryptedDEK (line 30) | maxLengthEncryptedDEK = 4096 type KMSEnvelopeAEAD (line 35) | type KMSEnvelopeAEAD struct method Encrypt (line 151) | func (a *KMSEnvelopeAEAD) Encrypt(plaintext, associatedData []byte) ([... method Decrypt (line 200) | func (a *KMSEnvelopeAEAD) Decrypt(ciphertext, associatedData []byte) (... function isSupportedKMSEnvelopeDEK (line 51) | func isSupportedKMSEnvelopeDEK(dekKeyTypeURL string) bool { type KMSEnvelopeAEADWithContext (line 58) | type KMSEnvelopeAEADWithContext struct method EncryptWithContext (line 219) | func (a *KMSEnvelopeAEADWithContext) EncryptWithContext(ctx context.Co... method DecryptWithContext (line 232) | func (a *KMSEnvelopeAEADWithContext) DecryptWithContext(ctx context.Co... function NewKMSEnvelopeAEADWithContext (line 75) | func NewKMSEnvelopeAEADWithContext(dekTemplate *tinkpb.KeyTemplate, keyE... function NewKMSEnvelopeAEAD2 (line 98) | func NewKMSEnvelopeAEAD2(dekTemplate *tinkpb.KeyTemplate, keyEncryptionA... function newDEK (line 113) | func newDEK(template *tinkpb.KeyTemplate) ([]byte, error) { function encryptDataAndSerializeEnvelope (line 121) | func encryptDataAndSerializeEnvelope(dekTypeURL string, dek, encryptedDE... function parseEnvelope (line 167) | func parseEnvelope(ciphertext []byte) ([]byte, []byte, error) { function decryptDataWithDEK (line 185) | func decryptDataWithDEK(dekTypeURL string, dek []byte, payload, associat... FILE: aead/kms_envelope_aead_example_test.go constant keyURI (line 28) | keyURI = "fake-kms://CM2b3_MDElQKSAowdHlwZS5nb29nbGVhcGlzLmNvbS9nb29nbGU... function Example_kmsEnvelopeAEAD (line 30) | func Example_kmsEnvelopeAEAD() { FILE: aead/kms_envelope_aead_key_manager.go constant kmsEnvelopeAEADKeyVersion (line 29) | kmsEnvelopeAEADKeyVersion = 0 constant kmsEnvelopeAEADTypeURL (line 30) | kmsEnvelopeAEADTypeURL = "type.googleapis.com/google.crypto.tink.KmsE... type kmsEnvelopeAEADKeyManager (line 35) | type kmsEnvelopeAEADKeyManager struct method Primitive (line 38) | func (km *kmsEnvelopeAEADKeyManager) Primitive(serializedKey []byte) (... method NewKey (line 63) | func (km *kmsEnvelopeAEADKeyManager) NewKey(serializedKeyFormat []byte... method NewKeyData (line 83) | func (km *kmsEnvelopeAEADKeyManager) NewKeyData(serializedKeyFormat []... method DoesSupport (line 100) | func (km *kmsEnvelopeAEADKeyManager) DoesSupport(typeURL string) bool { method TypeURL (line 105) | func (km *kmsEnvelopeAEADKeyManager) TypeURL() string { method validateKey (line 110) | func (km *kmsEnvelopeAEADKeyManager) validateKey(key *kmsepb.KmsEnvelo... method validateKeyFormat (line 120) | func (km *kmsEnvelopeAEADKeyManager) validateKeyFormat(keyFormat *kmse... FILE: aead/kms_envelope_aead_key_manager_test.go function TestNewKMSEnvelopeAEADKeyWithInvalidDEK (line 36) | func TestNewKMSEnvelopeAEADKeyWithInvalidDEK(t *testing.T) { function TestNewKMSEnvelopeAEADKeyWithInvalidSerializedKeyFormat (line 63) | func TestNewKMSEnvelopeAEADKeyWithInvalidSerializedKeyFormat(t *testing.... function TestKMSEnvelopeAEADWithTinkPrefix (line 131) | func TestKMSEnvelopeAEADWithTinkPrefix(t *testing.T) { FILE: aead/kms_envelope_aead_test.go function TestKMSEnvelopeWorksWithTinkKeyTemplatesAsDekTemplate (line 28) | func TestKMSEnvelopeWorksWithTinkKeyTemplatesAsDekTemplate(t *testing.T) { function TestKMSEnvelopeDecryptTestVector (line 135) | func TestKMSEnvelopeDecryptTestVector(t *testing.T) { function TestKMSEnvelopeWithKmsEnvelopeKeyTemplatesAsDekTemplate_fails (line 179) | func TestKMSEnvelopeWithKmsEnvelopeKeyTemplatesAsDekTemplate_fails(t *te... function TestKMSEnvelopeShortCiphertext (line 211) | func TestKMSEnvelopeShortCiphertext(t *testing.T) { function TestKMSEnvelopeDecryptHugeEncryptedDek (line 238) | func TestKMSEnvelopeDecryptHugeEncryptedDek(t *testing.T) { type invalidAEAD (line 269) | type invalidAEAD struct method Encrypt (line 272) | func (a *invalidAEAD) Encrypt(plaintext, associatedData []byte) ([]byt... method Decrypt (line 276) | func (a *invalidAEAD) Decrypt(ciphertext, associatedData []byte) ([]by... function TestKMSEnvelopeEncryptWithInvalidAEADFails (line 280) | func TestKMSEnvelopeEncryptWithInvalidAEADFails(t *testing.T) { FILE: aead/subtle/aes_ctr.go constant AESCTRMinIVSize (line 25) | AESCTRMinIVSize = 12 type AESCTR (line 29) | type AESCTR struct method Encrypt (line 49) | func (a *AESCTR) Encrypt(plaintext []byte) ([]byte, error) { method Decrypt (line 54) | func (a *AESCTR) Decrypt(ciphertext []byte) ([]byte, error) { function NewAESCTR (line 38) | func NewAESCTR(key []byte, ivSize int) (*AESCTR, error) { FILE: aead/subtle/aes_ctr_test.go function TestNewAESCTR (line 28) | func TestNewAESCTR(t *testing.T) { function TestNistTestVector (line 74) | func TestNistTestVector(t *testing.T) { function TestMultipleEncrypt (line 118) | func TestMultipleEncrypt(t *testing.T) { function TestEncryptDecrypt (line 153) | func TestEncryptDecrypt(t *testing.T) { function TestEncryptRandomMessage (line 184) | func TestEncryptRandomMessage(t *testing.T) { function TestEncryptRandomKeyAndMessage (line 213) | func TestEncryptRandomKeyAndMessage(t *testing.T) { FILE: aead/subtle/aes_gcm.go constant AESGCMIVSize (line 28) | AESGCMIVSize = 12 constant AESGCMTagSize (line 30) | AESGCMTagSize = 16 type AESGCM (line 36) | type AESGCM struct method Encrypt (line 67) | func (a *AESGCM) Encrypt(plaintext, associatedData []byte) ([]byte, er... method Decrypt (line 72) | func (a *AESGCM) Decrypt(ciphertext, associatedData []byte) ([]byte, e... function NewAESGCM (line 44) | func NewAESGCM(key []byte) (*AESGCM, error) { FILE: aead/subtle/aes_gcm_siv.go constant AESGCMSIVNonceSize (line 32) | AESGCMSIVNonceSize = 12 constant aesgcmsivBlockSize (line 37) | aesgcmsivBlockSize = 16 constant aesgcmsivTagSize (line 41) | aesgcmsivTagSize = aesgcmsivBlockSize constant aesgcmsivPolyvalSize (line 45) | aesgcmsivPolyvalSize = aesgcmsivBlockSize constant maxAESGCMSIVKeySize (line 47) | maxAESGCMSIVKeySize = 32 type AESGCMSIV (line 51) | type AESGCMSIV struct method Encrypt (line 77) | func (a *AESGCMSIV) Encrypt(plaintext, associatedData []byte) ([]byte,... method Decrypt (line 117) | func (a *AESGCMSIV) Decrypt(ciphertext, associatedData []byte) ([]byte... method deriveKeys (line 167) | func (a *AESGCMSIV) deriveKeys(nonce, authKey, encKey []byte) error { method computePolyval (line 200) | func (a *AESGCMSIV) computePolyval(authKey, pt, ad []byte) ([]byte, er... method computeTag (line 218) | func (a *AESGCMSIV) computeTag(polyval, nonce, encKey, out []byte) err... function NewAESGCMSIV (line 59) | func NewAESGCMSIV(key []byte) (*AESGCMSIV, error) { function aesCTR (line 243) | func aesCTR(key, tag, in, out []byte) error { FILE: aead/subtle/aes_gcm_siv_test.go function TestAESGCMSIVRejectsInvalidKeyLength (line 29) | func TestAESGCMSIVRejectsInvalidKeyLength(t *testing.T) { function TestAESGCMSIVRandomNonceProducesDifferentCiphertexts (line 41) | func TestAESGCMSIVRandomNonceProducesDifferentCiphertexts(t *testing.T) { function TestAESGCMSIVModifyCiphertext (line 66) | func TestAESGCMSIVModifyCiphertext(t *testing.T) { function TestAESGCMSIVWycheproofCases (line 108) | func TestAESGCMSIVWycheproofCases(t *testing.T) { function runWycheproofDecryptOnly (line 120) | func runWycheproofDecryptOnly(t *testing.T, testCase *aead.WycheproofCas... function runWycheproofEncryptDecrypt (line 149) | func runWycheproofEncryptDecrypt(t *testing.T, testCase *aead.Wycheproof... FILE: aead/subtle/aes_gcm_test.go function TestAESGCMTagLength (line 36) | func TestAESGCMTagLength(t *testing.T) { function TestAESGCMKeySize (line 56) | func TestAESGCMKeySize(t *testing.T) { function TestAESGCMEncryptDecrypt (line 67) | func TestAESGCMEncryptDecrypt(t *testing.T) { function TestAESGCMLongMessages (line 92) | func TestAESGCMLongMessages(t *testing.T) { function TestAESGCMModifyCiphertext (line 119) | func TestAESGCMModifyCiphertext(t *testing.T) { function TestAESGCMRandomNonce (line 174) | func TestAESGCMRandomNonce(t *testing.T) { function TestAESGCMWycheproofCases (line 198) | func TestAESGCMWycheproofCases(t *testing.T) { function runAESGCMWycheproofCase (line 216) | func runAESGCMWycheproofCase(t *testing.T, tc *aead.WycheproofCase) { FILE: aead/subtle/chacha20poly1305.go type ChaCha20Poly1305 (line 29) | type ChaCha20Poly1305 struct method Encrypt (line 52) | func (ca *ChaCha20Poly1305) Encrypt(plaintext []byte, associatedData [... method Decrypt (line 65) | func (ca *ChaCha20Poly1305) Decrypt(ciphertext []byte, associatedData ... function NewChaCha20Poly1305 (line 38) | func NewChaCha20Poly1305(key []byte) (*ChaCha20Poly1305, error) { FILE: aead/subtle/chacha20poly1305_test.go function TestChaCha20Poly1305EncryptDecrypt (line 31) | func TestChaCha20Poly1305EncryptDecrypt(t *testing.T) { function TestChaCha20Poly1305EmptyAssociatedData (line 79) | func TestChaCha20Poly1305EmptyAssociatedData(t *testing.T) { function TestChaCha20Poly1305LongMessages (line 129) | func TestChaCha20Poly1305LongMessages(t *testing.T) { function TestChaCha20Poly1305ModifyCiphertext (line 156) | func TestChaCha20Poly1305ModifyCiphertext(t *testing.T) { function TestChaCha20Poly1305RandomNonce (line 204) | func TestChaCha20Poly1305RandomNonce(t *testing.T) { function TestChaCha20Poly1305WycheproofCases (line 224) | func TestChaCha20Poly1305WycheproofCases(t *testing.T) { function runChaCha20Poly1305WycheproofCase (line 242) | func runChaCha20Poly1305WycheproofCase(t *testing.T, tc *aead.Wycheproof... FILE: aead/subtle/encrypt_then_authenticate.go type EncryptThenAuthenticate (line 29) | type EncryptThenAuthenticate struct method Encrypt (line 65) | func (e *EncryptThenAuthenticate) Encrypt(plaintext, associatedData []... method Decrypt (line 91) | func (e *EncryptThenAuthenticate) Decrypt(ciphertext, associatedData [... constant minTagSizeInBytes (line 36) | minTagSizeInBytes = 10 function uint64ToByte (line 43) | func uint64ToByte(n uint64) []byte { function NewEncryptThenAuthenticate (line 50) | func NewEncryptThenAuthenticate(indCPACipher INDCPACipher, mac tink.MAC,... FILE: aead/subtle/encrypt_then_authenticate_test.go function createAEADWithKeys (line 28) | func createAEADWithKeys(encryptionKey []byte, ivSize int, hashAlgo strin... function createAEAD (line 46) | func createAEAD(keySize, ivSize int, hashAlgo string, macKeySize int, ta... function mustDecodeHex (line 130) | func mustDecodeHex(t *testing.T, data string) []byte { function TestETARFCTestVectors (line 139) | func TestETARFCTestVectors(t *testing.T) { function TestETAEncryptDecrypt (line 157) | func TestETAEncryptDecrypt(t *testing.T) { function TestETAWithAssociatedDataSlice (line 190) | func TestETAWithAssociatedDataSlice(t *testing.T) { function TestETAEncryptDecryptRandomMessage (line 215) | func TestETAEncryptDecryptRandomMessage(t *testing.T) { function TestETAMultipleEncrypt (line 250) | func TestETAMultipleEncrypt(t *testing.T) { function TestETAInvalidTagSize (line 279) | func TestETAInvalidTagSize(t *testing.T) { function TestETADecryptModifiedCiphertext (line 290) | func TestETADecryptModifiedCiphertext(t *testing.T) { function TestETAEmptyParams (line 353) | func TestETAEmptyParams(t *testing.T) { FILE: aead/subtle/ind_cpa.go type INDCPACipher (line 21) | type INDCPACipher interface FILE: aead/subtle/polyval.go constant PolyvalBlockSize (line 24) | PolyvalBlockSize = 16 constant u32Sel0 (line 26) | u32Sel0 uint32 = 0x11111111 constant u32Sel1 (line 27) | u32Sel1 uint32 = 0x22222222 constant u32Sel2 (line 28) | u32Sel2 uint32 = 0x44444444 constant u32Sel3 (line 29) | u32Sel3 uint32 = 0x88888888 constant u64Sel0 (line 31) | u64Sel0 uint64 = 0x1111111111111111 constant u64Sel1 (line 32) | u64Sel1 uint64 = 0x2222222222222222 constant u64Sel2 (line 33) | u64Sel2 uint64 = 0x4444444444444444 constant u64Sel3 (line 34) | u64Sel3 uint64 = 0x8888888888888888 type Polyval (line 40) | type Polyval interface type fieldElement (line 57) | type fieldElement struct type polyval (line 62) | type polyval struct method Update (line 173) | func (p *polyval) Update(data []byte) { method Finish (line 192) | func (p *polyval) Finish() (hash [PolyvalBlockSize]byte) { function mul32 (line 71) | func mul32(a uint32, b uint32) uint64 { function mul64 (line 91) | func mul64(a uint64, b uint64) fieldElement { function polyvalDot (line 111) | func polyvalDot(a fieldElement, b fieldElement) fieldElement { function NewPolyval (line 160) | func NewPolyval(key []byte) (Polyval, error) { FILE: aead/subtle/polyval_test.go function TestPolyval (line 87) | func TestPolyval(t *testing.T) { function TestPolyvalRejectsInvalidKeyLength (line 122) | func TestPolyvalRejectsInvalidKeyLength(t *testing.T) { FILE: aead/subtle/subtle.go constant intSize (line 21) | intSize = 32 << (^uint(0) >> 63) constant maxInt (line 22) | maxInt = 1<<(intSize-1) - 1 function ValidateAESKeySize (line 26) | func ValidateAESKeySize(sizeInBytes uint32) error { FILE: aead/subtle/subtle_test.go function TestValidateAESKeySize (line 23) | func TestValidateAESKeySize(t *testing.T) { FILE: aead/subtle/xchacha20poly1305.go type XChaCha20Poly1305 (line 28) | type XChaCha20Poly1305 struct method Encrypt (line 53) | func (x *XChaCha20Poly1305) Encrypt(plaintext []byte, associatedData [... method Decrypt (line 71) | func (x *XChaCha20Poly1305) Decrypt(ciphertext []byte, associatedData ... function NewXChaCha20Poly1305 (line 37) | func NewXChaCha20Poly1305(key []byte) (*XChaCha20Poly1305, error) { FILE: aead/subtle/xchacha20poly1305_test.go function TestXChaCha20Poly1305EncryptDecrypt (line 31) | func TestXChaCha20Poly1305EncryptDecrypt(t *testing.T) { function TestXChaCha20Poly1305EmptyAssociatedData (line 84) | func TestXChaCha20Poly1305EmptyAssociatedData(t *testing.T) { function TestXChaCha20Poly1305LongMessages (line 134) | func TestXChaCha20Poly1305LongMessages(t *testing.T) { function TestXChaCha20Poly1305ModifyCiphertext (line 161) | func TestXChaCha20Poly1305ModifyCiphertext(t *testing.T) { function TestXChaCha20Poly1305RandomNonce (line 209) | func TestXChaCha20Poly1305RandomNonce(t *testing.T) { function TestXChaCha20Poly1305WycheproofCases (line 229) | func TestXChaCha20Poly1305WycheproofCases(t *testing.T) { function runXChaCha20Poly1305WycheproofCase (line 246) | func runXChaCha20Poly1305WycheproofCase(t *testing.T, tc *aead.Wycheproo... function TestPreallocatedCiphertextMemoryInXChaCha20Poly1305IsExact (line 277) | func TestPreallocatedCiphertextMemoryInXChaCha20Poly1305IsExact(t *testi... FILE: aead/xaesgcm/aead.go constant ivSize (line 33) | ivSize = 12 constant tagSize (line 34) | tagSize = 16 constant intSize (line 36) | intSize = 32 << (^uint(0) >> 63) constant maxInt (line 37) | maxInt = 1<<(intSize-1) - 1 type aead (line 45) | type aead struct method derivePerMessageKey (line 71) | func (a *aead) derivePerMessageKey(salt []byte) ([]byte, error) { method Encrypt (line 97) | func (a *aead) Encrypt(plaintext, associatedData []byte) ([]byte, erro... method Decrypt (line 122) | func (a *aead) Decrypt(ciphertext, associatedData []byte) ([]byte, err... function NewAEAD (line 54) | func NewAEAD(key *Key, _ internalapi.Token) (tink.AEAD, error) { function newAESGCMCipher (line 85) | func newAESGCMCipher(key []byte) (cipher.AEAD, error) { function primitiveConstructor (line 149) | func primitiveConstructor(k key.Key) (any, error) { FILE: aead/xaesgcm/aead_test.go constant ivSize (line 31) | ivSize = 12 constant tagSize (line 32) | tagSize = 16 type testVector (line 35) | type testVector struct function mustHexDecode (line 45) | func mustHexDecode(t *testing.T, s string) []byte { function testVectors (line 56) | func testVectors(t *testing.T) []testVector { function TestAEADTestVectors (line 135) | func TestAEADTestVectors(t *testing.T) { function TestAEADEncryptAndDecrypt (line 175) | func TestAEADEncryptAndDecrypt(t *testing.T) { function TestAEADDecryptModifiedCiphertext (line 259) | func TestAEADDecryptModifiedCiphertext(t *testing.T) { FILE: aead/xaesgcm/key.go type Variant (line 33) | type Variant method String (line 44) | func (variant Variant) String() string { constant VariantUnknown (line 37) | VariantUnknown Variant = iota constant VariantTink (line 39) | VariantTink constant VariantNoPrefix (line 41) | VariantNoPrefix function calculateOutputPrefix (line 56) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { type Parameters (line 68) | type Parameters struct method Variant (line 76) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 98) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method SaltSizeInBytes (line 101) | func (p *Parameters) SaltSizeInBytes() int { return p.saltSizeInBytes } method Equal (line 104) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 84) | func NewParameters(variant Variant, saltSizeInBytes int) (*Parameters, e... type Key (line 111) | type Key struct method KeyBytes (line 151) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 154) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 159) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 164) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 167) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 124) | func NewKey(keyBytes secretdata.Bytes, idRequirement uint32, parameters ... function createKey (line 174) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: aead/xaesgcm/key_manager_test.go constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.XAesGcmKey" function TestKeyManagerGetPrimitive (line 37) | func TestKeyManagerGetPrimitive(t *testing.T) { function TestKeyManagerGetPrimitiveWithInvalidKeys (line 71) | func TestKeyManagerGetPrimitiveWithInvalidKeys(t *testing.T) { function TestKeyManagerNewKey (line 140) | func TestKeyManagerNewKey(t *testing.T) { function TestKeyManagerNewKeyData (line 165) | func TestKeyManagerNewKeyData(t *testing.T) { function TestKeyManagerDoesSupport (line 204) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 217) | func TestKeyManagerTypeURL(t *testing.T) { function validateXAESGCMKey (line 227) | func validateXAESGCMKey(t *testing.T, key *xaesgcmpb.XAesGcmKey) error { FILE: aead/xaesgcm/key_test.go function TestNewParametersInvalidValues (line 39) | func TestNewParametersInvalidValues(t *testing.T) { function TestOutputPrefix (line 54) | func TestOutputPrefix(t *testing.T) { function TestNewParametersWorks (line 94) | func TestNewParametersWorks(t *testing.T) { function TestParametersEqualFalseIfDifferentVariant (line 134) | func TestParametersEqualFalseIfDifferentVariant(t *testing.T) { type TestKey (line 173) | type TestKey struct function TestNewKeyWorks (line 180) | func TestNewKeyWorks(t *testing.T) { function TestNewKeyFailsIfNoPrefixAndIDIsNotZero (line 231) | func TestNewKeyFailsIfNoPrefixAndIDIsNotZero(t *testing.T) { type stubKey (line 242) | type stubKey struct method Parameters (line 246) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 247) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 248) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqual_FalseIfDifferentType (line 250) | func TestKeyEqual_FalseIfDifferentType(t *testing.T) { function TestKeyEqualReturnsFalseIfDifferent (line 265) | func TestKeyEqualReturnsFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 342) | func TestKeyCreator(t *testing.T) { FILE: aead/xaesgcm/protoserialization.go constant protoVersion (line 33) | protoVersion = 0 constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.XAesGcmKey" type keySerializer (line 37) | type keySerializer struct method SerializeKey (line 52) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 41) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type keyParser (line 84) | type keyParser struct method ParseKey (line 99) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 88) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type parametersSerializer (line 134) | type parametersSerializer struct method Serialize (line 138) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 164) | type parametersParser struct method Parse (line 168) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: aead/xaesgcm/protoserialization_test.go function mustMarshalProto (line 32) | func mustMarshalProto(t *testing.T, message proto.Message) []byte { function TestParseKeyFails (line 41) | func TestParseKeyFails(t *testing.T) { function mustCreateKeySerialization (line 146) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function mustCreateKey (line 155) | func mustCreateKey(t *testing.T, keyValue []byte, variant xaesgcm.Varian... function TestParseKey (line 169) | func TestParseKey(t *testing.T) { function TestSerializeKey (line 216) | func TestSerializeKey(t *testing.T) { function mustCreateKeyTemplate (line 264) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... function mustCreateParameters (line 278) | func mustCreateParameters(t *testing.T, variant xaesgcm.Variant, saltSiz... function TestSerializeParameters (line 287) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 326) | func TestParseParameters(t *testing.T) { function mustMarshal (line 365) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFailsWithWrongKeyTemplate (line 374) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: aead/xaesgcm/xaesgcm.go function newKeyManager (line 32) | func newKeyManager() registry.KeyManager { function init (line 42) | func init() { FILE: aead/xaesgcm/xaesgcm_test.go function TestCreateKeysetHandleFromKeysetKey (line 33) | func TestCreateKeysetHandleFromKeysetKey(t *testing.T) { function TestCreateKeysetHandleFromKey (line 86) | func TestCreateKeysetHandleFromKey(t *testing.T) { function TestCreateKeysetHandleFromParameters (line 132) | func TestCreateKeysetHandleFromParameters(t *testing.T) { function TestGetKeyManager (line 166) | func TestGetKeyManager(t *testing.T) { FILE: aead/xchacha20poly1305/aead.go constant intSize (line 30) | intSize = 32 << (^uint(0) >> 63) constant maxInt (line 31) | maxInt = 1<<(intSize-1) - 1 constant maxPlaintextSize (line 32) | maxPlaintextSize = maxInt - chacha20poly1305.NonceSizeX - chacha20poly1... constant maxCiphertextSize (line 33) | maxCiphertextSize = maxInt type aead (line 39) | type aead struct method Encrypt (line 60) | func (a *aead) Encrypt(plaintext []byte, associatedData []byte) ([]byt... method Decrypt (line 73) | func (a *aead) Decrypt(ciphertext []byte, associatedData []byte) ([]by... function newAEAD (line 47) | func newAEAD(key *Key) (tink.AEAD, error) { function primitiveConstructor (line 94) | func primitiveConstructor(key key.Key) (any, error) { FILE: aead/xchacha20poly1305/aead_test.go function mustCreateAEAD (line 36) | func mustCreateAEAD(t *testing.T, key *xchacha20poly1305.Key) tink.AEAD { function TestEncryptDecrypt (line 57) | func TestEncryptDecrypt(t *testing.T) { function TestDecryptFailsWithInvalidCiphertext (line 121) | func TestDecryptFailsWithInvalidCiphertext(t *testing.T) { function mustDecodeHex (line 211) | func mustDecodeHex(t *testing.T, hexStr string) []byte { function TestDecryptCorrectness (line 220) | func TestDecryptCorrectness(t *testing.T) { function TestWycheproofCases (line 286) | func TestWycheproofCases(t *testing.T) { function runXChaCha20Poly1305WycheproofCase (line 303) | func runXChaCha20Poly1305WycheproofCase(t *testing.T, tc *testingaead.Wy... FILE: aead/xchacha20poly1305/key.go type Variant (line 34) | type Variant method String (line 47) | func (variant Variant) String() string { constant VariantUnknown (line 38) | VariantUnknown Variant = iota constant VariantTink (line 40) | VariantTink constant VariantCrunchy (line 42) | VariantCrunchy constant VariantNoPrefix (line 44) | VariantNoPrefix function calculateOutputPrefix (line 61) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { type Parameters (line 75) | type Parameters struct method Variant (line 82) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 95) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 98) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 85) | func NewParameters(variant Variant) (*Parameters, error) { type Key (line 104) | type Key struct method KeyBytes (line 142) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 145) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 150) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 155) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 158) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 115) | func NewKey(keyBytes secretdata.Bytes, idRequirement uint32, parameters ... function createKey (line 165) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: aead/xchacha20poly1305/key_manager_test.go function TestKeyManagerGetPrimitive (line 34) | func TestKeyManagerGetPrimitive(t *testing.T) { function TestKeyManagerGetPrimitiveWithInvalidKeys (line 71) | func TestKeyManagerGetPrimitiveWithInvalidKeys(t *testing.T) { function TestKeyManagerNewKey (line 107) | func TestKeyManagerNewKey(t *testing.T) { function TestKeyManagerNewKeyData (line 125) | func TestKeyManagerNewKeyData(t *testing.T) { function TestKeyManagerDoesSupport (line 167) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 180) | func TestKeyManagerTypeURL(t *testing.T) { function validateXChaCha20Poly1305Key (line 190) | func validateXChaCha20Poly1305Key(key *xpb.XChaCha20Poly1305Key) error { FILE: aead/xchacha20poly1305/key_test.go function TestNewParametersInvalidVariant (line 39) | func TestNewParametersInvalidVariant(t *testing.T) { function TestOutputPrefix (line 45) | func TestOutputPrefix(t *testing.T) { function TestNewParametersWorks (line 91) | func TestNewParametersWorks(t *testing.T) { function TestParametersEqualFalseIfDifferentVariant (line 132) | func TestParametersEqualFalseIfDifferentVariant(t *testing.T) { type TestKey (line 170) | type TestKey struct function TestNewKeyWorks (line 177) | func TestNewKeyWorks(t *testing.T) { function TestNewKeyFailsIfNoPrefixAndIDIsNotZero (line 234) | func TestNewKeyFailsIfNoPrefixAndIDIsNotZero(t *testing.T) { type stubKey (line 245) | type stubKey struct method Parameters (line 249) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 250) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 251) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqual_FalseIfDifferentType (line 253) | func TestKeyEqual_FalseIfDifferentType(t *testing.T) { function TestKeyEqualReturnsFalseIfDifferent (line 268) | func TestKeyEqualReturnsFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 345) | func TestKeyCreator(t *testing.T) { FILE: aead/xchacha20poly1305/protoserialization.go constant protoVersion (line 33) | protoVersion = 0 constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.XChaCha20Poly1305... type keySerializer (line 37) | type keySerializer struct method SerializeKey (line 54) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 41) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type keyParser (line 83) | type keyParser struct method ParseKey (line 100) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 87) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type parametersSerializer (line 133) | type parametersSerializer struct method Serialize (line 137) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 158) | type parametersParser struct method Parse (line 162) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: aead/xchacha20poly1305/protoserialization_test.go function TestParseKeyFails (line 31) | func TestParseKeyFails(t *testing.T) { function mustCreateKeySerialization (line 142) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKey (line 151) | func TestParseKey(t *testing.T) { type testParams (line 220) | type testParams struct method HasIDRequirement (line 224) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 226) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 231) | type testKey struct method Parameters (line 237) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 239) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 247) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 249) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 273) | func TestSerializeKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 343) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 370) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... function TestSerializeParameters (line 384) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 425) | func TestParseParameters(t *testing.T) { function mustMarshal (line 465) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFailsWithWrongKeyTemplate (line 474) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: aead/xchacha20poly1305/xchacha20poly1305.go function newKeyManager (line 35) | func newKeyManager() registry.KeyManager { function RegisterPrimitiveConstructor (line 49) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 53) | func init() { FILE: aead/xchacha20poly1305/xchacha20poly1305_test.go function TestGetKeyFromHandle (line 34) | func TestGetKeyFromHandle(t *testing.T) { function TestCreateKeysetHandleFromKey (line 63) | func TestCreateKeysetHandleFromKey(t *testing.T) { function TestCreateKeysetHandleFromParameters (line 116) | func TestCreateKeysetHandleFromParameters(t *testing.T) { function TestRegisterPrimitiveConstructor (line 150) | func TestRegisterPrimitiveConstructor(t *testing.T) { function TestGetKeyManager (line 171) | func TestGetKeyManager(t *testing.T) { FILE: core/cryptofmt/cryptofmt.go constant NonRawPrefixSize (line 29) | NonRawPrefixSize = 5 constant LegacyPrefixSize (line 33) | LegacyPrefixSize = NonRawPrefixSize constant LegacyStartByte (line 35) | LegacyStartByte = byte(0) constant TinkPrefixSize (line 39) | TinkPrefixSize = NonRawPrefixSize constant TinkStartByte (line 41) | TinkStartByte = byte(1) constant RawPrefixSize (line 45) | RawPrefixSize = 0 constant RawPrefix (line 47) | RawPrefix = "" function OutputPrefix (line 54) | func OutputPrefix(key *tinkpb.Keyset_Key) (string, error) { FILE: core/cryptofmt/cryptofmt_test.go function TestOutputPrefix (line 42) | func TestOutputPrefix(t *testing.T) { function validatePrefix (line 78) | func validatePrefix(prefix string, startByte byte, key string) bool { FILE: core/registry/custom_key_manager_test.go constant customTypeURL (line 36) | customTypeURL = "type.googleapis.com/google.crypto.tink.CustomAesGcmKey" type customKeyManager (line 40) | type customKeyManager struct method Primitive (line 45) | func (km *customKeyManager) Primitive(serializedKey []byte) (any, erro... method NewKey (line 58) | func (km *customKeyManager) NewKey(serializedKeyFormat []byte) (proto.... method NewKeyData (line 62) | func (km *customKeyManager) NewKeyData(serializedKeyFormat []byte) (*t... method DoesSupport (line 85) | func (km *customKeyManager) DoesSupport(typeURL string) bool { method TypeURL (line 89) | func (km *customKeyManager) TypeURL() string { method KeyMaterialType (line 93) | func (km *customKeyManager) KeyMaterialType() tinkpb.KeyData_KeyMateri... function aesGCM128KeyTemplate (line 98) | func aesGCM128KeyTemplate() *tinkpb.KeyTemplate { function aesGCM128KeyToKeysetHandle (line 114) | func aesGCM128KeyToKeysetHandle(rawAESKey []byte, keyID uint32, prefixTy... function TestCreateEncryptDecrypt (line 146) | func TestCreateEncryptDecrypt(t *testing.T) { function TestImportExistingKeyDecryptsExistingCiphertext (line 172) | func TestImportExistingKeyDecryptsExistingCiphertext(t *testing.T) { function TestEncryptAndDecryptWithTinkPrefix (line 205) | func TestEncryptAndDecryptWithTinkPrefix(t *testing.T) { function TestMixedKeysetWorks (line 253) | func TestMixedKeysetWorks(t *testing.T) { function TestSerializeAndParseKeysetWorks (line 301) | func TestSerializeAndParseKeysetWorks(t *testing.T) { function init (line 347) | func init() { registry.RegisterKeyManager(&customKeyManager{}) } FILE: core/registry/key_manager.go type KeyManager (line 26) | type KeyManager interface FILE: core/registry/kms_client.go type KMSClient (line 20) | type KMSClient interface FILE: core/registry/private_key_manager.go type PrivateKeyManager (line 22) | type PrivateKeyManager interface FILE: core/registry/registry.go function RegisterKeyManager (line 49) | func RegisterKeyManager(keyManager KeyManager) error { function GetKeyManager (line 61) | func GetKeyManager(typeURL string) (KeyManager, error) { function NewKeyData (line 72) | func NewKeyData(template *tinkpb.KeyTemplate) (*tinkpb.KeyData, error) { function NewKey (line 86) | func NewKey(template *tinkpb.KeyTemplate) (proto.Message, error) { function PrimitiveFromKeyData (line 100) | func PrimitiveFromKeyData(keyData *tinkpb.KeyData) (any, error) { function Primitive (line 111) | func Primitive(typeURL string, serializedKey []byte) (any, error) { function RegisterKMSClient (line 131) | func RegisterKMSClient(kmsClient KMSClient) { function GetKMSClient (line 138) | func GetKMSClient(keyURI string) (KMSClient, error) { function ClearKMSClients (line 152) | func ClearKMSClients() { function UnregisterKeyManager (line 162) | func UnregisterKeyManager(typeURL string, _ internalapi.Token) { FILE: core/registry/registry_test.go function TestRegisterKeyManager (line 33) | func TestRegisterKeyManager(t *testing.T) { function TestRegisterKeyManagerWithCollision (line 50) | func TestRegisterKeyManagerWithCollision(t *testing.T) { function TestNewKeyData (line 70) | func TestNewKeyData(t *testing.T) { function TestNewKey (line 94) | func TestNewKey(t *testing.T) { function TestPrimitiveFromKeyData (line 120) | func TestPrimitiveFromKeyData(t *testing.T) { function TestPrimitive (line 146) | func TestPrimitive(t *testing.T) { function TestRegisterKmsClient (line 180) | func TestRegisterKmsClient(t *testing.T) { function TestRegisterTwoKmsClientsForSameUri_firstGetsReturned (line 215) | func TestRegisterTwoKmsClientsForSameUri_firstGetsReturned(t *testing.T) { function TestClearKMSClients (line 238) | func TestClearKMSClients(t *testing.T) { FILE: daead/aessiv/aessiv.go function RegisterPrimitiveConstructor (line 38) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 45) | func init() { FILE: daead/aessiv/aessiv_test.go function TestRegisterPrimitiveConstructor (line 30) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: daead/aessiv/daead.go type fullDAEAD (line 28) | type fullDAEAD struct method EncryptDeterministically (line 50) | func (a *fullDAEAD) EncryptDeterministically(plaintext, associatedData... method DecryptDeterministically (line 58) | func (a *fullDAEAD) DecryptDeterministically(ciphertext, associatedDat... function NewDeterministicAEAD (line 39) | func NewDeterministicAEAD(key *Key, _ internalapi.Token) (tink.Determini... function primitiveConstructor (line 71) | func primitiveConstructor(k key.Key) (any, error) { FILE: daead/aessiv/daead_test.go function mustHexDecode (line 30) | func mustHexDecode(t *testing.T, s string) []byte { function mustCreateParameters (line 39) | func mustCreateParameters(t *testing.T, keySize int, variant aessiv.Vari... function mustCreateKey (line 48) | func mustCreateKey(t *testing.T, keyBytes []byte, idRequirement uint32, ... constant aesSIVKeyHex (line 59) | aesSIVKeyHex = "c25cafc6018b98dfbb79a40ec89c575a4f88c4116489bba27... constant aesSIVMsgHex (line 60) | aesSIVMsgHex = "beec61030fa3d670337196beade6aeaa" constant aesSIVAad (line 61) | aesSIVAad = "deeb0ccf3aef47a296ed1ca8f4ae5907" constant aesSIVCiphertextHex (line 62) | aesSIVCiphertextHex = "5865208eab9163db85cab9f96d846234a2626aae22f5c17c9... function TestDeterministicAEAD (line 65) | func TestDeterministicAEAD(t *testing.T) { function TestDeterministicAEADDecryptFailsWithInvalidCiphertext (line 115) | func TestDeterministicAEADDecryptFailsWithInvalidCiphertext(t *testing.T) { FILE: daead/aessiv/key.go type Key (line 28) | type Key struct method KeyBytes (line 86) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 89) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 94) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 99) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 102) | func (k *Key) Equal(other key.Key) bool { function calculateOutputPrefix (line 38) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { function NewKey (line 56) | func NewKey(keyBytes secretdata.Bytes, idRequirement uint32, parameters ... function createKey (line 110) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: daead/aessiv/key_manager_test.go function TestKeyManagerPrimitive (line 34) | func TestKeyManagerPrimitive(t *testing.T) { function TestKeyManagerPrimitiveWithInvalidKeys (line 77) | func TestKeyManagerPrimitiveWithInvalidKeys(t *testing.T) { function TestKeyManagerNewKey (line 117) | func TestKeyManagerNewKey(t *testing.T) { function TestKeyManagerNewKeyData (line 139) | func TestKeyManagerNewKeyData(t *testing.T) { function TestKeyManagerNewKeyInvalid (line 167) | func TestKeyManagerNewKeyInvalid(t *testing.T) { function TestKeyManagerDoesSupport (line 206) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 219) | func TestKeyManagerTypeURL(t *testing.T) { function validateAESSIVKey (line 229) | func validateAESSIVKey(key *aspb.AesSivKey) error { function encryptDecrypt (line 245) | func encryptDecrypt(encryptor, decryptor tink.DeterministicAEAD) error { FILE: daead/aessiv/key_test.go function TestNewKeyFailsIfParametersIsNil (line 61) | func TestNewKeyFailsIfParametersIsNil(t *testing.T) { function TestNewKeyFailsIfKeySizeIsDifferentThanParameters (line 71) | func TestNewKeyFailsIfKeySizeIsDifferentThanParameters(t *testing.T) { function TestNewKeyFailsIfInvalidParams (line 107) | func TestNewKeyFailsIfInvalidParams(t *testing.T) { function TestNewKeyFailsIfNoPrefixAndIDIsNotZero (line 118) | func TestNewKeyFailsIfNoPrefixAndIDIsNotZero(t *testing.T) { function TestOutputPrefix (line 129) | func TestOutputPrefix(t *testing.T) { type testKey (line 175) | type testKey struct function TestNewKeyWorks (line 183) | func TestNewKeyWorks(t *testing.T) { type stubKey (line 292) | type stubKey struct method Parameters (line 296) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 297) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 298) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKey_Equal_FalseIfDifferentType (line 300) | func TestKey_Equal_FalseIfDifferentType(t *testing.T) { function TestKeyEqualReturnsFalseIfDifferent (line 315) | func TestKeyEqualReturnsFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 412) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsIfInvalidKeySize (line 463) | func TestKeyCreator_FailsIfInvalidKeySize(t *testing.T) { FILE: daead/aessiv/parameters.go type Variant (line 31) | type Variant method String (line 44) | func (variant Variant) String() string { constant VariantUnknown (line 35) | VariantUnknown Variant = iota constant VariantTink (line 37) | VariantTink constant VariantCrunchy (line 39) | VariantCrunchy constant VariantNoPrefix (line 41) | VariantNoPrefix type Parameters (line 58) | type Parameters struct method KeySizeInBytes (line 66) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method Variant (line 69) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 96) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 99) | func (p *Parameters) Equal(other key.Parameters) bool { function validateParams (line 71) | func validateParams(params *Parameters) error { function NewParameters (line 84) | func NewParameters(keySizeInBytes int, variant Variant) (*Parameters, er... FILE: daead/aessiv/parameters_test.go function TestNewParametersInvalidKeySize (line 23) | func TestNewParametersInvalidKeySize(t *testing.T) { function TestNewParametersInvalidVariant (line 31) | func TestNewParametersInvalidVariant(t *testing.T) { function TestNewParametersWorks (line 37) | func TestNewParametersWorks(t *testing.T) { function TestParametersEqualFalseIfDifferent (line 114) | func TestParametersEqualFalseIfDifferent(t *testing.T) { FILE: daead/aessiv/protoserialization.go constant protoVersion (line 33) | protoVersion = 0 constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.AesSivKey" type keySerializer (line 37) | type keySerializer struct method SerializeKey (line 54) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 41) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type keyParser (line 81) | type keyParser struct method ParseKey (line 98) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 85) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type parametersSerializer (line 132) | type parametersSerializer struct method Serialize (line 136) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 159) | type parametersParser struct method Parse (line 163) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: daead/aessiv/protoserialization_test.go function TestParseKeyFails (line 33) | func TestParseKeyFails(t *testing.T) { function mustCreateKeySerialization (line 127) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKey (line 136) | func TestParseKey(t *testing.T) { type testParams (line 205) | type testParams struct method HasIDRequirement (line 209) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 211) | func (p *testParams) Equal(params key.Parameters) bool { type protoSerializationTestKey (line 216) | type protoSerializationTestKey struct method Parameters (line 222) | func (k *protoSerializationTestKey) Parameters() key.Parameters { retu... method Equal (line 224) | func (k *protoSerializationTestKey) Equal(other key.Key) bool { method IDRequirement (line 232) | func (k *protoSerializationTestKey) IDRequirement() (uint32, bool) { function TestSerializeKeyFails (line 236) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 259) | func TestSerializeKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 327) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 353) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersSerializationTestCase (line 369) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 375) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 400) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 414) | func TestParseParameters(t *testing.T) { function mustMarshal (line 428) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFailsWithWrongKeyTemplate (line 437) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: daead/daead_benchmark_test.go function BenchmarkAESSIV (line 28) | func BenchmarkAESSIV(b *testing.B) { FILE: daead/daead_factory.go function New (line 33) | func New(handle *keyset.Handle) (tink.DeterministicAEAD, error) { function NewWithConfig (line 39) | func NewWithConfig(handle *keyset.Handle, config keyset.Config) (tink.De... type daeadAndKeyID (line 47) | type daeadAndKeyID struct method EncryptDeterministically (line 52) | func (a *daeadAndKeyID) EncryptDeterministically(plaintext, associated... method DecryptDeterministically (line 56) | func (a *daeadAndKeyID) DecryptDeterministically(ciphertext, associate... type fullDAEADPrimitiveAdapter (line 62) | type fullDAEADPrimitiveAdapter struct method EncryptDeterministically (line 69) | func (a *fullDAEADPrimitiveAdapter) EncryptDeterministically(plaintext... method DecryptDeterministically (line 77) | func (a *fullDAEADPrimitiveAdapter) DecryptDeterministically(ciphertex... function extractFullDAEAD (line 81) | func extractFullDAEAD(entry *primitiveset.Entry[tink.DeterministicAEAD])... type wrappedDAEAD (line 99) | type wrappedDAEAD struct method EncryptDeterministically (line 167) | func (d *wrappedDAEAD) EncryptDeterministically(pt, aad []byte) ([]byt... method DecryptDeterministically (line 180) | func (d *wrappedDAEAD) DecryptDeterministically(ct, aad []byte) ([]byt... function newWrappedDeterministicAEAD (line 109) | func newWrappedDeterministicAEAD(ps *primitiveset.PrimitiveSet[tink.Dete... function createLoggers (line 137) | func createLoggers(ps *primitiveset.PrimitiveSet[tink.DeterministicAEAD]... FILE: daead/daead_factory_test.go function TestFactoryMultipleKeys (line 51) | func TestFactoryMultipleKeys(t *testing.T) { function TestFactoryRawKeyAsPrimary (line 120) | func TestFactoryRawKeyAsPrimary(t *testing.T) { function validateDAEADFactoryCipher (line 138) | func validateDAEADFactoryCipher(encryptCipher, decryptCipher tink.Determ... function TestFactoryWithInvalidPrimitiveSetType (line 172) | func TestFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestFactoryWithValidPrimitiveSetType (line 184) | func TestFactoryWithValidPrimitiveSetType(t *testing.T) { function TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecryptionWithPrefix (line 196) | func TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecrypti... function TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecryptionWithoutPrefix (line 258) | func TestPrimitiveFactoryWithMonitoringAnnotationsLogsEncryptionDecrypti... function TestFactoryWithMonitoringPrimitiveWithMultipleKeysLogsEncryptionDecryption (line 325) | func TestFactoryWithMonitoringPrimitiveWithMultipleKeysLogsEncryptionDec... function TestPrimitiveFactoryWithMonitoringAnnotationsEncryptionFailureIsLogged (line 427) | func TestPrimitiveFactoryWithMonitoringAnnotationsEncryptionFailureIsLog... function TestPrimitiveFactoryWithMonitoringAnnotationsDecryptionFailureIsLogged (line 497) | func TestPrimitiveFactoryWithMonitoringAnnotationsDecryptionFailureIsLog... function TestFactoryWithMonitoringMultiplePrimitivesLogOperations (line 550) | func TestFactoryWithMonitoringMultiplePrimitivesLogOperations(t *testing... function TestPrimitiveFactoryEncryptDecryptWithoutAnnotationsDoesNotMonitor (line 646) | func TestPrimitiveFactoryEncryptDecryptWithoutAnnotationsDoesNotMonitor(... constant stubKeyURL (line 675) | stubKeyURL = "type.googleapis.com/google.crypto.tink.SomeKey" constant fullDAEADPrefix (line 676) | fullDAEADPrefix = "full_dead_prefix" constant legacyDAEADPrefix (line 677) | legacyDAEADPrefix = "legacy_dead_prefix" type stubFullDEAD (line 680) | type stubFullDEAD struct method EncryptDeterministically (line 684) | func (s *stubFullDEAD) EncryptDeterministically(pt, ad []byte) ([]byte... method DecryptDeterministically (line 688) | func (s *stubFullDEAD) DecryptDeterministically(ct, ad []byte) ([]byte... type stubParams (line 692) | type stubParams struct method Equal (line 696) | func (p *stubParams) Equal(_ key.Parameters) bool { return true } method HasIDRequirement (line 697) | func (p *stubParams) HasIDRequirement() bool { return true } type stubKey (line 699) | type stubKey struct method Equal (line 706) | func (p *stubKey) Equal(_ key.Key) bool { return true } method Parameters (line 707) | func (p *stubKey) Parameters() key.Parameters { return &stubParams{} } method IDRequirement (line 708) | func (p *stubKey) IDRequirement() (uint32, bool) { return p.idRequirem... method HasIDRequirement (line 709) | func (p *stubKey) HasIDRequirement() bool { return p.prefixType... method OutputPrefix (line 710) | func (p *stubKey) OutputPrefix() []byte { type stubKeySerialization (line 718) | type stubKeySerialization struct method SerializeKey (line 722) | func (s *stubKeySerialization) SerializeKey(key key.Key) (*protoserial... type stubKeyParser (line 734) | type stubKeyParser struct method ParseKey (line 738) | func (s *stubKeyParser) ParseKey(serialization *protoserialization.Key... function mustCreateKeyset (line 743) | func mustCreateKeyset(t *testing.T, key key.Key) *keyset.Handle { function TestPrimitiveFactoryUsesFullPrimitiveIfRegistered (line 760) | func TestPrimitiveFactoryUsesFullPrimitiveIfRegistered(t *testing.T) { type stubLegacyDEAD (line 797) | type stubLegacyDEAD struct method EncryptDeterministically (line 801) | func (s *stubLegacyDEAD) EncryptDeterministically(pt, ad []byte) ([]by... method DecryptDeterministically (line 805) | func (s *stubLegacyDEAD) DecryptDeterministically(ct, ad []byte) ([]by... type stubKeyManager (line 809) | type stubKeyManager struct method NewKey (line 813) | func (km *stubKeyManager) NewKey(_ []byte) (proto.Message, error) { method NewKeyData (line 816) | func (km *stubKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyData, error) { method DoesSupport (line 819) | func (km *stubKeyManager) DoesSupport(keyURL string) bool { return ke... method TypeURL (line 820) | func (km *stubKeyManager) TypeURL() string { return st... method Primitive (line 821) | func (km *stubKeyManager) Primitive(_ []byte) (any, error) { return &s... function TestPrimitiveFactoryUsesLegacyPrimitive (line 823) | func TestPrimitiveFactoryUsesLegacyPrimitive(t *testing.T) { function TestNewWithConfig (line 878) | func TestNewWithConfig(t *testing.T) { FILE: daead/daead_init_test.go function TestDeterministicAEADInit (line 24) | func TestDeterministicAEADInit(t *testing.T) { FILE: daead/daead_key_templates.go function AESSIVKeyTemplate (line 27) | func AESSIVKeyTemplate() *tinkpb.KeyTemplate { FILE: daead/daead_key_templates_test.go function TestKeyTemplates (line 28) | func TestKeyTemplates(t *testing.T) { function testEncryptDecrypt (line 45) | func testEncryptDecrypt(template *tinkpb.KeyTemplate) error { FILE: daead/daead_test.go function Example (line 29) | func Example() { FILE: daead/subtle/aes_siv.go type AESSIV (line 54) | type AESSIV struct method EncryptDeterministically (line 97) | func (asc *AESSIV) EncryptDeterministically(plaintext, associatedData ... method DecryptDeterministically (line 112) | func (asc *AESSIV) DecryptDeterministically(ciphertext, associatedData... method ctrCrypt (line 135) | func (asc *AESSIV) ctrCrypt(siv, in, out []byte) error { method s2v (line 155) | func (asc *AESSIV) s2v(msg, ad []byte) []byte { constant AESSIVKeySize (line 61) | AESSIVKeySize = 64 constant intSize (line 63) | intSize = 32 << (^uint(0) >> 63) constant maxInt (line 64) | maxInt = 1<<(intSize-1) - 1 function NewAESSIV (line 68) | func NewAESSIV(key []byte) (*AESSIV, error) { function multiplyByX (line 87) | func multiplyByX(block []byte) { FILE: daead/subtle/aes_siv_test.go function TestAESSIV_EncryptDecrypt (line 28) | func TestAESSIV_EncryptDecrypt(t *testing.T) { function TestAESSIV_EmptyPlaintext (line 56) | func TestAESSIV_EmptyPlaintext(t *testing.T) { function TestAESSIV_EmptyAdditionalData (line 92) | func TestAESSIV_EmptyAdditionalData(t *testing.T) { function TestAESSIV_KeySizes (line 123) | func TestAESSIV_KeySizes(t *testing.T) { function TestAESSIV_MessageSizes (line 145) | func TestAESSIV_MessageSizes(t *testing.T) { function TestAESSIV_AdditionalDataSizes (line 187) | func TestAESSIV_AdditionalDataSizes(t *testing.T) { function TestAESSIV_CiphertextModifications (line 216) | func TestAESSIV_CiphertextModifications(t *testing.T) { type AESSIVSuite (line 249) | type AESSIVSuite struct type testGroup (line 254) | type testGroup struct type testCase (line 260) | type testCase struct function TestAESSIV_WycheproofVectors (line 268) | func TestAESSIV_WycheproofVectors(t *testing.T) { FILE: hybrid/ecies/ecies.go function init (line 48) | func init() { function RegisterPrimitiveConstructor (line 100) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: hybrid/ecies/ecies_aead_hkdf_hybrid_decrypt_test.go function modifyDecrypt (line 32) | func modifyDecrypt(t *testing.T, c string, keyTemplate *tinkpb.KeyTempla... function TestECAESCTRHMACSHA256Decrypt (line 101) | func TestECAESCTRHMACSHA256Decrypt(t *testing.T) { function TestECAES256GCMDecrypt (line 113) | func TestECAES256GCMDecrypt(t *testing.T) { function TestECAESSIVDecrypt (line 125) | func TestECAESSIVDecrypt(t *testing.T) { function aesSIVKeyTemplateNoPrefix (line 132) | func aesSIVKeyTemplateNoPrefix() *tinkpb.KeyTemplate { function TestECAESSIVTestVectors (line 138) | func TestECAESSIVTestVectors(t *testing.T) { FILE: hybrid/ecies/ecies_aead_hkdf_hybrid_encrypt_test.go function basicMultipleEncrypts (line 30) | func basicMultipleEncrypts(t *testing.T, c string, keyTemplate *tinkpb.K... function TestECAESCTRHMACSHA256Encrypt (line 85) | func TestECAESCTRHMACSHA256Encrypt(t *testing.T) { function TestECAES256GCMEncrypt (line 97) | func TestECAES256GCMEncrypt(t *testing.T) { function TestECAESSIVEncrypt (line 109) | func TestECAESSIVEncrypt(t *testing.T) { FILE: hybrid/ecies/ecies_test.go function mustCreateKeysetHandle (line 27) | func mustCreateKeysetHandle(t *testing.T, privateKey *ecies.PrivateKey) ... function TestEncryptDecryptFromPublicAPI (line 44) | func TestEncryptDecryptFromPublicAPI(t *testing.T) { function TestEncryptDecryptFromWithKeysetFromParameters (line 90) | func TestEncryptDecryptFromWithKeysetFromParameters(t *testing.T) { FILE: hybrid/ecies/hybrid_decrypt.go type hybridDecrypt (line 29) | type hybridDecrypt struct method Decrypt (line 80) | func (e *hybridDecrypt) Decrypt(ciphertext, contextInfo []byte) ([]byt... function pointFormatToSubtleString (line 35) | func pointFormatToSubtleString(pointFormat PointFormat) string { function NewHybridDecrypt (line 52) | func NewHybridDecrypt(privateKey *PrivateKey, _ internalapi.Token) (tink... function hybridDecryptConstructor (line 90) | func hybridDecryptConstructor(k key.Key) (any, error) { FILE: hybrid/ecies/hybrid_encrypt.go type hybridEncrypt (line 29) | type hybridEncrypt struct method Encrypt (line 77) | func (e *hybridEncrypt) Encrypt(plaintext, contextInfo []byte) ([]byte... function NewHybridEncrypt (line 39) | func NewHybridEncrypt(publicKey *PublicKey, _ internalapi.Token) (tink.H... function hybridEncryptConstructor (line 85) | func hybridEncryptConstructor(k key.Key) (any, error) { FILE: hybrid/ecies/hybrid_encrypt_test.go type hybridEncryptTestVector (line 28) | type hybridEncryptTestVector struct function hybridTestVectors (line 40) | func hybridTestVectors(t *testing.T) []hybridEncryptTestVector { function TestNewHybridEncryptAndDecryptFailsIfX25519 (line 322) | func TestNewHybridEncryptAndDecryptFailsIfX25519(t *testing.T) { function TestEncryptDecrypt (line 353) | func TestEncryptDecrypt(t *testing.T) { function mustEncrypt (line 396) | func mustEncrypt(t *testing.T, publicKey *ecies.PublicKey, plaintext, co... function TestDecryptFails (line 409) | func TestDecryptFails(t *testing.T) { FILE: hybrid/ecies/key.go type PublicKey (line 30) | type PublicKey struct method PublicKeyBytes (line 99) | func (k *PublicKey) PublicKeyBytes() []byte { return k.publicKeyBytes } method Parameters (line 102) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 105) | func (k *PublicKey) IDRequirement() (uint32, bool) { method OutputPrefix (line 110) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Equal (line 113) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 42) | func calculateOutputPrefix(variant Variant, idRequirement uint32) ([]byt... function ecdhCurveFromCurveType (line 56) | func ecdhCurveFromCurveType(ct CurveType) (ecdh.Curve, error) { function NewPublicKey (line 74) | func NewPublicKey(publicKeyBytes []byte, idRequirement uint32, parameter... type PrivateKey (line 121) | type PrivateKey struct method PrivateKeyBytes (line 189) | func (k *PrivateKey) PrivateKeyBytes() secretdata.Bytes { return k.pri... method PublicKey (line 194) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 197) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 201) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 204) | func (k *PrivateKey) OutputPrefix() []byte { return bytes.Clone(k.publ... method Equal (line 207) | func (k *PrivateKey) Equal(other key.Key) bool { function NewPrivateKey (line 136) | func NewPrivateKey(privateKeyBytes secretdata.Bytes, idRequirement uint3... function NewPrivateKeyFromPublicKey (line 164) | func NewPrivateKeyFromPublicKey(privateKeyBytes secretdata.Bytes, pubKey... function createPrivateKey (line 213) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: hybrid/ecies/key_test.go type keyTestCase (line 35) | type keyTestCase struct function mustCreateParameters (line 45) | func mustCreateParameters(t *testing.T, opts ecies.ParametersOpts) *ecie... function mustHexDecode (line 54) | func mustHexDecode(t *testing.T, hexString string) []byte { function mustCreateKeyTestCases (line 87) | func mustCreateKeyTestCases(t *testing.T) []keyTestCase { function TestNewPublicKeyFailsWithInvalidValues (line 238) | func TestNewPublicKeyFailsWithInvalidValues(t *testing.T) { type stubKey (line 345) | type stubKey struct method Parameters (line 349) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 350) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 351) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestPublicKey_Equal_FalseIfDifferentType (line 353) | func TestPublicKey_Equal_FalseIfDifferentType(t *testing.T) { function TestNewPublicKey (line 380) | func TestNewPublicKey(t *testing.T) { function TestPublicKeyNotEqual (line 416) | func TestPublicKeyNotEqual(t *testing.T) { function mustCreatePublicKey (line 564) | func mustCreatePublicKey(t *testing.T, publicKeyBytes []byte, idRequirem... function TestNewPrivateKeyFromPublicKeyFailsWithInvalidValues (line 573) | func TestNewPrivateKeyFromPublicKeyFailsWithInvalidValues(t *testing.T) { function doTestPrivateKeyAccessors (line 650) | func doTestPrivateKeyAccessors(t *testing.T, privateKey *ecies.PrivateKe... function TestNewPrivateKeyFromPublicKey (line 676) | func TestNewPrivateKeyFromPublicKey(t *testing.T) { function TestPrivateKey_Equal_FalseIfDifferentType (line 710) | func TestPrivateKey_Equal_FalseIfDifferentType(t *testing.T) { function TestNewPrivateKey (line 742) | func TestNewPrivateKey(t *testing.T) { function TestPrivateKeyNotEqual (line 776) | func TestPrivateKeyNotEqual(t *testing.T) { function TestPrivateKeyCreator (line 896) | func TestPrivateKeyCreator(t *testing.T) { function TestPrivateKeyCreator_FailsWithInvalidParameters (line 964) | func TestPrivateKeyCreator_FailsWithInvalidParameters(t *testing.T) { FILE: hybrid/ecies/parameters.go type Variant (line 35) | type Variant method String (line 48) | func (variant Variant) String() string { constant VariantUnknown (line 39) | VariantUnknown Variant = iota constant VariantTink (line 41) | VariantTink constant VariantCrunchy (line 43) | VariantCrunchy constant VariantNoPrefix (line 45) | VariantNoPrefix type CurveType (line 62) | type CurveType method String (line 77) | func (ct CurveType) String() string { constant UnknownCurveType (line 66) | UnknownCurveType CurveType = iota constant NISTP256 (line 68) | NISTP256 constant NISTP384 (line 70) | NISTP384 constant NISTP521 (line 72) | NISTP521 constant X25519 (line 74) | X25519 type HashType (line 93) | type HashType method String (line 110) | func (ht HashType) String() string { constant UnknownHashType (line 97) | UnknownHashType HashType = iota constant SHA1 (line 99) | SHA1 constant SHA224 (line 101) | SHA224 constant SHA256 (line 103) | SHA256 constant SHA384 (line 105) | SHA384 constant SHA512 (line 107) | SHA512 type PointFormat (line 129) | type PointFormat method String (line 145) | func (pf PointFormat) String() string { constant UnspecifiedPointFormat (line 133) | UnspecifiedPointFormat PointFormat = iota constant CompressedPointFormat (line 135) | CompressedPointFormat constant UncompressedPointFormat (line 137) | UncompressedPointFormat constant LegacyUncompressedPointFormat (line 142) | LegacyUncompressedPointFormat type Parameters (line 162) | type Parameters struct method CurveType (line 297) | func (p *Parameters) CurveType() CurveType { return p.curveType } method HashType (line 300) | func (p *Parameters) HashType() HashType { return p.hashType } method NISTCurvePointFormat (line 303) | func (p *Parameters) NISTCurvePointFormat() PointFormat { return p.nis... method DEMParameters (line 306) | func (p *Parameters) DEMParameters() key.Parameters { return p.demPara... method Salt (line 309) | func (p *Parameters) Salt() []byte { return bytes.Clone(p.salt) } method Variant (line 312) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 315) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 318) | func (p *Parameters) Equal(other key.Parameters) bool { function mustCreateAllowedDEMParameters (line 175) | func mustCreateAllowedDEMParameters() []key.Parameters { function isAllowedDEMParameters (line 234) | func isAllowedDEMParameters(demParameters key.Parameters) error { function isNISTCurve (line 244) | func isNISTCurve(curveType CurveType) bool { type ParametersOpts (line 254) | type ParametersOpts struct function NewParameters (line 264) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: hybrid/ecies/parameters_test.go function mustCreateSupportedDEMPArams (line 30) | func mustCreateSupportedDEMPArams(t *testing.T) map[string]key.Parameters { function TestNewParametersInvalidValues (line 89) | func TestNewParametersInvalidValues(t *testing.T) { type testCase (line 177) | type testCase struct function testCases (line 182) | func testCases(t *testing.T) []testCase { function TestNewParameters (line 222) | func TestNewParameters(t *testing.T) { function TestParametersNotEqual (line 261) | func TestParametersNotEqual(t *testing.T) { FILE: hybrid/ecies/private_key_manager_test.go constant privateKeyTypeURL (line 30) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.EciesAeadHkd... constant privateKeyVersion (line 31) | privateKeyVersion = 0 function TestPrivateKeyManagerPrimitive (line 34) | func TestPrivateKeyManagerPrimitive(t *testing.T) { function TestPrivateKeyManagerPrimitiveErrors (line 50) | func TestPrivateKeyManagerPrimitiveErrors(t *testing.T) { function TestPrivateKeyManagerGetPublicKeyErrors (line 98) | func TestPrivateKeyManagerGetPublicKeyErrors(t *testing.T) { function TestPrivateKeyManagerNewKey (line 146) | func TestPrivateKeyManagerNewKey(t *testing.T) { function TestPrivateKeyManagerNewKeyErrors (line 161) | func TestPrivateKeyManagerNewKeyErrors(t *testing.T) { function makeValidECIESAEADHKDFKeyFormat (line 244) | func makeValidECIESAEADHKDFKeyFormat(t *testing.T) *eahpb.EciesAeadHkdfK... function makeValidECIESAEADHKDFPrivateKey (line 261) | func makeValidECIESAEADHKDFPrivateKey(t *testing.T) *eahpb.EciesAeadHkdf... function mustMarshal (line 284) | func mustMarshal(t *testing.T, msg proto.Message) []byte { FILE: hybrid/ecies/protoserialization.go constant publicKeyTypeURL (line 34) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.EciesAeadHkd... constant privateKeyTypeURL (line 35) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.EciesAeadHkd... function protoOutputPrefixTypeFromVariant (line 38) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type publicKeySerializer (line 51) | type publicKeySerializer struct method SerializeKey (line 205) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function protoCurveFromCurveType (line 55) | func protoCurveFromCurveType(curveType CurveType) (commonpb.EllipticCurv... function protoHashTypeFromHashType (line 70) | func protoHashTypeFromHashType(hashType HashType) (commonpb.HashType, er... function protoEcPointFormatFromPointFormat (line 87) | func protoEcPointFormatFromPointFormat(pointFormat PointFormat) (commonp... function createProtoECIESParams (line 103) | func createProtoECIESParams(p *Parameters) (*eciespb.EciesAeadHkdfParams... function coordinateSizeForCurve (line 139) | func coordinateSizeForCurve(curveType CurveType) (int, error) { function publicKeyToProtoPublicKey (line 152) | func publicKeyToProtoPublicKey(publicKey *PublicKey) (*eciespb.EciesAead... type publicKeyParser (line 236) | type publicKeyParser struct method ParseKey (line 382) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function curveTypeFromProto (line 240) | func curveTypeFromProto(curveType commonpb.EllipticCurveType) (CurveType... function hashTypeFromProto (line 255) | func hashTypeFromProto(hashType commonpb.HashType) (HashType, error) { function variantFromProto (line 272) | func variantFromProto(outputPrefixType tinkpb.OutputPrefixType) (Variant... function pointFormatFromProtoPointFormat (line 285) | func pointFormatFromProtoPointFormat(pointFormat commonpb.EcPointFormat)... function parseParameters (line 298) | func parseParameters(protoParams *eciespb.EciesAeadHkdfParams, outputPre... function parsePublicKey (line 347) | func parsePublicKey(publicKey *eciespb.EciesAeadHkdfPublicKey, outputPre... type privateKeySerializer (line 403) | type privateKeySerializer struct method SerializeKey (line 407) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type privateKeyParser (line 463) | type privateKeyParser struct method ParseKey (line 467) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... type parametersSerializer (line 508) | type parametersSerializer struct method Serialize (line 512) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 541) | type parametersParser struct method Parse (line 545) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: hybrid/ecies/protoserialization_test.go type testParams (line 41) | type testParams struct method HasIDRequirement (line 43) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 45) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 47) | type testKey struct method Parameters (line 49) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 51) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 53) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 55) | func TestSerializePublicKeyFails(t *testing.T) { function mustCreateKeySerialization (line 81) | func mustCreateKeySerialization(t *testing.T, url string, keyMaterialTyp... type protoSerializationTestCase (line 99) | type protoSerializationTestCase struct function mustCreatePrivateKey (line 107) | func mustCreatePrivateKey(t *testing.T, privateKeyBytes []byte, idRequir... function mustCreateTestCases (line 116) | func mustCreateTestCases(t *testing.T) []protoSerializationTestCase { function TestSerializePublicKey (line 319) | func TestSerializePublicKey(t *testing.T) { function TestParsePublicKeyParsesDEMWithAnyOutputPrefixType (line 335) | func TestParsePublicKeyParsesDEMWithAnyOutputPrefixType(t *testing.T) { function TestParsePublicKeyToleratesNoPadding (line 383) | func TestParsePublicKeyToleratesNoPadding(t *testing.T) { function TestParsePublicKeyToleratesArbitraryPadding (line 434) | func TestParsePublicKeyToleratesArbitraryPadding(t *testing.T) { function TestParsePublicKey (line 481) | func TestParsePublicKey(t *testing.T) { function TestParsePublicKeyFails (line 519) | func TestParsePublicKeyFails(t *testing.T) { function TestSerializePrivateKey (line 755) | func TestSerializePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 769) | func TestSerializePrivateKeyFails(t *testing.T) { function TestParsePrivateKey (line 795) | func TestParsePrivateKey(t *testing.T) { function TestParsePrivateKeyFails (line 838) | func TestParsePrivateKeyFails(t *testing.T) { type parametersSerializationTestCase (line 973) | type parametersSerializationTestCase struct function mustCreateKeyTemplate (line 979) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... function mustCreateParametersTestParameters (line 1001) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestParseParameters (line 1079) | func TestParseParameters(t *testing.T) { function TestParseParametersFails (line 1093) | func TestParseParametersFails(t *testing.T) { function TestSerializeParameters (line 1131) | func TestSerializeParameters(t *testing.T) { FILE: hybrid/ecies/public_key_manager_test.go constant publicKeyTypeURL (line 27) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.EciesAeadHkdf... constant publicKeyVersion (line 28) | publicKeyVersion = 0 function TestPublicKeyManagerPrimitive (line 31) | func TestPublicKeyManagerPrimitive(t *testing.T) { function TestPublicKeyManagerPrimitiveErrors (line 47) | func TestPublicKeyManagerPrimitiveErrors(t *testing.T) { function makeValidECIESAEADHKDFPublicKey (line 136) | func makeValidECIESAEADHKDFPublicKey(t *testing.T) *eahpb.EciesAeadHkdfP... FILE: hybrid/hpke/hpke.go function unmarshalHpkePublicKey (line 34) | func unmarshalHpkePublicKey(b []byte) (*hpkepb.HpkePublicKey, error) { function unmarshalHpkePrivateKey (line 42) | func unmarshalHpkePrivateKey(b []byte) (*hpkepb.HpkePrivateKey, error) { function init (line 50) | func init() { function RegisterPrimitiveConstructor (line 94) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: hybrid/hpke/hpke_test.go function TestEncryptDecryptFromWithKeysetFromParameters (line 26) | func TestEncryptDecryptFromWithKeysetFromParameters(t *testing.T) { FILE: hybrid/hpke/hybrid_decrypt.go type hybridDecrypt (line 27) | type hybridDecrypt struct method Decrypt (line 109) | func (e *hybridDecrypt) Decrypt(ciphertext, contextInfo []byte) ([]byt... function kemIDFromParams (line 33) | func kemIDFromParams(params *Parameters) (internalhpke.KEMID, error) { function kdfIDFromParams (line 54) | func kdfIDFromParams(params *Parameters) (internalhpke.KDFID, error) { function aeadIDFromParams (line 67) | func aeadIDFromParams(params *Parameters) (internalhpke.AEADID, error) { function NewHybridDecrypt (line 84) | func NewHybridDecrypt(privateKey *PrivateKey, _ internalapi.Token) (tink... function hybridDecryptConstructor (line 119) | func hybridDecryptConstructor(k key.Key) (any, error) { FILE: hybrid/hpke/hybrid_encrypt.go type hybridEncrypt (line 27) | type hybridEncrypt struct method Encrypt (line 62) | func (e *hybridEncrypt) Encrypt(plaintext, contextInfo []byte) ([]byte... function NewHybridEncrypt (line 37) | func NewHybridEncrypt(publicKey *PublicKey, _ internalapi.Token) (tink.H... function hybridEncryptConstructor (line 70) | func hybridEncryptConstructor(k key.Key) (any, error) { FILE: hybrid/hpke/hybrid_encrypt_decrypt_test.go type hybridEncryptTestVector (line 25) | type hybridEncryptTestVector struct function hybridTestVectors (line 37) | func hybridTestVectors(t *testing.T) []hybridEncryptTestVector { function TestEncryptDecrypt (line 180) | func TestEncryptDecrypt(t *testing.T) { function mustEncrypt (line 223) | func mustEncrypt(t *testing.T, publicKey *hpke.PublicKey, plaintext, con... function TestDecryptFails (line 236) | func TestDecryptFails(t *testing.T) { FILE: hybrid/hpke/key.go constant xWingPublicKeySize (line 32) | xWingPublicKeySize = 1216 constant xWingSecretKeySize (line 33) | xWingSecretKeySize = 32 constant mlKEM768PublicKeySize (line 34) | mlKEM768PublicKeySize = 1184 constant mlKEM768SecretKeySize (line 35) | mlKEM768SecretKeySize = 64 constant mlKEM1024PublicKeySize (line 36) | mlKEM1024PublicKeySize = 1568 constant mlKEM1024SecretKeySize (line 37) | mlKEM1024SecretKeySize = 64 type PublicKey (line 41) | type PublicKey struct method PublicKeyBytes (line 248) | func (k *PublicKey) PublicKeyBytes() []byte { return k.publicKeyBytes } method Parameters (line 251) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 254) | func (k *PublicKey) IDRequirement() (uint32, bool) { method OutputPrefix (line 259) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Equal (line 262) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 53) | func calculateOutputPrefix(variant Variant, idRequirement uint32) ([]byt... function ecdhCurveFromKEMID (line 66) | func ecdhCurveFromKEMID(kemID KEMID) (ecdh.Curve, error) { function validateECDHPublicKey (line 81) | func validateECDHPublicKey(publicKeyBytes []byte, kemID KEMID) error { function validateXWingPublicKey (line 93) | func validateXWingPublicKey(publicKeyBytes []byte) error { function validateMLKEMPublicKey (line 100) | func validateMLKEMPublicKey(publicKeyBytes []byte, kemID KEMID) error { function newECDHPublicKeyFromPrivateKey (line 116) | func newECDHPublicKeyFromPrivateKey(privateKeyBytes secretdata.Bytes, ke... function newXWingPublicKeyFromPrivateKey (line 128) | func newXWingPublicKeyFromPrivateKey(privateKeyBytes secretdata.Bytes) (... function newMLKEMPublicKeyFromPrivateKey (line 136) | func newMLKEMPublicKeyFromPrivateKey(privateKeyBytes secretdata.Bytes, k... function validateECDHPrivateKey (line 155) | func validateECDHPrivateKey(privateKeyBytes secretdata.Bytes, pubKey *Pu... function validateXWingPrivateKey (line 175) | func validateXWingPrivateKey(privateKeyBytes secretdata.Bytes, pubKey *P... function validateMLKEMPrivateKey (line 186) | func validateMLKEMPrivateKey(privateKeyBytes secretdata.Bytes, pubKey *P... function NewPublicKey (line 215) | func NewPublicKey(publicKeyBytes []byte, idRequirement uint32, parameter... type PrivateKey (line 270) | type PrivateKey struct method PrivateKeyBytes (line 355) | func (k *PrivateKey) PrivateKeyBytes() secretdata.Bytes { return k.pri... method PublicKey (line 360) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 363) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 367) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 370) | func (k *PrivateKey) OutputPrefix() []byte { return bytes.Clone(k.publ... method Equal (line 373) | func (k *PrivateKey) Equal(other key.Key) bool { function NewPrivateKey (line 288) | func NewPrivateKey(privateKeyBytes secretdata.Bytes, idRequirement uint3... function NewPrivateKeyFromPublicKey (line 331) | func NewPrivateKeyFromPublicKey(privateKeyBytes secretdata.Bytes, pubKey... function createPrivateKey (line 379) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: hybrid/hpke/key_test.go type keyTestCase (line 33) | type keyTestCase struct function mustCreateParameters (line 43) | func mustCreateParameters(t *testing.T, opts hpke.ParametersOpts) *hpke.... function mustHexDecode (line 52) | func mustHexDecode(t *testing.T, hexString string) []byte { function mustCreateKeyTestCases (line 97) | func mustCreateKeyTestCases(t *testing.T) []keyTestCase { function TestNewPublicKeyFailsWithInvalidValues (line 273) | func TestNewPublicKeyFailsWithInvalidValues(t *testing.T) { type stubKey (line 342) | type stubKey struct method Parameters (line 346) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 347) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 348) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestPublicKey_Equal_FalseIfDifferentType (line 350) | func TestPublicKey_Equal_FalseIfDifferentType(t *testing.T) { function TestNewPublicKey (line 364) | func TestNewPublicKey(t *testing.T) { function TestPublicKeyNotEqual (line 399) | func TestPublicKeyNotEqual(t *testing.T) { function mustCreatePublicKey (line 525) | func mustCreatePublicKey(t *testing.T, publicKeyBytes []byte, idRequirem... function TestNewPrivateKeyFromPublicKeyFailsWithInvalidValues (line 534) | func TestNewPrivateKeyFromPublicKeyFailsWithInvalidValues(t *testing.T) { function TestPrivateKey_Equal_FalseIfDifferentType (line 599) | func TestPrivateKey_Equal_FalseIfDifferentType(t *testing.T) { function doTestPrivateKeyAccessors (line 618) | func doTestPrivateKeyAccessors(t *testing.T, privateKey *hpke.PrivateKey... function TestNewPrivateKeyFromPublicKey (line 644) | func TestNewPrivateKeyFromPublicKey(t *testing.T) { function TestNewPrivateKey (line 678) | func TestNewPrivateKey(t *testing.T) { function TestPrivateKeyNotEqual (line 712) | func TestPrivateKeyNotEqual(t *testing.T) { function TestPrivateKeyCreator (line 812) | func TestPrivateKeyCreator(t *testing.T) { function TestPrivateKeyCreator_FailsWithInvalidParameters (line 870) | func TestPrivateKeyCreator_FailsWithInvalidParameters(t *testing.T) { function TestPrivateKeyCreator_CreateMultipleDiffers (line 895) | func TestPrivateKeyCreator_CreateMultipleDiffers(t *testing.T) { FILE: hybrid/hpke/parameters.go type Variant (line 30) | type Variant method String (line 43) | func (variant Variant) String() string { constant VariantUnknown (line 34) | VariantUnknown Variant = iota constant VariantTink (line 36) | VariantTink constant VariantCrunchy (line 38) | VariantCrunchy constant VariantNoPrefix (line 40) | VariantNoPrefix type KEMID (line 58) | type KEMID method String (line 79) | func (kemID KEMID) String() string { constant UnknownKEMID (line 62) | UnknownKEMID KEMID = iota constant DHKEM_P256_HKDF_SHA256 (line 64) | DHKEM_P256_HKDF_SHA256 constant DHKEM_P384_HKDF_SHA384 (line 66) | DHKEM_P384_HKDF_SHA384 constant DHKEM_P521_HKDF_SHA512 (line 68) | DHKEM_P521_HKDF_SHA512 constant DHKEM_X25519_HKDF_SHA256 (line 70) | DHKEM_X25519_HKDF_SHA256 constant X_WING (line 72) | X_WING constant ML_KEM768 (line 74) | ML_KEM768 constant ML_KEM1024 (line 76) | ML_KEM1024 type KDFID (line 102) | type KDFID method String (line 115) | func (kdfID KDFID) String() string { constant UnknownKDFID (line 106) | UnknownKDFID KDFID = iota constant HKDFSHA256 (line 108) | HKDFSHA256 constant HKDFSHA384 (line 110) | HKDFSHA384 constant HKDFSHA512 (line 112) | HKDFSHA512 type AEADID (line 130) | type AEADID method String (line 143) | func (aeadID AEADID) String() string { constant UnknownAEADID (line 134) | UnknownAEADID AEADID = iota constant AES128GCM (line 136) | AES128GCM constant AES256GCM (line 138) | AES256GCM constant ChaCha20Poly1305 (line 140) | ChaCha20Poly1305 type ParametersOpts (line 157) | type ParametersOpts struct method String (line 164) | func (paramsOpts ParametersOpts) String() string { type Parameters (line 169) | type Parameters struct method KEMID (line 192) | func (p *Parameters) KEMID() KEMID { return p.kemID } method KDFID (line 195) | func (p *Parameters) KDFID() KDFID { return p.kdfID } method AEADID (line 198) | func (p *Parameters) AEADID() AEADID { return p.aeadID } method Variant (line 201) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 204) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 207) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 179) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: hybrid/hpke/parameters_test.go function TestNewParametersInvalidValues (line 24) | func TestNewParametersInvalidValues(t *testing.T) { type testCase (line 75) | type testCase struct function testCases (line 80) | func testCases(t *testing.T) []testCase { function TestNewParameters (line 102) | func TestNewParameters(t *testing.T) { function TestNewParametersNotEqual (line 136) | func TestNewParametersNotEqual(t *testing.T) { function TestKEMIDString (line 220) | func TestKEMIDString(t *testing.T) { function TestKDFIDString (line 276) | func TestKDFIDString(t *testing.T) { function TestAEADIDString (line 312) | func TestAEADIDString(t *testing.T) { function TestVariantString (line 348) | func TestVariantString(t *testing.T) { function TestParametersOptsString (line 384) | func TestParametersOptsString(t *testing.T) { FILE: hybrid/hpke/private_key_manager_test.go constant privateKeyVersion (line 34) | privateKeyVersion = 0 constant privateKeyTypeURL (line 35) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.HpkePrivateKey" function TestPrivateKeyManagerPrimitiveRejectsInvalidPrivateKeyVersion (line 38) | func TestPrivateKeyManagerPrimitiveRejectsInvalidPrivateKeyVersion(t *te... function TestPrivateKeyManagerPrimitiveRejectsInvalidPublicKeyVersion (line 59) | func TestPrivateKeyManagerPrimitiveRejectsInvalidPublicKeyVersion(t *tes... function TestPrivateKeyManagerPrimitiveRejectsInvalidParams (line 80) | func TestPrivateKeyManagerPrimitiveRejectsInvalidParams(t *testing.T) { function TestPrivateKeyManagerPrimitiveRejectsMissingParams (line 126) | func TestPrivateKeyManagerPrimitiveRejectsMissingParams(t *testing.T) { function TestPrivateKeyManagerPrimitiveRejectsNilKey (line 137) | func TestPrivateKeyManagerPrimitiveRejectsNilKey(t *testing.T) { function TestPrivateKeyManagerPrimitiveEncryptDecrypt (line 147) | func TestPrivateKeyManagerPrimitiveEncryptDecrypt(t *testing.T) { function TestPrivateKeyManagerNewKeyRejectsNilKeyFormat (line 194) | func TestPrivateKeyManagerNewKeyRejectsNilKeyFormat(t *testing.T) { function TestPrivateKeyManagerNewKeyRejectsInvalidKeyFormat (line 204) | func TestPrivateKeyManagerNewKeyRejectsInvalidKeyFormat(t *testing.T) { function TestPrivateKeyManagerNewKeyEncryptDecrypt (line 255) | func TestPrivateKeyManagerNewKeyEncryptDecrypt(t *testing.T) { function TestPrivateKeyManagerNewKeyDataRejectsNilKeyFormat (line 338) | func TestPrivateKeyManagerNewKeyDataRejectsNilKeyFormat(t *testing.T) { function TestPrivateKeyManagerNewKeyData (line 348) | func TestPrivateKeyManagerNewKeyData(t *testing.T) { function TestPrivateKeyManagerPublicKeyDataRejectsInvalidPrivateKeyVersion (line 402) | func TestPrivateKeyManagerPublicKeyDataRejectsInvalidPrivateKeyVersion(t... function TestPrivateKeyManagerPublicKeyDataRejectsInvalidPublicKeyVersion (line 427) | func TestPrivateKeyManagerPublicKeyDataRejectsInvalidPublicKeyVersion(t ... function TestPrivateKeyManagerPublicKeyDataRejectsNilKey (line 452) | func TestPrivateKeyManagerPublicKeyDataRejectsNilKey(t *testing.T) { function TestPrivateKeyManagerPublicKeyData (line 466) | func TestPrivateKeyManagerPublicKeyData(t *testing.T) { function TestPrivateKeyManagerDoesSupport (line 507) | func TestPrivateKeyManagerDoesSupport(t *testing.T) { function TestPrivateKeyManagerTypeURL (line 521) | func TestPrivateKeyManagerTypeURL(t *testing.T) { FILE: hybrid/hpke/protoserialization.go constant privateKeyTypeURL (line 30) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.HpkePrivateKey" constant publicKeyTypeURL (line 31) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.HpkePublicKey" function serializeKEMID (line 34) | func serializeKEMID(kemID KEMID) (hpkepb.HpkeKem, error) { function serializeAEADID (line 55) | func serializeAEADID(aeadID AEADID) (hpkepb.HpkeAead, error) { function serializedKDFID (line 68) | func serializedKDFID(kdfID KDFID) (hpkepb.HpkeKdf, error) { function parametersToProto (line 81) | func parametersToProto(p *Parameters) (*hpkepb.HpkeParams, error) { function publicKeyToProto (line 104) | func publicKeyToProto(publicKey *PublicKey) (*hpkepb.HpkePublicKey, erro... function protoOutputPrefixTypeFromVariant (line 120) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type publicKeySerializer (line 133) | type publicKeySerializer struct method SerializeKey (line 137) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function parseKEMID (line 164) | func parseKEMID(protoKEMID hpkepb.HpkeKem) (KEMID, error) { function parseAEADID (line 185) | func parseAEADID(protoAEADID hpkepb.HpkeAead) (AEADID, error) { function parseKDFID (line 198) | func parseKDFID(protoKDFID hpkepb.HpkeKdf) (KDFID, error) { function protoOutputPrefixTypeToVariant (line 211) | func protoOutputPrefixTypeToVariant(outputPrefixType tinkpb.OutputPrefix... function parseParameters (line 224) | func parseParameters(protoParameters *hpkepb.HpkeParams, outputPrefixTyp... function parsePublicKey (line 249) | func parsePublicKey(protoPublicKey *hpkepb.HpkePublicKey, outputPrefixTy... type publicKeyParser (line 260) | type publicKeyParser struct method ParseKey (line 264) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... type privateKeySerializer (line 286) | type privateKeySerializer struct method SerializeKey (line 290) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type privateKeyParser (line 335) | type privateKeyParser struct method ParseKey (line 339) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... type parametersSerializer (line 366) | type parametersSerializer struct method Serialize (line 370) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 399) | type parametersParser struct method Parse (line 403) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: hybrid/hpke/protoserialization_test.go type testParams (line 35) | type testParams struct method HasIDRequirement (line 37) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 39) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 41) | type testKey struct method Parameters (line 43) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 45) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 47) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 49) | func TestSerializePublicKeyFails(t *testing.T) { type protoSerializationTestCase (line 75) | type protoSerializationTestCase struct function mustCreateKeySerialization (line 83) | func mustCreateKeySerialization(t *testing.T, url string, keyMaterialTyp... function mustCreatePrivateKey (line 101) | func mustCreatePrivateKey(t *testing.T, privateKeyBytes []byte, publicKe... function mustCreateTestCases (line 111) | func mustCreateTestCases(t *testing.T) []protoSerializationTestCase { function TestSerializePublicKey (line 210) | func TestSerializePublicKey(t *testing.T) { function TestParsePublicKeyFails (line 224) | func TestParsePublicKeyFails(t *testing.T) { function TestParsePublicKey (line 343) | func TestParsePublicKey(t *testing.T) { function TestSerializePrivateKey (line 357) | func TestSerializePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 371) | func TestSerializePrivateKeyFails(t *testing.T) { function TestParsePrivateKey (line 397) | func TestParsePrivateKey(t *testing.T) { function TestParsePrivateKeyFails (line 411) | func TestParsePrivateKeyFails(t *testing.T) { type parametersSerializationTestCase (line 519) | type parametersSerializationTestCase struct function mustCreateKeyTemplate (line 525) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... function mustCreateParametersTestParameters (line 545) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestParseParameters (line 601) | func TestParseParameters(t *testing.T) { function TestParseParametersFails (line 615) | func TestParseParametersFails(t *testing.T) { function TestSerializeParameters (line 645) | func TestSerializeParameters(t *testing.T) { FILE: hybrid/hpke/public_key_manager_test.go constant publicKeyVersion (line 37) | publicKeyVersion = 0 constant publicKeyTypeURL (line 38) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.HpkePublicKey" function TestPublicKeyManagerPrimitiveRejectsInvalidKeyVersion (line 111) | func TestPublicKeyManagerPrimitiveRejectsInvalidKeyVersion(t *testing.T) { function TestPublicKeyManagerPrimitiveRejectsInvalidParams (line 132) | func TestPublicKeyManagerPrimitiveRejectsInvalidParams(t *testing.T) { function TestPublicKeyManagerPrimitiveRejectsMissingParams (line 169) | func TestPublicKeyManagerPrimitiveRejectsMissingParams(t *testing.T) { function TestPublicKeyManagerPrimitiveRejectsNilKey (line 180) | func TestPublicKeyManagerPrimitiveRejectsNilKey(t *testing.T) { function TestPublicKeyManagerPrimitiveEncryptDecrypt (line 190) | func TestPublicKeyManagerPrimitiveEncryptDecrypt(t *testing.T) { function TestPublicKeyManagerDoesSupport (line 244) | func TestPublicKeyManagerDoesSupport(t *testing.T) { function TestPublicKeyManagerTypeURL (line 258) | func TestPublicKeyManagerTypeURL(t *testing.T) { function TestPublicKeyManagerNotSupported (line 268) | func TestPublicKeyManagerNotSupported(t *testing.T) { function serializedPubPrivKeys (line 281) | func serializedPubPrivKeys(t *testing.T, params *hpkepb.HpkeParams) ([]b... function pubPrivKeys (line 295) | func pubPrivKeys(t *testing.T, params *hpkepb.HpkeParams) (*hpkepb.HpkeP... FILE: hybrid/hybrid_benchmark_test.go constant benchmarkPlaintextSize (line 28) | benchmarkPlaintextSize = 1 * 1024 constant benchmarkContextInfoSize (line 29) | benchmarkContextInfoSize = 256 function BenchmarkEncrypt (line 59) | func BenchmarkEncrypt(b *testing.B) { function BenchmarkDecrypt (line 89) | func BenchmarkDecrypt(b *testing.B) { FILE: hybrid/hybrid_decrypt_factory.go function NewHybridDecrypt (line 34) | func NewHybridDecrypt(handle *keyset.Handle) (tink.HybridDecrypt, error) { function NewHybridDecryptWithConfig (line 43) | func NewHybridDecryptWithConfig(handle *keyset.Handle, config keyset.Con... type fullHybridDecryptAdapter (line 51) | type fullHybridDecryptAdapter struct method Decrypt (line 58) | func (d *fullHybridDecryptAdapter) Decrypt(ciphertext, contextInfo []b... type decrypterAndID (line 71) | type decrypterAndID struct method Decrypt (line 78) | func (d *decrypterAndID) Decrypt(ciphertext, contextInfo []byte) ([]by... type wrappedHybridDecrypt (line 84) | type wrappedHybridDecrypt struct method Decrypt (line 144) | func (a *wrappedHybridDecrypt) Decrypt(ciphertext, contextInfo []byte)... function newWrappedHybridDecrypt (line 92) | func newWrappedHybridDecrypt(ps *primitiveset.PrimitiveSet[tink.HybridDe... function createDecryptLogger (line 127) | func createDecryptLogger(ps *primitiveset.PrimitiveSet[tink.HybridDecryp... FILE: hybrid/hybrid_encrypt_factory.go function NewHybridEncrypt (line 33) | func NewHybridEncrypt(handle *keyset.Handle) (tink.HybridEncrypt, error) { function NewHybridEncryptWithConfig (line 42) | func NewHybridEncryptWithConfig(handle *keyset.Handle, config keyset.Con... type fullHybridEncryptAdapter (line 53) | type fullHybridEncryptAdapter struct method Encrypt (line 60) | func (e *fullHybridEncryptAdapter) Encrypt(plaintext, contextInfo []by... type wrappedHybridEncrypt (line 69) | type wrappedHybridEncrypt struct method Encrypt (line 80) | func (a *wrappedHybridEncrypt) Encrypt(plaintext, contextInfo []byte) ... function isAEAD (line 90) | func isAEAD(p any) bool { function newWrappedHybridEncrypt (line 98) | func newWrappedHybridEncrypt(ps *primitiveset.PrimitiveSet[tink.HybridEn... function createEncryptLogger (line 130) | func createEncryptLogger(ps *primitiveset.PrimitiveSet[tink.HybridEncryp... FILE: hybrid/hybrid_factory_test.go function TestHybridFactoryTest (line 52) | func TestHybridFactoryTest(t *testing.T) { function TestFactoryWithInvalidPrimitiveSetType (line 146) | func TestFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestFactoryWithValidPrimitiveSetType (line 163) | func TestFactoryWithValidPrimitiveSetType(t *testing.T) { function TestPrimitiveFactoryFailsWhenHandleIsEmpty (line 184) | func TestPrimitiveFactoryFailsWhenHandleIsEmpty(t *testing.T) { function TestPrimitiveFactoryMonitoringWithAnnotationsLogsEncryptAndDecryptWithPrefix (line 194) | func TestPrimitiveFactoryMonitoringWithAnnotationsLogsEncryptAndDecryptW... function TestPrimitiveFactoryMonitoringWithAnnotationsLogsEncryptAndDecryptWithoutPrefix (line 284) | func TestPrimitiveFactoryMonitoringWithAnnotationsLogsEncryptAndDecryptW... function TestPrimitiveFactoryWithMonitoringWithMultipleKeysLogsEncryptionDecryption (line 374) | func TestPrimitiveFactoryWithMonitoringWithMultipleKeysLogsEncryptionDec... function TestPrimitiveFactoryMonitoringWithAnnotationsEncryptFailureIsLogged (line 517) | func TestPrimitiveFactoryMonitoringWithAnnotationsEncryptFailureIsLogged... function TestPrimitiveFactoryMonitoringWithAnnotationsDecryptFailureIsLogged (line 595) | func TestPrimitiveFactoryMonitoringWithAnnotationsDecryptFailureIsLogged... function TestPrimitiveFactoryEncryptDecryptWithoutAnnotationsDoesNotMonitor (line 647) | func TestPrimitiveFactoryEncryptDecryptWithoutAnnotationsDoesNotMonitor(... function TestEncryptFactoryFailsOnAEADHandle (line 689) | func TestEncryptFactoryFailsOnAEADHandle(t *testing.T) { function TestDecryptFactoryFailsOnAEADHandle (line 713) | func TestDecryptFactoryFailsOnAEADHandle(t *testing.T) { constant stubPublicKeyURL (line 737) | stubPublicKeyURL = "type.googleapis.com/google.crypto.tink.SomePublicKey" constant stubPrivateKeyURL (line 738) | stubPrivateKeyURL = "type.googleapis.com/google.crypto.tink.SomePrivateKey" type stubFullHybridEncrypt (line 742) | type stubFullHybridEncrypt struct method Encrypt (line 744) | func (s *stubFullHybridEncrypt) Encrypt(data []byte, contextInfo []byt... type stubParams (line 748) | type stubParams struct method Equal (line 752) | func (p *stubParams) Equal(_ key.Parameters) bool { return true } method HasIDRequirement (line 753) | func (p *stubParams) HasIDRequirement() bool { return true } type stubPublicKey (line 755) | type stubPublicKey struct method Equal (line 762) | func (p *stubPublicKey) Equal(_ key.Key) bool { return true } method Parameters (line 763) | func (p *stubPublicKey) Parameters() key.Parameters { return &stubP... method IDRequirement (line 764) | func (p *stubPublicKey) IDRequirement() (uint32, bool) { return p.idRe... method HasIDRequirement (line 765) | func (p *stubPublicKey) HasIDRequirement() bool { return p.pref... method OutputPrefix (line 766) | func (p *stubPublicKey) OutputPrefix() []byte { type stubPublicKeySerialization (line 774) | type stubPublicKeySerialization struct method SerializeKey (line 778) | func (s *stubPublicKeySerialization) SerializeKey(key key.Key) (*proto... type stubPublicKeyParser (line 790) | type stubPublicKeyParser struct method ParseKey (line 794) | func (s *stubPublicKeyParser) ParseKey(serialization *protoserializati... type stubFullHybridDecrypt (line 799) | type stubFullHybridDecrypt struct method Decrypt (line 801) | func (s *stubFullHybridDecrypt) Decrypt(ct []byte, contextInfo []byte)... type stubPrivateKey (line 812) | type stubPrivateKey struct method Equal (line 818) | func (p *stubPrivateKey) Equal(_ key.Key) bool { return true } method Parameters (line 819) | func (p *stubPrivateKey) Parameters() key.Parameters { return &stub... method IDRequirement (line 820) | func (p *stubPrivateKey) IDRequirement() (uint32, bool) { return p.pub... method HasIDRequirement (line 821) | func (p *stubPrivateKey) HasIDRequirement() bool { return p.pub... method PublicKey (line 822) | func (p *stubPrivateKey) PublicKey() (key.Key, error) { return p.pub... method OutputPrefix (line 823) | func (p *stubPrivateKey) OutputPrefix() []byte { return p.pub... type stubPrivateKeySerialization (line 825) | type stubPrivateKeySerialization struct method SerializeKey (line 829) | func (s *stubPrivateKeySerialization) SerializeKey(key key.Key) (*prot... type stubPrivateKeyParser (line 841) | type stubPrivateKeyParser struct method ParseKey (line 845) | func (s *stubPrivateKeyParser) ParseKey(serialization *protoserializat... function TestPrimitivesFactoryUsesFullPrimitiveIfRegistered (line 852) | func TestPrimitivesFactoryUsesFullPrimitiveIfRegistered(t *testing.T) { type stubLegacyHybridEncrypt (line 934) | type stubLegacyHybridEncrypt struct method Encrypt (line 936) | func (s *stubLegacyHybridEncrypt) Encrypt(data, contextInfo []byte) ([... type stubLegacyHybridDecrypt (line 940) | type stubLegacyHybridDecrypt struct method Decrypt (line 942) | func (s *stubLegacyHybridDecrypt) Decrypt(ct, contextInfo []byte) ([]b... type stubPublicKeyManager (line 946) | type stubPublicKeyManager struct method NewKey (line 950) | func (km *stubPublicKeyManager) NewKey(_ []byte) (proto.Message, error) { method NewKeyData (line 953) | func (km *stubPublicKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyData,... method DoesSupport (line 956) | func (km *stubPublicKeyManager) DoesSupport(keyURL string) bool { retu... method TypeURL (line 957) | func (km *stubPublicKeyManager) TypeURL() string { retu... method Primitive (line 958) | func (km *stubPublicKeyManager) Primitive(_ []byte) (any, error) { type stubPrivateKeyManager (line 962) | type stubPrivateKeyManager struct method NewKey (line 966) | func (km *stubPrivateKeyManager) NewKey(_ []byte) (proto.Message, erro... method NewKeyData (line 969) | func (km *stubPrivateKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyData... method DoesSupport (line 972) | func (km *stubPrivateKeyManager) DoesSupport(keyURL string) bool { ret... method TypeURL (line 973) | func (km *stubPrivateKeyManager) TypeURL() string { ret... method Primitive (line 974) | func (km *stubPrivateKeyManager) Primitive(_ []byte) (any, error) { function TestPrimitiveFactoryUsesLegacyPrimitive (line 978) | func TestPrimitiveFactoryUsesLegacyPrimitive(t *testing.T) { function TestNewWithConfig (line 1100) | func TestNewWithConfig(t *testing.T) { FILE: hybrid/hybrid_key_templates.go function DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Key_Template (line 39) | func DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Key_Template() *tink... function DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Raw_Key_Template (line 55) | func DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Raw_Key_Template() *... function DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Key_Template (line 71) | func DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Key_Template() *tink... function DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Raw_Key_Template (line 87) | func DHKEM_P256_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Raw_Key_Template() *... function DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Key_Template (line 103) | func DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Key_Template() *ti... function DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Raw_Key_Template (line 119) | func DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_128_GCM_Raw_Key_Template()... function DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Key_Template (line 135) | func DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Key_Template() *ti... function DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Raw_Key_Template (line 151) | func DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_AES_256_GCM_Raw_Key_Template()... function DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305_Key_Template (line 167) | func DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305_Key_Template... function DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305_Raw_Key_Template (line 183) | func DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305_Raw_Key_Temp... function createHPKEKeyTemplate (line 194) | func createHPKEKeyTemplate(kem hpkepb.HpkeKem, kdf hpkepb.HpkeKdf, aead ... function ECIESHKDFAES128GCMKeyTemplate (line 217) | func ECIESHKDFAES128GCMKeyTemplate() *tinkpb.KeyTemplate { function ECIESHKDFAES128CTRHMACSHA256KeyTemplate (line 233) | func ECIESHKDFAES128CTRHMACSHA256KeyTemplate() *tinkpb.KeyTemplate { function createECIESAEADHKDFKeyTemplate (line 240) | func createECIESAEADHKDFKeyTemplate(c commonpb.EllipticCurveType, ht com... FILE: hybrid/hybrid_key_templates_test.go function createECIESKeyTemplate (line 34) | func createECIESKeyTemplate(curveType commonpb.EllipticCurveType, hashTy... function eciesP384AES256GCMKeyTemplate (line 59) | func eciesP384AES256GCMKeyTemplate() *tinkpb.KeyTemplate { function eciesP521AES256GCMKeyTemplate (line 63) | func eciesP521AES256GCMKeyTemplate() *tinkpb.KeyTemplate { function eciesP256AESSIVKeyTemplate (line 67) | func eciesP256AESSIVKeyTemplate() *tinkpb.KeyTemplate { function TestKeyTemplates (line 71) | func TestKeyTemplates(t *testing.T) { FILE: hybrid/hybrid_test.go function Example (line 29) | func Example() { FILE: hybrid/internal/ecies/dem_helper.go type DEMHelper (line 40) | type DEMHelper struct method GetSymmetricKeySize (line 68) | func (r *DEMHelper) GetSymmetricKeySize() uint32 { return r.wantKeyMat... method GetAEADOrDAEAD (line 71) | func (r *DEMHelper) GetAEADOrDAEAD(symmetricKeyValue []byte) (any, err... function NewDEMHelper (line 48) | func NewDEMHelper(p key.Parameters) (*DEMHelper, error) { FILE: hybrid/internal/ecies/dem_helper_test.go type testCase (line 31) | type testCase struct function newAESGCMParameters (line 37) | func newAESGCMParameters(keySizeInBytes uint32) *aesgcm.Parameters { function newAESCTRHMACParameters (line 50) | func newAESCTRHMACParameters(aesKeySizeInBytes, hmacKeySizeInBytes uint3... function newAESSIVParameters (line 65) | func newAESSIVParameters(keySizeInBytes uint32) *aessiv.Parameters { function TestDEMHelper_AEADKeyTemplates (line 106) | func TestDEMHelper_AEADKeyTemplates(t *testing.T) { function TestDEMHelper_DAEADKeyTemplates (line 145) | func TestDEMHelper_DAEADKeyTemplates(t *testing.T) { function TestDEMHelper_KeySizes (line 184) | func TestDEMHelper_KeySizes(t *testing.T) { type stubParameters (line 212) | type stubParameters struct method HasIDRequirement (line 216) | func (stubParameters) HasIDRequirement() bool { return false } method Equal (line 217) | func (stubParameters) Equal(_ key.Parameters) bool { return false } function TestNewDEMHelper_UnsupportedParameters (line 219) | func TestNewDEMHelper_UnsupportedParameters(t *testing.T) { FILE: hybrid/internal/hpke/aead.go type aead (line 22) | type aead interface FILE: hybrid/internal/hpke/aes_gcm_aead.go type aesGCMAEAD (line 28) | type aesGCMAEAD struct method seal (line 63) | func (a *aesGCMAEAD) seal(key, nonce, plaintext, associatedData []byte... method open (line 80) | func (a *aesGCMAEAD) open(key, nonce, ciphertext, associatedData []byt... method id (line 94) | func (a *aesGCMAEAD) id() AEADID { return a.aeadID } method keyLength (line 96) | func (a *aesGCMAEAD) keyLength() int { return a.keyLen } method nonceLength (line 98) | func (a *aesGCMAEAD) nonceLength() int { return internalaead.AESGCMIVS... function newAESGCMAEAD (line 37) | func newAESGCMAEAD(keyLength int) (*aesGCMAEAD, error) { function newAESGCMCipher (line 51) | func newAESGCMCipher(keyBytes []byte) (cipher.AEAD, error) { FILE: hybrid/internal/hpke/aes_gcm_aead_test.go function TestAESGCMAEADSealOpen (line 23) | func TestAESGCMAEADSealOpen(t *testing.T) { FILE: hybrid/internal/hpke/chacha20poly1305_aead.go type chaCha20Poly1305AEAD (line 26) | type chaCha20Poly1305AEAD struct method seal (line 30) | func (c *chaCha20Poly1305AEAD) seal(key, nonce, plaintext, associatedD... method open (line 41) | func (c *chaCha20Poly1305AEAD) open(key, nonce, ciphertext, associated... method id (line 53) | func (c *chaCha20Poly1305AEAD) id() AEADID { return ChaCha20Poly1305 } method keyLength (line 55) | func (c *chaCha20Poly1305AEAD) keyLength() int { return chacha20poly13... method nonceLength (line 57) | func (c *chaCha20Poly1305AEAD) nonceLength() int { return chacha20poly... FILE: hybrid/internal/hpke/chacha20poly1305_aead_test.go function TestChaCha20Poly1305AEADSealOpen (line 23) | func TestChaCha20Poly1305AEADSealOpen(t *testing.T) { FILE: hybrid/internal/hpke/context.go type context (line 26) | type context struct method incrementSequenceNumber (line 94) | func (c *context) incrementSequenceNumber() error { method computeNonce (line 104) | func (c *context) computeNonce() ([]byte, error) { method seal (line 121) | func (c *context) seal(plaintext, associatedData []byte) ([]byte, erro... method open (line 139) | func (c *context) open(ciphertext, associatedData []byte) ([]byte, err... function newSenderContext (line 37) | func newSenderContext(recipientPubKey []byte, kem kem, kdf kdf, aead aea... function newRecipientContext (line 47) | func newRecipientContext(encapsulatedKey []byte, privateKeyBytes secretd... function createContext (line 55) | func createContext(encapsulatedKey []byte, sharedSecret []byte, kem kem,... function maxSequenceNumber (line 87) | func maxSequenceNumber(nonceLength int) *big.Int { FILE: hybrid/internal/hpke/context_test.go function TestContextSender (line 28) | func TestContextSender(t *testing.T) { function TestContextRecipient (line 78) | func TestContextRecipient(t *testing.T) { function TestContextMaxSequenceNumber (line 124) | func TestContextMaxSequenceNumber(t *testing.T) { function TestComputeNonce (line 135) | func TestComputeNonce(t *testing.T) { FILE: hybrid/internal/hpke/decrypt.go type Decrypt (line 25) | type Decrypt struct method Decrypt (line 48) | func (d *Decrypt) Decrypt(ciphertext, contextInfo []byte) ([]byte, err... function NewDecrypt (line 36) | func NewDecrypt(recipientPrivateKeyBytes secretdata.Bytes, kemID KEMID, ... FILE: hybrid/internal/hpke/encrypt.go type Encrypt (line 25) | type Encrypt struct method Encrypt (line 47) | func (e *Encrypt) Encrypt(plaintext, contextInfo []byte) ([]byte, erro... function NewEncrypt (line 35) | func NewEncrypt(recipientPubKeyBytes []byte, kemID KEMID, kdfID KDFID, a... FILE: hybrid/internal/hpke/encrypt_decrypt_test.go function TestNewEncryptMissingPubKeyBytes (line 28) | func TestNewEncryptMissingPubKeyBytes(t *testing.T) { function TestNewDecryptMissingPrivKeyBytes (line 37) | func TestNewDecryptMissingPrivKeyBytes(t *testing.T) { function TestEncryptDecrypt (line 46) | func TestEncryptDecrypt(t *testing.T) { function TestDecryptModifiedCiphertextOrContextInfo (line 77) | func TestDecryptModifiedCiphertextOrContextInfo(t *testing.T) { function TestEncryptDecryptEmptyContextInfo (line 126) | func TestEncryptDecryptEmptyContextInfo(t *testing.T) { function TestDecryptEncapsulatedKeyWithFlippedMSB (line 154) | func TestDecryptEncapsulatedKeyWithFlippedMSB(t *testing.T) { function pubPrivKeys (line 186) | func pubPrivKeys(t *testing.T) ([]byte, secretdata.Bytes) { function flipRandByte (line 199) | func flipRandByte(t *testing.T, b []byte) []byte { function TestNewEncryptNewDecrypt_InvalidIDs (line 208) | func TestNewEncryptNewDecrypt_InvalidIDs(t *testing.T) { FILE: hybrid/internal/hpke/hkdf_kdf.go type hkdfKDF (line 26) | type hkdfKDF struct method labeledExtract (line 48) | func (h *hkdfKDF) labeledExtract(salt, ikm []byte, ikmLabel string, su... method labeledExpand (line 52) | func (h *hkdfKDF) labeledExpand(prk, info []byte, infoLabel string, su... method extractAndExpand (line 65) | func (h *hkdfKDF) extractAndExpand(salt, ikm []byte, ikmLabel string, ... method id (line 70) | func (h *hkdfKDF) id() KDFID { return h.kdfID } function newHKDFKDF (line 35) | func newHKDFKDF(hashFunction HashType) (*hkdfKDF, error) { FILE: hybrid/internal/hpke/hkdf_kdf_test.go function TestHKDFKDFLabeledExtract (line 28) | func TestHKDFKDFLabeledExtract(t *testing.T) { function TestHKDFKDFLabeledExpand (line 51) | func TestHKDFKDFLabeledExpand(t *testing.T) { function TestHKDFKDFLabeledExpandRFCVectors (line 90) | func TestHKDFKDFLabeledExpandRFCVectors(t *testing.T) { function TestHKDFKDFExtractAndExpand (line 154) | func TestHKDFKDFExtractAndExpand(t *testing.T) { function TestNewHKDFKDF_UnknownHashType (line 205) | func TestNewHKDFKDF_UnknownHashType(t *testing.T) { FILE: hybrid/internal/hpke/hpke.go constant baseMode (line 27) | baseMode uint8 = 0x00 type KEMID (line 31) | type KEMID constant UnknownKEMID (line 40) | UnknownKEMID KEMID = 0 constant P256HKDFSHA256 (line 42) | P256HKDFSHA256 = 0x0010 constant P384HKDFSHA384 (line 44) | P384HKDFSHA384 = 0x0011 constant P521HKDFSHA512 (line 46) | P521HKDFSHA512 = 0x0012 constant X25519HKDFSHA256 (line 48) | X25519HKDFSHA256 = 0x0020 constant MLKEM768 (line 50) | MLKEM768 = 0x0041 constant MLKEM1024 (line 52) | MLKEM1024 = 0x0042 constant XWing (line 54) | XWing = 0x647a type KDFID (line 58) | type KDFID constant UnknownKDFID (line 63) | UnknownKDFID KDFID = 0 constant HKDFSHA256 (line 65) | HKDFSHA256 = 0x0001 constant HKDFSHA384 (line 67) | HKDFSHA384 = 0x0002 constant HKDFSHA512 (line 69) | HKDFSHA512 = 0x0003 type AEADID (line 73) | type AEADID method String (line 88) | func (a AEADID) String() string { constant UnknownAEADID (line 78) | UnknownAEADID AEADID = 0 constant AES128GCM (line 80) | AES128GCM = 0x0001 constant AES256GCM (line 82) | AES256GCM = 0x0002 constant ChaCha20Poly1305 (line 84) | ChaCha20Poly1305 = 0x0003 type HashType (line 102) | type HashType method String (line 117) | func (h HashType) String() string { constant UnknownHashType (line 107) | UnknownHashType HashType = iota constant SHA256 (line 109) | SHA256 constant SHA384 (line 111) | SHA384 constant SHA512 (line 113) | SHA512 constant hpkeV1 (line 130) | hpkeV1 = "HPKE-v1" function kemSuiteID (line 158) | func kemSuiteID(kemID KEMID) []byte { function hpkeSuiteID (line 164) | func hpkeSuiteID(kemID KEMID, kdfID KDFID, aeadID AEADID) []byte { function keyScheduleContext (line 176) | func keyScheduleContext(mode uint8, pskIDHash, infoHash []byte) []byte { function labelIKM (line 187) | func labelIKM(label string, ikm, suiteID []byte) []byte { function labelInfo (line 199) | func labelInfo(label string, info, suiteID []byte, length int) ([]byte, ... FILE: hybrid/internal/hpke/hpke_test.go type hpkeID (line 42) | type hpkeID struct type vector (line 50) | type vector struct type encryptionVector (line 66) | type encryptionVector struct type encryptionString (line 75) | type encryptionString struct type hpkeRFCTestVector (line 83) | type hpkeRFCTestVector struct function rfcVectorA1 (line 93) | func rfcVectorA1(t *testing.T) (hpkeID, vector) { function rfcVectorA3 (line 163) | func rfcVectorA3(t *testing.T) (hpkeID, vector) { function rfcVectorA6 (line 233) | func rfcVectorA6(t *testing.T) (hpkeID, vector) { function rfcVector (line 303) | func rfcVector(t *testing.T, v hpkeRFCTestVector) (hpkeID, vector) { function parseEncryptions (line 360) | func parseEncryptions(t *testing.T, encs []encryptionString) []encryptio... function aeadRFCVectors (line 394) | func aeadRFCVectors(t *testing.T) map[hpkeID]encryptionVector { constant testVectorsDir (line 508) | testVectorsDir = "testdata/testvectors" function getTestVectorsFilePath (line 513) | func getTestVectorsFilePath(t *testing.T) string { function hpkeBaseModeVectors (line 527) | func hpkeBaseModeVectors(t *testing.T) map[hpkeID]vector { function TestHpkeSuiteIDMemoryAllocatedIsExact (line 582) | func TestHpkeSuiteIDMemoryAllocatedIsExact(t *testing.T) { function TestKeyScheduleContextMemoryAllocatedIsExact (line 589) | func TestKeyScheduleContextMemoryAllocatedIsExact(t *testing.T) { function TestLabelIKMMemoryAllocatedIsExact (line 596) | func TestLabelIKMMemoryAllocatedIsExact(t *testing.T) { function TestLabelInfoMemoryAllocatedIsExact (line 603) | func TestLabelInfoMemoryAllocatedIsExact(t *testing.T) { FILE: hybrid/internal/hpke/kdf.go type kdf (line 22) | type kdf interface FILE: hybrid/internal/hpke/kem.go type kem (line 22) | type kem interface FILE: hybrid/internal/hpke/mlkem_kem.go type mlKEM (line 24) | type mlKEM struct method encapsulate (line 42) | func (m *mlKEM) encapsulate(recipientPubKey []byte) (sharedSecret, sen... method decapsulate (line 63) | func (m *mlKEM) decapsulate(encapsulatedKey, recipientPrivKey []byte) ... method id (line 82) | func (m *mlKEM) id() KEMID { return m.kemID } method encapsulatedKeyLength (line 84) | func (m *mlKEM) encapsulatedKeyLength() int { return kemLengths[m.kemI... function newMLKEM (line 31) | func newMLKEM(kemID KEMID) (*mlKEM, error) { FILE: hybrid/internal/hpke/mlkem_kem_test.go function mustHexDecodeString (line 26) | func mustHexDecodeString(t *testing.T, s string) []byte { type mlKEMTestVector (line 35) | type mlKEMTestVector struct function mlKEMTestVectors (line 44) | func mlKEMTestVectors(t *testing.T) []mlKEMTestVector { function TestMLKEMRoundtrip (line 78) | func TestMLKEMRoundtrip(t *testing.T) { function TestMLKEMDecapsulateWorks (line 105) | func TestMLKEMDecapsulateWorks(t *testing.T) { function TestMLKEMEncapsulateBadRecipientPubKey (line 128) | func TestMLKEMEncapsulateBadRecipientPubKey(t *testing.T) { function TestMLKEMDecapsulateEncapsulatedKeyPrefixesLargerSlice (line 150) | func TestMLKEMDecapsulateEncapsulatedKeyPrefixesLargerSlice(t *testing.T) { function TestMLKEMDecapsulateBadEncapsulatedKey (line 193) | func TestMLKEMDecapsulateBadEncapsulatedKey(t *testing.T) { function TestMLKEMDecapsulateBadRecipientPrivKey (line 217) | func TestMLKEMDecapsulateBadRecipientPrivKey(t *testing.T) { function TestMLKEMEncapsulatedKeyLength (line 241) | func TestMLKEMEncapsulatedKeyLength(t *testing.T) { function TestNewMLKEM_InvalidIDs (line 256) | func TestNewMLKEM_InvalidIDs(t *testing.T) { type mlKEMHPKETestVector (line 262) | type mlKEMHPKETestVector struct function mlKEMHPKEVectors (line 277) | func mlKEMHPKEVectors(t *testing.T) []mlKEMHPKETestVector { function TestMLKEMHPKEVectors (line 331) | func TestMLKEMHPKEVectors(t *testing.T) { FILE: hybrid/internal/hpke/nist_curves_kem.go type nistCurvesKEM (line 28) | type nistCurvesKEM struct method encapsulate (line 70) | func (x *nistCurvesKEM) encapsulate(recipientPubKeyBytes []byte) (shar... method decapsulate (line 91) | func (x *nistCurvesKEM) decapsulate(senderPubKeyBytes, recipientPrivKe... method id (line 108) | func (x *nistCurvesKEM) id() KEMID { return x.kemID } method encapsulatedKeyLength (line 110) | func (x *nistCurvesKEM) encapsulatedKeyLength() int { return kemLength... method deriveKEMSharedSecret (line 113) | func (x *nistCurvesKEM) deriveKEMSharedSecret(dh, senderPubKey, recipi... function newNISTCurvesKEM (line 42) | func newNISTCurvesKEM(kemID KEMID) (*nistCurvesKEM, error) { FILE: hybrid/internal/hpke/nist_curves_kem_test.go function TestKEMEncapsulateBoringSSLVectors (line 25) | func TestKEMEncapsulateBoringSSLVectors(t *testing.T) { function rfcVectorTestCases (line 66) | func rfcVectorTestCases(t *testing.T) []struct { function TestKEMEncapsulateBadRecipientPubKey (line 93) | func TestKEMEncapsulateBadRecipientPubKey(t *testing.T) { function TestKEMDecapsulateBoringSSLVectors (line 108) | func TestKEMDecapsulateBoringSSLVectors(t *testing.T) { function TestKEMDecapsulateEncapsulatedKeyPrefixesLargerSlice (line 146) | func TestKEMDecapsulateEncapsulatedKeyPrefixesLargerSlice(t *testing.T) { function TestKEMDecapsulateBadEncapsulatedKey (line 177) | func TestKEMDecapsulateBadEncapsulatedKey(t *testing.T) { function TestKEMDecapsulateBadRecipientPrivKey (line 192) | func TestKEMDecapsulateBadRecipientPrivKey(t *testing.T) { function TestKEMEncapsulatedKeyLength (line 207) | func TestKEMEncapsulatedKeyLength(t *testing.T) { function TestNewNISTCurvesKEM_UnknownKEMID (line 242) | func TestNewNISTCurvesKEM_UnknownKEMID(t *testing.T) { FILE: hybrid/internal/hpke/primitive_factory.go function newPrimitives (line 22) | func newPrimitives(kemID KEMID, kdfID KDFID, aeadID AEADID) (kem, kdf, a... function newKEM (line 40) | func newKEM(kemID KEMID) (kem, error) { function newKDF (line 63) | func newKDF(kdfID KDFID) (kdf, error) { function newAEAD (line 78) | func newAEAD(aeadID AEADID) (aead, error) { FILE: hybrid/internal/hpke/primitive_factory_test.go function TestNewKEM (line 32) | func TestNewKEM(t *testing.T) { function TestNewKEMUnsupportedID (line 46) | func TestNewKEMUnsupportedID(t *testing.T) { function TestNewKDF (line 61) | func TestNewKDF(t *testing.T) { function TestNewKDFUnsupportedID (line 75) | func TestNewKDFUnsupportedID(t *testing.T) { function TestNewAEAD (line 90) | func TestNewAEAD(t *testing.T) { function TestNewAEADUnsupportedID (line 104) | func TestNewAEADUnsupportedID(t *testing.T) { function TestNewPrimitives (line 110) | func TestNewPrimitives(t *testing.T) { function TestNewPrimitives_InvalidIDs (line 134) | func TestNewPrimitives_InvalidIDs(t *testing.T) { FILE: hybrid/internal/hpke/x25519_kem.go type x25519KEM (line 30) | type x25519KEM struct method encapsulate (line 46) | func (x *x25519KEM) encapsulate(recipientPubKey []byte) (sharedSecret,... method decapsulate (line 66) | func (x *x25519KEM) decapsulate(encapsulatedKey, recipientPrivKey []by... method id (line 78) | func (x *x25519KEM) id() KEMID { return x.kemID } method encapsulatedKeyLength (line 80) | func (x *x25519KEM) encapsulatedKeyLength() int { return kemLengths[x.... method deriveKEMSharedSecret (line 83) | func (x *x25519KEM) deriveKEMSharedSecret(dh, senderPubKey, recipientP... function newX25519KEM (line 39) | func newX25519KEM(hashAlg HashType) (*x25519KEM, error) { FILE: hybrid/internal/hpke/x25519_kem_test.go function TestX25519KEMEncapsulateBoringSSLVectors (line 27) | func TestX25519KEMEncapsulateBoringSSLVectors(t *testing.T) { function TestX25519KEMEncapsulateBadRecipientPubKey (line 68) | func TestX25519KEMEncapsulateBadRecipientPubKey(t *testing.T) { function TestX25519KEMEncapsulateBadSenderPrivKey (line 80) | func TestX25519KEMEncapsulateBadSenderPrivKey(t *testing.T) { function TestX25519KEMDecapsulateBoringSSLVectors (line 96) | func TestX25519KEMDecapsulateBoringSSLVectors(t *testing.T) { function TestX25519KEMDecapsulateEncapsulatedKeyPrefixesLargerSlice (line 133) | func TestX25519KEMDecapsulateEncapsulatedKeyPrefixesLargerSlice(t *testi... function TestX25519KEMDecapsulateBadEncapsulatedKey (line 161) | func TestX25519KEMDecapsulateBadEncapsulatedKey(t *testing.T) { function TestX25519KEMDecapsulateBadRecipientPrivKey (line 173) | func TestX25519KEMDecapsulateBadRecipientPrivKey(t *testing.T) { function TestX25519KEMEncapsulatedKeyLength (line 185) | func TestX25519KEMEncapsulatedKeyLength(t *testing.T) { function TestNewX25519KEM_InvalidIDs (line 195) | func TestNewX25519KEM_InvalidIDs(t *testing.T) { FILE: hybrid/internal/hpke/xwing_kem.go type xWingKEM (line 22) | type xWingKEM struct method encapsulate (line 30) | func (x *xWingKEM) encapsulate(recipientPubKey []byte) (sharedSecret, ... method decapsulate (line 34) | func (x *xWingKEM) decapsulate(encapsulatedKey, recipientPrivKey []byt... method id (line 38) | func (x *xWingKEM) id() KEMID { return XWing } method encapsulatedKeyLength (line 40) | func (x *xWingKEM) encapsulatedKeyLength() int { return kemLengths[XWi... function newXWingKEM (line 26) | func newXWingKEM() (*xWingKEM, error) { FILE: hybrid/internal/hpke/xwing_kem_test.go type xWingTestVector (line 25) | type xWingTestVector struct function xWingTestVectors (line 33) | func xWingTestVectors(t *testing.T) []xWingTestVector { function TestXWingRoundtrip (line 65) | func TestXWingRoundtrip(t *testing.T) { function TestXWingDecapsulateWorks (line 92) | func TestXWingDecapsulateWorks(t *testing.T) { function TestXWingEncapsulateBadRecipientPubKey (line 115) | func TestXWingEncapsulateBadRecipientPubKey(t *testing.T) { function TestXWingDecapsulateEncapsulatedKeyPrefixesLargerSlice (line 137) | func TestXWingDecapsulateEncapsulatedKeyPrefixesLargerSlice(t *testing.T) { function TestXWingDecapsulateBadEncapsulatedKey (line 180) | func TestXWingDecapsulateBadEncapsulatedKey(t *testing.T) { function TestXWingDecapsulateBadRecipientPrivKey (line 204) | func TestXWingDecapsulateBadRecipientPrivKey(t *testing.T) { function TestXWingEncapsulatedKeyLength (line 228) | func TestXWingEncapsulatedKeyLength(t *testing.T) { type xWingHPKETestVector (line 239) | type xWingHPKETestVector struct function xWingHPKEVectors (line 253) | func xWingHPKEVectors(t *testing.T) []xWingHPKETestVector { function TestXWingHPKEVectors (line 283) | func TestXWingHPKEVectors(t *testing.T) { FILE: hybrid/internal/xwing/xwing.go constant xWingLabel (line 28) | xWingLabel = `\.//^\` constant secretKeySize (line 29) | secretKeySize = 32 constant publicKeySize (line 30) | publicKeySize = 1216 constant ciphertextSize (line 31) | ciphertextSize = 1120 function Encapsulate (line 35) | func Encapsulate(publicKey []byte) (sharedSecret, ciphertext []byte, err... function Decapsulate (line 76) | func Decapsulate(ciphertext, recipientPrivKey []byte) ([]byte, error) { function PublicFromSecret (line 116) | func PublicFromSecret(secretKey []byte) ([]byte, error) { function expandDecapsulationKey (line 146) | func expandDecapsulationKey(secretKey []byte) (seedM []byte, skX []byte,... function combiner (line 162) | func combiner(ssM, ssX, ctX, pkX []byte) []byte { FILE: hybrid/internal/xwing/xwing_test.go function mustHexDecodeString (line 23) | func mustHexDecodeString(t *testing.T, s string) []byte { type xWingTestVector (line 32) | type xWingTestVector struct function xWingTestVectors (line 40) | func xWingTestVectors(t *testing.T) []xWingTestVector { function TestXWingVectors (line 72) | func TestXWingVectors(t *testing.T) { function TestXWingRoundtrip (line 101) | func TestXWingRoundtrip(t *testing.T) { function TestXWingEncapsulateBadRecipientPubKey (line 123) | func TestXWingEncapsulateBadRecipientPubKey(t *testing.T) { function TestXWingDecapsulateBadCiphertext (line 136) | func TestXWingDecapsulateBadCiphertext(t *testing.T) { function TestXWingDecapsulateBadSecretKey (line 155) | func TestXWingDecapsulateBadSecretKey(t *testing.T) { FILE: hybrid/subtle/ecies_aead_hkdf_dem_helper.go type EciesAEADHKDFDEMHelper (line 18) | type EciesAEADHKDFDEMHelper interface FILE: hybrid/subtle/ecies_aead_hkdf_hybrid_decrypt.go type ECIESAEADHKDFHybridDecrypt (line 25) | type ECIESAEADHKDFHybridDecrypt struct method Decrypt (line 46) | func (e *ECIESAEADHKDFHybridDecrypt) Decrypt(ciphertext, contextInfo [... function NewECIESAEADHKDFHybridDecrypt (line 35) | func NewECIESAEADHKDFHybridDecrypt(pvt *ECPrivateKey, hkdfSalt []byte, h... FILE: hybrid/subtle/ecies_aead_hkdf_hybrid_encrypt.go type ECIESAEADHKDFHybridEncrypt (line 26) | type ECIESAEADHKDFHybridEncrypt struct method Encrypt (line 54) | func (e *ECIESAEADHKDFHybridEncrypt) Encrypt(plaintext, contextInfo []... function NewECIESAEADHKDFHybridEncrypt (line 36) | func NewECIESAEADHKDFHybridEncrypt(pub *ECPublicKey, hkdfSalt []byte, hk... FILE: hybrid/subtle/ecies_hkdf_recipient_kem.go type ECIESHKDFRecipientKem (line 21) | type ECIESHKDFRecipientKem struct method decapsulate (line 26) | func (s *ECIESHKDFRecipientKem) decapsulate(kem []byte, hashAlg string... FILE: hybrid/subtle/ecies_hkdf_sender_kem.go type KEMKey (line 20) | type KEMKey struct type ECIESHKDFSenderKem (line 26) | type ECIESHKDFSenderKem struct method encapsulate (line 31) | func (s *ECIESHKDFSenderKem) encapsulate(hashAlg string, salt []byte, ... FILE: hybrid/subtle/elliptic_curves.go type ECPublicKey (line 27) | type ECPublicKey struct type ECPrivateKey (line 33) | type ECPrivateKey struct method getParams (line 63) | func (p *ECPrivateKey) getParams() *elliptic.CurveParams { function GetECPrivateKey (line 39) | func GetECPrivateKey(c elliptic.Curve, b []byte) *ECPrivateKey { type ECPoint (line 59) | type ECPoint struct function getModulus (line 67) | func getModulus(c elliptic.Curve) *big.Int { function fieldSizeInBits (line 71) | func fieldSizeInBits(c elliptic.Curve) int { function fieldSizeInBytes (line 77) | func fieldSizeInBytes(c elliptic.Curve) int { function encodingSizeInBytes (line 81) | func encodingSizeInBytes(c elliptic.Curve, p string) (int, error) { function PointEncode (line 96) | func PointEncode(c elliptic.Curve, pFormat string, pt ECPoint) ([]byte, ... function PointDecode (line 135) | func PointDecode(c elliptic.Curve, pFormat string, e []byte) (*ECPoint, ... function getY (line 194) | func getY(x *big.Int, lsb bool, c elliptic.Curve) *big.Int { function validatePublicPoint (line 218) | func validatePublicPoint(pub *ECPoint, priv *ECPrivateKey) error { function ComputeSharedSecret (line 226) | func ComputeSharedSecret(pub *ECPoint, priv *ECPrivateKey) ([]byte, erro... function maxSharedKeyLength (line 245) | func maxSharedKeyLength(pub ECPublicKey) int { function GenerateECDHKeyPair (line 250) | func GenerateECDHKeyPair(c elliptic.Curve) (*ECPrivateKey, error) { function GetCurve (line 269) | func GetCurve(c string) (elliptic.Curve, error) { FILE: hybrid/subtle/elliptic_curves_test.go type testEC1 (line 35) | type testEC1 struct type testEC2 (line 40) | type testEC2 struct function TestPointOnCurve (line 429) | func TestPointOnCurve(t *testing.T) { function TestPointEncode (line 445) | func TestPointEncode(t *testing.T) { function TestPointDecode (line 468) | func TestPointDecode(t *testing.T) { function checkFlag (line 492) | func checkFlag(t *testing.T, flags []string, check []string) bool { function convertX509PublicKey (line 505) | func convertX509PublicKey(t *testing.T, b []byte) (*subtle.ECPublicKey, ... function convertPointPublicKey (line 525) | func convertPointPublicKey(t *testing.T, pk []byte, curve elliptic.Curve... function TestECWycheproofCases (line 540) | func TestECWycheproofCases(t *testing.T) { FILE: hybrid/subtle/public_key.go function SerializePrimaryPublicKey (line 35) | func SerializePrimaryPublicKey(handle *keyset.Handle, template *tinkpb.K... function KeysetHandleFromSerializedPublicKey (line 70) | func KeysetHandleFromSerializedPublicKey(pubKeyBytes []byte, template *t... function validateParameters (line 95) | func validateParameters(params *hpke.Parameters) error { FILE: hybrid/subtle/public_key_test.go function TestHPKEPublicKeySerialization (line 29) | func TestHPKEPublicKeySerialization(t *testing.T) { function TestSerializePrimaryPublicKeyInvalidTemplateFails (line 80) | func TestSerializePrimaryPublicKeyInvalidTemplateFails(t *testing.T) { function mustCreatePublicKeysetHandle (line 115) | func mustCreatePublicKeysetHandle(t *testing.T, opts hpke.ParametersOpts... function TestSerializePrimaryPublicKeyInvalidKeyFails (line 141) | func TestSerializePrimaryPublicKeyInvalidKeyFails(t *testing.T) { function TestSerializePrimaryPublicKeyFailsWithEmptyHandle (line 238) | func TestSerializePrimaryPublicKeyFailsWithEmptyHandle(t *testing.T) { function TestKeysetHandleFromSerializedPublicKeyInvalidTemplateFails (line 246) | func TestKeysetHandleFromSerializedPublicKeyInvalidTemplateFails(t *test... FILE: hybrid/subtle/subtle_test.go type ecdhSuite (line 22) | type ecdhSuite struct type ecdhGroup (line 28) | type ecdhGroup struct type ecdhCase (line 36) | type ecdhCase struct FILE: insecurecleartextkeyset/example_test.go function Example_cleartextKeysetInBinary (line 29) | func Example_cleartextKeysetInBinary() { function Example_cleartextKeysetInJSON (line 77) | func Example_cleartextKeysetInJSON() { FILE: insecurecleartextkeyset/insecurecleartextkeyset.go function Read (line 41) | func Read(r keyset.Reader, opts ...keyset.Option) (*keyset.Handle, error) { function Write (line 56) | func Write(handle *keyset.Handle, w keyset.Writer) error { function KeysetMaterial (line 67) | func KeysetMaterial(handle *keyset.Handle) *tinkpb.Keyset { function KeysetHandle (line 85) | func KeysetHandle(ks *tinkpb.Keyset) *keyset.Handle { FILE: insecurecleartextkeyset/insecurecleartextkeyset_test.go type NilKeysetReader (line 36) | type NilKeysetReader struct method Read (line 39) | func (m *NilKeysetReader) Read() (*tinkpb.Keyset, error) { method ReadEncrypted (line 43) | func (m *NilKeysetReader) ReadEncrypted() (*tinkpb.EncryptedKeyset, er... function TestReadWithNilKeysetFails (line 47) | func TestReadWithNilKeysetFails(t *testing.T) { function TestReadWithNilReaderFails (line 53) | func TestReadWithNilReaderFails(t *testing.T) { function TestWriteWithNilHandleFails (line 59) | func TestWriteWithNilHandleFails(t *testing.T) { function TestWriteWithNilWriterFails (line 66) | func TestWriteWithNilWriterFails(t *testing.T) { function TestWriteAndReadInBinary (line 76) | func TestWriteAndReadInBinary(t *testing.T) { function TestWriteAndReadInJson (line 101) | func TestWriteAndReadInJson(t *testing.T) { function TestLegacyKeysetHandle (line 126) | func TestLegacyKeysetHandle(t *testing.T) { function TestLegacyKeysetHandleWithNilKeysetReturnsNil (line 149) | func TestLegacyKeysetHandleWithNilKeysetReturnsNil(t *testing.T) { function TestHandleFromReaderWithAnnotationsGetsMonitored (line 156) | func TestHandleFromReaderWithAnnotationsGetsMonitored(t *testing.T) { function TestHandleFromReaderWithAnnotationsTwiceFails (line 189) | func TestHandleFromReaderWithAnnotationsTwiceFails(t *testing.T) { function TestHandleFromReaderWithoutAnnotationsDoesNotGetMonitored (line 207) | func TestHandleFromReaderWithoutAnnotationsDoesNotGetMonitored(t *testin... FILE: insecuresecretdataaccess/insecuresecretdataaccess.go type Token (line 24) | type Token struct FILE: internal/aead/aead.go function ValidateAESKeySize (line 22) | func ValidateAESKeySize(sizeInBytes uint32) error { FILE: internal/aead/aead_test.go type AEADSuite (line 25) | type AEADSuite struct type AEADGroup (line 30) | type AEADGroup struct type AEADCase (line 38) | type AEADCase struct function TestValidateAESKeySize (line 48) | func TestValidateAESKeySize(t *testing.T) { FILE: internal/aead/aesctr.go constant aesCTRMinIVSize (line 26) | aesCTRMinIVSize = 12 type AESCTR (line 30) | type AESCTR struct method Encrypt (line 52) | func (a *AESCTR) Encrypt(dst, plaintext []byte) ([]byte, error) { method Decrypt (line 75) | func (a *AESCTR) Decrypt(dst, ciphertext []byte) ([]byte, error) { method newCipher (line 94) | func (a *AESCTR) newCipher(iv []byte) (cipher.Stream, error) { function NewAESCTR (line 36) | func NewAESCTR(key []byte, ivSize int) (*AESCTR, error) { FILE: internal/aead/aesctr_test.go function TestNewAESCTR (line 30) | func TestNewAESCTR(t *testing.T) { function TestNewAESCTRWithValidIVSizes (line 54) | func TestNewAESCTRWithValidIVSizes(t *testing.T) { function TestNewAESCTRWithInvalidIVSize (line 64) | func TestNewAESCTRWithInvalidIVSize(t *testing.T) { function TestAESCTRIVIsRandom (line 78) | func TestAESCTRIVIsRandom(t *testing.T) { function TestAESCTRIVIsPadded (line 100) | func TestAESCTRIVIsPadded(t *testing.T) { function TestNistTestVector (line 131) | func TestNistTestVector(t *testing.T) { function TestMultipleEncrypt (line 175) | func TestMultipleEncrypt(t *testing.T) { function TestEncryptDecrypt (line 210) | func TestEncryptDecrypt(t *testing.T) { function TestEncryptRandomMessage (line 241) | func TestEncryptRandomMessage(t *testing.T) { function TestEncryptRandomKeyAndMessage (line 270) | func TestEncryptRandomKeyAndMessage(t *testing.T) { function TestEncryptDecryptWithDestinationBuffer (line 299) | func TestEncryptDecryptWithDestinationBuffer(t *testing.T) { function TestEncryptDecryptWithInvalidDestinationBufferFails (line 318) | func TestEncryptDecryptWithInvalidDestinationBufferFails(t *testing.T) { FILE: internal/aead/aesgcm.go constant AESGCMIVSize (line 23) | AESGCMIVSize = 12 constant AESGCMTagSize (line 25) | AESGCMTagSize = 16 constant aesGCMMaxPlaintextSize (line 28) | aesGCMMaxPlaintextSize = (1 << 36) - 31 constant intSize (line 30) | intSize = 32 << (^uint(0) >> 63) constant maxInt (line 31) | maxInt = 1<<(intSize-1) - 1 constant maxIntPlaintextSize (line 32) | maxIntPlaintextSize = maxInt - AESGCMIVSize - AESGCMTagSize function CheckAESGCMPlaintextSize (line 36) | func CheckAESGCMPlaintextSize(size uint64) error { FILE: internal/aead/aesgcm_test.go function TestCheckAESGCMPlaintextSize (line 23) | func TestCheckAESGCMPlaintextSize(t *testing.T) { FILE: internal/aead/chacha20poly1305.go function CheckChaCha20Poly1305PlaintextSize (line 26) | func CheckChaCha20Poly1305PlaintextSize(plaintextLength int) error { FILE: internal/aead/chacha20poly1305_test.go function TestCheckChaCha20Poly1305PlaintextSize (line 25) | func TestCheckChaCha20Poly1305PlaintextSize(t *testing.T) { FILE: internal/config/aeadconfig/v0.go function mustCreateConfigV0 (line 32) | func mustCreateConfigV0() config.Config { function V0 (line 59) | func V0() config.Config { return configV0 } FILE: internal/config/aeadconfig/v0_test.go function mustMarshal (line 47) | func mustMarshal(t *testing.T, m proto.Message) []byte { function TestConfigV0AEAD (line 56) | func TestConfigV0AEAD(t *testing.T) { FILE: internal/config/config.go type Config (line 30) | type Config struct method PrimitiveFromKey (line 39) | func (c *Config) PrimitiveFromKey(k key.Key, _ internalapi.Token) (any... type Builder (line 50) | type Builder struct method RegisterPrimitiveConstructor (line 61) | func (b *Builder) RegisterPrimitiveConstructor(keyType reflect.Type, c... method Build (line 70) | func (b *Builder) Build() Config { function NewBuilder (line 79) | func NewBuilder() *Builder { FILE: internal/config/config_test.go type testParameters0 (line 26) | type testParameters0 struct method HasIDRequirement (line 28) | func (tp testParameters0) HasIDRequirement() bool { return false } method Equal (line 29) | func (tp testParameters0) Equal(other key.Parameters) bool { type testKey0 (line 33) | type testKey0 struct method Parameters (line 35) | func (tk testKey0) Parameters() key.Parameters { return... method IDRequirement (line 36) | func (tk testKey0) IDRequirement() (id uint32, required bool) { return... method Equal (line 37) | func (tk testKey0) Equal(other key.Key) bool { return... type testPrimitive0 (line 39) | type testPrimitive0 struct type testParameters1 (line 41) | type testParameters1 struct method HasIDRequirement (line 43) | func (tp testParameters1) HasIDRequirement() bool { return false } method Equal (line 44) | func (tp testParameters1) Equal(other key.Parameters) bool { function primitive0Constructor (line 48) | func primitive0Constructor(k key.Key) (any, error) { return testPrimitiv... type testKey1 (line 50) | type testKey1 struct method Parameters (line 52) | func (tk testKey1) Parameters() key.Parameters { return... method IDRequirement (line 53) | func (tk testKey1) IDRequirement() (id uint32, required bool) { return... method Equal (line 54) | func (tk testKey1) Equal(other key.Key) bool { return... type testPrimitive1 (line 56) | type testPrimitive1 struct type testKeyUnregistered (line 58) | type testKeyUnregistered struct method Parameters (line 60) | func (tk testKeyUnregistered) Parameters() key.Parameters ... method IDRequirement (line 61) | func (tk testKeyUnregistered) IDRequirement() (id uint32, required boo... method Equal (line 62) | func (tk testKeyUnregistered) Equal(other key.Key) bool ... function primitive1Constructor (line 64) | func primitive1Constructor(k key.Key) (any, error) { return testPrimitiv... function TestConfigPrimitiveFromKeyWorks (line 66) | func TestConfigPrimitiveFromKeyWorks(t *testing.T) { constant typeURL0 (line 86) | typeURL0 = "type_url_0" constant typeURL1 (line 87) | typeURL1 = "type_url_1" function TestMultiplePrimitiveConstructors (line 90) | func TestMultiplePrimitiveConstructors(t *testing.T) { function TestRegisterDifferentPrimitiveConstructor (line 119) | func TestRegisterDifferentPrimitiveConstructor(t *testing.T) { function TestUnregisteredPrimitive (line 133) | func TestUnregisteredPrimitive(t *testing.T) { function TestConfigV0_ConfigIsDeepcopied (line 151) | func TestConfigV0_ConfigIsDeepcopied(t *testing.T) { FILE: internal/config/daeadconfig/v0.go function mustCreateConfigV0 (line 28) | func mustCreateConfigV0() config.Config { function V0 (line 39) | func V0() config.Config { return configV0 } FILE: internal/config/daeadconfig/v0_test.go function mustMarshal (line 34) | func mustMarshal(t *testing.T, m proto.Message) []byte { function mustHexDecode (line 43) | func mustHexDecode(t *testing.T, s string) []byte { constant aesSIVKeyHex (line 54) | aesSIVKeyHex = "c25cafc6018b98dfbb79a40ec89c575a4f88c4116489bba27... constant aesSIVMsgHex (line 55) | aesSIVMsgHex = "beec61030fa3d670337196beade6aeaa" constant aesSIVAad (line 56) | aesSIVAad = "deeb0ccf3aef47a296ed1ca8f4ae5907" constant aesSIVCiphertextHex (line 57) | aesSIVCiphertextHex = "5865208eab9163db85cab9f96d846234a2626aae22f5c17c9... function TestConfigV0MACFailsIfKeyNotMAC (line 60) | func TestConfigV0MACFailsIfKeyNotMAC(t *testing.T) { function TestConfigV0MAC (line 80) | func TestConfigV0MAC(t *testing.T) { FILE: internal/config/hybridconfig/v0.go function mustCreateConfigV0 (line 29) | func mustCreateConfigV0() config.Config { function V0 (line 43) | func V0() config.Config { return configV0 } FILE: internal/config/hybridconfig/v0_test.go function TestConfigV0EncryptDecryptFailsIfKeyNotHybrid (line 33) | func TestConfigV0EncryptDecryptFailsIfKeyNotHybrid(t *testing.T) { function TestConfigV0EncryptDecrypt (line 53) | func TestConfigV0EncryptDecrypt(t *testing.T) { FILE: internal/config/jwtmacconfig/v0.go function mustCreateConfigV0 (line 28) | func mustCreateConfigV0() config.Config { function V0 (line 37) | func V0() config.Config { return configV0 } FILE: internal/config/jwtmacconfig/v0_test.go function TestConfigV0JWTMACFailsIfKeyNotMAC (line 32) | func TestConfigV0JWTMACFailsIfKeyNotMAC(t *testing.T) { function mustBase64Dec (line 52) | func mustBase64Dec(t *testing.T, s string) []byte { function TestConfigV0WithJWTHMACKey (line 61) | func TestConfigV0WithJWTHMACKey(t *testing.T) { FILE: internal/config/jwtsignatureconfig/v0.go function mustCreateConfigV0 (line 28) | func mustCreateConfigV0() config.Config { function V0 (line 43) | func V0() config.Config { return configV0 } FILE: internal/config/jwtsignatureconfig/v0_test.go function TestConfigV0JWTSignatureFailsIfKeyNotSignature (line 35) | func TestConfigV0JWTSignatureFailsIfKeyNotSignature(t *testing.T) { function mustBase64Decode (line 55) | func mustBase64Decode(t *testing.T, in string) []byte { constant n2048Base64 (line 66) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 67) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 68) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 69) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 70) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 71) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 72) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... function TestConfigV0WithJWTSignatureKey (line 75) | func TestConfigV0WithJWTSignatureKey(t *testing.T) { FILE: internal/config/keyderivationconfig/v0.go function mustCreateConfigV0 (line 28) | func mustCreateConfigV0() config.Config { function V0 (line 37) | func V0() config.Config { return configV0 } FILE: internal/config/keyderivationconfig/v0_test.go type keyDeriver (line 31) | type keyDeriver interface function TestRegisterPrimitiveConstructor (line 36) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: internal/config/macconfig/v0.go function mustCreateConfigV0 (line 29) | func mustCreateConfigV0() config.Config { function V0 (line 44) | func V0() config.Config { return configV0 } FILE: internal/config/macconfig/v0_test.go function mustMarshal (line 36) | func mustMarshal(t *testing.T, m proto.Message) []byte { function mustHexDecode (line 45) | func mustHexDecode(t *testing.T, s string) []byte { constant hmacKeyHex (line 56) | hmacKeyHex = "85a7cbaae825bb82c9b6f6c5c2af5ac03d1f6daa63d2a93c189948ec41... constant hmacMsgHex (line 57) | hmacMsgHex = "a59b" constant hmacTagHex (line 58) | hmacTagHex = "0fe2f13bba2198f6dda1a084be928e304e9cb16a56bc0b7b939a073280... constant aesCMACKeyHex (line 60) | aesCMACKeyHex = "ea3b016bdd387dd64d837c71683808f335dbdc53598a4ea8c5f9524... constant aesCMACMsgHex (line 61) | aesCMACMsgHex = "6601" constant aesCMACTagHex (line 62) | aesCMACTagHex = "c7c44e31c466334992d6f9de3c771634" function TestConfigV0MACFailsIfKeyNotMAC (line 65) | func TestConfigV0MACFailsIfKeyNotMAC(t *testing.T) { function TestConfigV0MAC (line 85) | func TestConfigV0MAC(t *testing.T) { FILE: internal/config/prfconfig/v0.go function mustCreateConfigV0 (line 30) | func mustCreateConfigV0() config.Config { function V0 (line 47) | func V0() config.Config { return configV0 } FILE: internal/config/prfconfig/v0_test.go function TestConfigV0FailsIfKeyNotPRF (line 35) | func TestConfigV0FailsIfKeyNotPRF(t *testing.T) { constant hkdfKeyHex (line 57) | hkdfKeyHex = "000102030405060708090a0b0c0d0e0f" + constant hkdfSaltHex (line 62) | hkdfSaltHex = "606162636465666768696a6b6c6d6e6f" + constant hkdfDataHex (line 67) | hkdfDataHex = "b0b1b2b3b4b5b6b7b8b9babbbcbdbebf" + constant hkdfWantOutputHex (line 72) | hkdfWantOutputHex = "b11e398dc80327a1c8e7f78c596a4934" + constant aesCMACPRFKeyHex (line 80) | aesCMACPRFKeyHex = "e754076ceab3fdaf4f9bcab7d4f0df0cbbafbc87731b8... constant aesCMACPRFWantOutputHex (line 81) | aesCMACPRFWantOutputHex = "9d47482c2d9252bace43a75a8335b8b8" constant aesCMACPRFDataHex (line 82) | aesCMACPRFDataHex = "40" constant hmacSHA256KeyHex (line 85) | hmacSHA256KeyHex = "8159fd15133cd964c9a6964c94f0ea269a806fd9f43f0... constant hmacSHA256WantOutputHex (line 86) | hmacSHA256WantOutputHex = "dfc5105d5eecf7ae7b8b8de3930e7659e84c4172f2555... constant hmacSHA256DataHex (line 87) | hmacSHA256DataHex = "77" function mustHexDecode (line 90) | func mustHexDecode(t *testing.T, s string) []byte { function TestConfigV0WithPRFKeys (line 99) | func TestConfigV0WithPRFKeys(t *testing.T) { FILE: internal/config/signatureconfig/v0.go function mustCreateConfigV0 (line 33) | func mustCreateConfigV0() config.Config { function V0 (line 59) | func V0() config.Config { return configV0 } FILE: internal/config/signatureconfig/v0_test.go function TestConfigV0MACFailsIfKeyNotSignerOrVerifier (line 37) | func TestConfigV0MACFailsIfKeyNotSignerOrVerifier(t *testing.T) { function TestConfigV0Signer (line 57) | func TestConfigV0Signer(t *testing.T) { FILE: internal/config/streamingaeadconfig/v0.go function mustCreateConfigV0 (line 29) | func mustCreateConfigV0() config.Config { function V0 (line 43) | func V0() config.Config { return configV0 } FILE: internal/config/streamingaeadconfig/v0_test.go function TestConfigV0StreamingAEADFailsIfKeyNotStreamingAEAD (line 34) | func TestConfigV0StreamingAEADFailsIfKeyNotStreamingAEAD(t *testing.T) { function TestConfigV0StreamingAEAD (line 55) | func TestConfigV0StreamingAEAD(t *testing.T) { FILE: internal/ec/ec.go function BigIntBytesToFixedSizeBuffer (line 27) | func BigIntBytesToFixedSizeBuffer(bigIntBytes []byte, size int) ([]byte,... FILE: internal/ec/ec_test.go function TestBigIntBytesToFixedSizeBuffer (line 24) | func TestBigIntBytesToFixedSizeBuffer(t *testing.T) { function TestBigIntBytesToFixedSizeBuffer_FailsWhenInputTooLarge (line 68) | func TestBigIntBytesToFixedSizeBuffer_FailsWhenInputTooLarge(t *testing.... FILE: internal/internalapi/token.go type Token (line 20) | type Token struct FILE: internal/internalregistry/internal_registry.go type doNothingClient (line 34) | type doNothingClient struct method NewLogger (line 38) | func (c *doNothingClient) NewLogger(*monitoring.Context) (monitoring.L... function RegisterMonitoringClient (line 45) | func RegisterMonitoringClient(client monitoring.Client) error { function ClearMonitoringClient (line 56) | func ClearMonitoringClient() { function GetMonitoringClient (line 63) | func GetMonitoringClient() monitoring.Client { FILE: internal/internalregistry/internal_registry_test.go function TestRegisterMonitoringClient (line 24) | func TestRegisterMonitoringClient(t *testing.T) { function TestRegisterTwiceFailsMonitoringClient (line 38) | func TestRegisterTwiceFailsMonitoringClient(t *testing.T) { function TestDefaultMonitoringLogger (line 49) | func TestDefaultMonitoringLogger(t *testing.T) { function TestClearMonitoringClient (line 59) | func TestClearMonitoringClient(t *testing.T) { function TestClearReRegisterMonitoringClient (line 79) | func TestClearReRegisterMonitoringClient(t *testing.T) { FILE: internal/jwk/jwk.go type Ed25519SupportType (line 35) | type Ed25519SupportType constant Ed25519SupportNone (line 39) | Ed25519SupportNone Ed25519SupportType = iota constant Ed25519SupportTink (line 41) | Ed25519SupportTink function hasItem (line 44) | func hasItem(s *spb.Struct, name string) bool { function stringItem (line 52) | func stringItem(s *spb.Struct, name string) (string, error) { function listValue (line 68) | func listValue(s *spb.Struct, name string) (*spb.ListValue, error) { function expectStringItem (line 87) | func expectStringItem(s *spb.Struct, name, value string) error { function decodeItem (line 98) | func decodeItem(s *spb.Struct, name string) ([]byte, error) { function validateKeyOPSIsVerify (line 106) | func validateKeyOPSIsVerify(s *spb.Struct) error { function validateUseIsSig (line 127) | func validateUseIsSig(s *spb.Struct) error { function algorithmPrefix (line 134) | func algorithmPrefix(s *spb.Struct) (string, error) { function psPublicKeyDataFromStruct (line 145) | func psPublicKeyDataFromStruct(keyStruct *spb.Struct) (key.Key, error) { function rsPublicKeyDataFromStruct (line 195) | func rsPublicKeyDataFromStruct(keyStruct *spb.Struct) (key.Key, error) { type rsaPubKey (line 240) | type rsaPubKey struct function rsaPubKeyFromStruct (line 247) | func rsaPubKeyFromStruct(keyStruct *spb.Struct) (*rsaPubKey, error) { function esPublicKeyDataFromStruct (line 291) | func esPublicKeyDataFromStruct(keyStruct *spb.Struct) (key.Key, error) { function ed25519PublicKeyDataFromStruct (line 357) | func ed25519PublicKeyDataFromStruct(keyStruct *spb.Struct) (key.Key, err... function keysetKeyFromStruct (line 381) | func keysetKeyFromStruct(val *spb.Value, ed25519Support Ed25519SupportTy... function ToPublicKeysetHandle (line 419) | func ToPublicKeysetHandle(jwkSet []byte, ed25519Support Ed25519SupportTy... function addKeyOPSVerify (line 445) | func addKeyOPSVerify(s *spb.Struct) { function addStringEntry (line 449) | func addStringEntry(s *spb.Struct, key, val string) { function psPublicKeyToStruct (line 453) | func psPublicKeyToStruct(key *jwtrsassapss.PublicKey) (*spb.Struct, erro... function rsPublicKeyToStruct (line 478) | func rsPublicKeyToStruct(key *jwtrsassapkcs1.PublicKey) (*spb.Struct, er... function esPublicKeyToStruct (line 504) | func esPublicKeyToStruct(key *jwtecdsa.PublicKey) (*spb.Struct, error) { function ed25519PublicKeyToStruct (line 554) | func ed25519PublicKeyToStruct(key *ed25519.PublicKey, encodedKID *string... function setKeyID (line 572) | func setKeyID(outKey *spb.Struct, keyID uint32, hasIDRequirement bool, c... function FromPublicKeysetHandle (line 590) | func FromPublicKeysetHandle(kh *keyset.Handle, ed25519Support Ed25519Sup... function base64Encode (line 635) | func base64Encode(content []byte) string { function base64Decode (line 640) | func base64Decode(content string) ([]byte, error) { function isValidURLsafeBase64Char (line 649) | func isValidURLsafeBase64Char(c rune) bool { function keyIDToKID (line 655) | func keyIDToKID(keyID uint32) *string { FILE: internal/jwk/jwk_test.go function TestEd25519KeyConversion (line 26) | func TestEd25519KeyConversion(t *testing.T) { function TestEd25519KeyConversionNotSupported (line 74) | func TestEd25519KeyConversionNotSupported(t *testing.T) { FILE: internal/keygenregistry/keygenregistry.go function RegisterKeyCreator (line 39) | func RegisterKeyCreator[P key.Parameters](creator func(p key.Parameters,... function CreateKey (line 51) | func CreateKey(p key.Parameters, idRequirement uint32) (key.Key, error) { function UnregisterKeyCreator (line 64) | func UnregisterKeyCreator[P key.Parameters]() { FILE: internal/keygenregistry/keygenregistry_test.go type stubParams1 (line 25) | type stubParams1 struct method HasIDRequirement (line 27) | func (p *stubParams1) HasIDRequirement() bool { return true } method Equal (line 28) | func (p *stubParams1) Equal(other key.Parameters) bool { return true } type stubKey1 (line 30) | type stubKey1 struct method Parameters (line 32) | func (k *stubKey1) Parameters() key.Parameters { return &stubParams... method Equal (line 33) | func (k *stubKey1) Equal(other key.Key) bool { return true } method IDRequirement (line 34) | func (k *stubKey1) IDRequirement() (uint32, bool) { return 123, true } function stubKeyCreator1 (line 36) | func stubKeyCreator1(p key.Parameters, idRequirement uint32) (key.Key, e... type stubParams2 (line 40) | type stubParams2 struct method HasIDRequirement (line 42) | func (p *stubParams2) HasIDRequirement() bool { return false } method Equal (line 43) | func (p *stubParams2) Equal(other key.Parameters) bool { return true } type stubKey2 (line 45) | type stubKey2 struct method Parameters (line 47) | func (k *stubKey2) Parameters() key.Parameters { return nil } method Equal (line 48) | func (k *stubKey2) Equal(other key.Key) bool { return true } method IDRequirement (line 49) | func (k *stubKey2) IDRequirement() (uint32, bool) { return 123, true } function stubKeyCreator2 (line 51) | func stubKeyCreator2(p key.Parameters, idRequirement uint32) (key.Key, e... function TestRegisterKeyCreatorWorks (line 55) | func TestRegisterKeyCreatorWorks(t *testing.T) { function TestRegisterKeyCreatorFailsIfRegisteredTwice (line 81) | func TestRegisterKeyCreatorFailsIfRegisteredTwice(t *testing.T) { function TestCreateKeyFailsIfKeyCreatorIsNotRegistered (line 93) | func TestCreateKeyFailsIfKeyCreatorIsNotRegistered(t *testing.T) { function stubKeyCreatorFails (line 99) | func stubKeyCreatorFails(p key.Parameters, idRequirement uint32) (key.Ke... function TestCreateKeyFailsIfKeyCreatorFails (line 103) | func TestCreateKeyFailsIfKeyCreatorFails(t *testing.T) { FILE: internal/legacykeymanager/legacykeymanager.go type config (line 33) | type config interface type primitiveConstructor (line 37) | type primitiveConstructor type KeyManager (line 40) | type KeyManager struct method Primitive (line 62) | func (m *KeyManager) Primitive(serializedKey []byte) (any, error) { method NewKey (line 84) | func (m *KeyManager) NewKey(serializedKeyFormat []byte) (proto.Message... method DoesSupport (line 93) | func (m *KeyManager) DoesSupport(typeURL string) bool { return m.typeU... method TypeURL (line 96) | func (m *KeyManager) TypeURL() string { return m.typeURL } method NewKeyData (line 99) | func (m *KeyManager) NewKeyData(serializedKeyFormat []byte) (*tinkpb.K... function New (line 52) | func New(typeURL string, primitiveConstructor primitiveConstructor, keyM... type privateKey (line 120) | type privateKey interface type PrivateKeyManager (line 126) | type PrivateKeyManager struct method PublicKeyData (line 141) | func (m *PrivateKeyManager) PublicKeyData(serializedPrivKey []byte) (*... function NewPrivateKeyManager (line 133) | func NewPrivateKeyManager(typeURL string, primitiveConstructor primitive... FILE: internal/legacykeymanager/legacykeymanager_test.go constant fakeKeyTypeURL (line 35) | fakeKeyTypeURL = "type.googleapis.com/google.crypto.tink.FakeKey" function fakePrimitiveConstructor (line 42) | func fakePrimitiveConstructor(_ key.Key) (any, error) { type fakeKey (line 46) | type fakeKey struct method IDRequirement (line 50) | func (k *fakeKey) IDRequirement() (uint32, bool) { return 0, false } method Equal (line 51) | func (k *fakeKey) Equal(other key.Key) bool { return false } method Parameters (line 52) | func (k *fakeKey) Parameters() key.Parameters { return &fakeParamet... type fakeParameters (line 54) | type fakeParameters struct method HasIDRequirement (line 58) | func (p *fakeParameters) HasIDRequirement() bool { return fal... method Equal (line 59) | func (p *fakeParameters) Equal(other key.Parameters) bool { return fal... method KeyType (line 60) | func (p *fakeParameters) KeyType() string { return p.k... function TestDoesSupport (line 62) | func TestDoesSupport(t *testing.T) { function TestTypeURL (line 102) | func TestTypeURL(t *testing.T) { function TestPrimitive_Success (line 127) | func TestPrimitive_Success(t *testing.T) { type fakeKeyParser (line 158) | type fakeKeyParser struct method ParseKey (line 163) | func (p *fakeKeyParser) ParseKey(keySerialization *protoserialization.... type fakeKeySerializer (line 170) | type fakeKeySerializer struct method SerializeKey (line 175) | func (s *fakeKeySerializer) SerializeKey(key key.Key) (*protoserializa... type fakeParametersParser (line 182) | type fakeParametersParser struct method Parse (line 187) | func (p *fakeParametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) ... function failingPrimitiveConstructor (line 194) | func failingPrimitiveConstructor(_ key.Key) (any, error) { function TestPrimitive_FailsIfPrimitiveConstructorFails (line 198) | func TestPrimitive_FailsIfPrimitiveConstructorFails(t *testing.T) { function TestNewKeyAndNewKeyData_Success (line 229) | func TestNewKeyAndNewKeyData_Success(t *testing.T) { function TestNewKeyAndNewKeyData_FailsIfNoParametersParserRegistered (line 309) | func TestNewKeyAndNewKeyData_FailsIfNoParametersParserRegistered(t *test... function TestNewKeyAndNewKeyData_FailsIfParametersParserFails (line 351) | func TestNewKeyAndNewKeyData_FailsIfParametersParserFails(t *testing.T) { function TestNewKeyAndNewKeyData_FailsIfNoKeyCreatorRegistered (line 413) | func TestNewKeyAndNewKeyData_FailsIfNoKeyCreatorRegistered(t *testing.T) { function TestNewKeyAndNewKeyData_FailsIfKeyCreatorFails (line 464) | func TestNewKeyAndNewKeyData_FailsIfKeyCreatorFails(t *testing.T) { function TestNewKeyAndNewKeyData_FailsIfNoKeySerializerRegistered (line 522) | func TestNewKeyAndNewKeyData_FailsIfNoKeySerializerRegistered(t *testing... function TestNewKeyAndNewKeyData_FailsIfKeySerializerFails (line 574) | func TestNewKeyAndNewKeyData_FailsIfKeySerializerFails(t *testing.T) { function TestNewKey_FailsIfKeyMashallerFails (line 631) | func TestNewKey_FailsIfKeyMashallerFails(t *testing.T) { type fakePrivateKey (line 695) | type fakePrivateKey struct method IDRequirement (line 699) | func (k *fakePrivateKey) IDRequirement() (uint32, bool) { return 0, fa... method Equal (line 700) | func (k *fakePrivateKey) Equal(other key.Key) bool { return false } method Parameters (line 701) | func (k *fakePrivateKey) Parameters() key.Parameters { return &fake... method PublicKey (line 702) | func (k *fakePrivateKey) PublicKey() (key.Key, error) { return &fake... function TestPublicKeyData_Success (line 704) | func TestPublicKeyData_Success(t *testing.T) { function TestPublicKeyData_FailsIfNoKeyParserRegistered (line 736) | func TestPublicKeyData_FailsIfNoKeyParserRegistered(t *testing.T) { function TestPublicKeyData_FailsIfKeyNotPrivateKey (line 743) | func TestPublicKeyData_FailsIfKeyNotPrivateKey(t *testing.T) { function TestPublicKeyData_FailsIfNoPublicKeySerializerRegistered (line 766) | func TestPublicKeyData_FailsIfNoPublicKeySerializerRegistered(t *testing... FILE: internal/mac/aescmac/aescmac.go constant BlockSize (line 27) | BlockSize = aes.BlockSize constant mul (line 28) | mul = 0x87 constant pad (line 29) | pad = byte(0x80) type CMAC (line 33) | type CMAC struct method Compute (line 79) | func (c *CMAC) Compute(data []byte) []byte { method XOREndAndCompute (line 121) | func (c *CMAC) XOREndAndCompute(data, last []byte) ([]byte, error) { function mulByX (line 41) | func mulByX(block []byte) { function New (line 55) | func New(key []byte) (*CMAC, error) { FILE: internal/mac/aescmac/aescmac_test.go function TestNewWrongKeySize (line 31) | func TestNewWrongKeySize(t *testing.T) { function xorEnd (line 57) | func xorEnd(data, last []byte) []byte { function TestXOREndAndCompute (line 63) | func TestXOREndAndCompute(t *testing.T) { function TestXOREndAndComputeFailsWithInvalidInputs (line 83) | func TestXOREndAndComputeFailsWithInvalidInputs(t *testing.T) { function mustHexDecode (line 114) | func mustHexDecode(t *testing.T, s string) []byte { function TestVectorsRFC4493 (line 123) | func TestVectorsRFC4493(t *testing.T) { type macSuite (line 148) | type macSuite struct type macGroup (line 153) | type macGroup struct type macCase (line 161) | type macCase struct function TestAESCMACPRFWycheproofCases (line 168) | func TestAESCMACPRFWycheproofCases(t *testing.T) { FILE: internal/mac/hmac/hmac.go constant minKeySizeInBytes (line 29) | minKeySizeInBytes = uint32(16) constant minTagSizeInBytes (line 32) | minTagSizeInBytes = uint32(10) type HMAC (line 36) | type HMAC struct method ComputeMAC (line 79) | func (h *HMAC) ComputeMAC(data ...[]byte) ([]byte, error) { method VerifyMAC (line 95) | func (h *HMAC) VerifyMAC(mac []byte, data ...[]byte) error { function ValidateHMACParams (line 43) | func ValidateHMACParams(hash string, keySize uint32, tagSize uint32) err... function New (line 63) | func New(hashAlg string, key []byte, tagSize uint32) (*HMAC, error) { FILE: internal/mac/hmac/hmac_test.go function TestHMACBasic (line 64) | func TestHMACBasic(t *testing.T) { function TestNewHMACWithInvalidInput (line 86) | func TestNewHMACWithInvalidInput(t *testing.T) { function TestHMACWithNilHashFunc (line 117) | func TestHMACWithNilHashFunc(t *testing.T) { function TestHMAComputeVerifyWithNilInput (line 131) | func TestHMAComputeVerifyWithNilInput(t *testing.T) { function TestVerifyMACWithInvalidInput (line 145) | func TestVerifyMACWithInvalidInput(t *testing.T) { function TestHMACModification (line 161) | func TestHMACModification(t *testing.T) { function TestHMACTruncation (line 187) | func TestHMACTruncation(t *testing.T) { FILE: internal/monitoringutil/monitoring_util.go constant keytypeURLPrefix (line 28) | keytypeURLPrefix = "type.googleapis.com/google.crypto." type DoNothingLogger (line 31) | type DoNothingLogger struct method Log (line 36) | func (l *DoNothingLogger) Log(uint32, int) {} method LogFailure (line 39) | func (l *DoNothingLogger) LogFailure() {} method LogKeyExport (line 42) | func (l *DoNothingLogger) LogKeyExport(keyID uint32) {} function keyStatusFromProto (line 44) | func keyStatusFromProto(status tpb.KeyStatusType) (monitoring.KeyStatus,... function parseKeyTypeURL (line 60) | func parseKeyTypeURL(ktu string) string { function MonitoringKeysetInfoFromKeysetInfo (line 66) | func MonitoringKeysetInfoFromKeysetInfo(keysetInfo *tpb.KeysetInfo, anno... function KeysetInfoFromPrimitiveSet (line 89) | func KeysetInfoFromPrimitiveSet[T any](ps *primitiveset.PrimitiveSet[T])... FILE: internal/monitoringutil/monitoring_util_test.go function TestKeysetInfoFromPrimitiveSetWithNilPrimitiveSetFails (line 32) | func TestKeysetInfoFromPrimitiveSetWithNilPrimitiveSetFails(t *testing.T) { function validPrimitiveSet (line 38) | func validPrimitiveSet(t *testing.T) *primitiveset.PrimitiveSet[tink.AEA... function TestBaselinePrimitiveSet (line 58) | func TestBaselinePrimitiveSet(t *testing.T) { function TestKeysetInfoFromPrimitiveSetWithNoEntryFails (line 64) | func TestKeysetInfoFromPrimitiveSetWithNoEntryFails(t *testing.T) { function TestKeysetInfoFromPrimitiveSetWithNoPrimaryFails (line 72) | func TestKeysetInfoFromPrimitiveSetWithNoPrimaryFails(t *testing.T) { function TestKeysetInfoFromPrimitiveSet (line 80) | func TestKeysetInfoFromPrimitiveSet(t *testing.T) { function TestMonitoringKeysetInfoFromKeysetInfo_Nil (line 142) | func TestMonitoringKeysetInfoFromKeysetInfo_Nil(t *testing.T) { function TestMonitoringKeysetInfoFromKeysetInfo (line 148) | func TestMonitoringKeysetInfoFromKeysetInfo(t *testing.T) { FILE: internal/outputprefix/outputprefix.go constant nonRawPrefixSize (line 25) | nonRawPrefixSize = 5 constant legacyStartByte (line 27) | legacyStartByte = byte(0) constant tinkStartByte (line 29) | tinkStartByte = byte(1) function calculatePrefixBytes (line 36) | func calculatePrefixBytes(startByte byte, id uint32) []byte { function Tink (line 44) | func Tink(keyID uint32) []byte { return calculatePrefixBytes(tinkStartBy... function Legacy (line 47) | func Legacy(keyID uint32) []byte { return calculatePrefixBytes(legacySta... FILE: internal/outputprefix/outputprefix_test.go function TestTink (line 24) | func TestTink(t *testing.T) { function TestLegacy (line 31) | func TestLegacy(t *testing.T) { FILE: internal/prefixmap/prefixmap.go constant EmptyPrefix (line 26) | EmptyPrefix = "" type PrefixMap (line 30) | type PrefixMap struct function New (line 35) | func New[P any]() *PrefixMap[P] { type Iterator (line 49) | type Iterator struct method Next (line 56) | func (i *Iterator[P]) Next() (P, bool) { method PrimitivesMatchingPrefix (line 71) | func (m *PrefixMap[P]) PrimitivesMatchingPrefix(prefix []byte) *Iterator... method Insert (line 86) | func (m *PrefixMap[P]) Insert(prefix string, primitive P) error { FILE: internal/prefixmap/prefixmap_test.go function TestInsert_FailsWithInvalidPrefix (line 24) | func TestInsert_FailsWithInvalidPrefix(t *testing.T) { function TestPrimitivesMatchingPrefix_EmptyMap (line 34) | func TestPrimitivesMatchingPrefix_EmptyMap(t *testing.T) { function TestPrimitivesMatchingPrefix_NullOrEmptySlices (line 67) | func TestPrimitivesMatchingPrefix_NullOrEmptySlices(t *testing.T) { function TestPrimitivesMatchingPrefix (line 110) | func TestPrimitivesMatchingPrefix(t *testing.T) { FILE: internal/primitiveregistry/benchmark_test.go function BenchmarkPrimitive (line 29) | func BenchmarkPrimitive(b *testing.B) { FILE: internal/primitiveregistry/primitiveregistry.go type primitiveConstructor (line 31) | type primitiveConstructor function RegisterPrimitiveConstructor (line 35) | func RegisterPrimitiveConstructor[K key.Key](constructor primitiveConstr... function UnregisterPrimitiveConstructor (line 50) | func UnregisterPrimitiveConstructor[K key.Key]() { function Primitive (line 57) | func Primitive(key key.Key) (any, error) { FILE: internal/primitiveregistry/primitiveregistry_test.go type testParameters (line 26) | type testParameters struct method HasIDRequirement (line 31) | func (p *testParameters) HasIDRequirement() bool { method Equal (line 35) | func (p *testParameters) Equal(other key.Parameters) bool { type testKey (line 43) | type testKey struct method Parameters (line 49) | func (k *testKey) Parameters() key.Parameters { method IDRequirement (line 53) | func (k *testKey) IDRequirement() (uint32, bool) { method Equal (line 60) | func (k *testKey) Equal(other key.Key) bool { type testPrimitive (line 68) | type testPrimitive struct type anotherTestKey (line 72) | type anotherTestKey struct method Parameters (line 76) | func (k *anotherTestKey) Parameters() key.Parameters { method IDRequirement (line 80) | func (k *anotherTestKey) IDRequirement() (uint32, bool) { method Equal (line 84) | func (k *anotherTestKey) Equal(other key.Key) bool { function testPrimitiveConstructor (line 89) | func testPrimitiveConstructor(k key.Key) (any, error) { function TestRegisterPrimitiveConstructorAndPrimitive_Success (line 98) | func TestRegisterPrimitiveConstructorAndPrimitive_Success(t *testing.T) { function TestRegisterPrimitiveConstructor_SameConstructorTwiceIsNoOp (line 117) | func TestRegisterPrimitiveConstructor_SameConstructorTwiceIsNoOp(t *test... function TestRegisterPrimitiveConstructor_FailsIfDifferentConstructorRegistered (line 127) | func TestRegisterPrimitiveConstructor_FailsIfDifferentConstructorRegiste... function TestPrimitive_Fails (line 140) | func TestPrimitive_Fails(t *testing.T) { function TestUnregisterRemovesConstructor (line 162) | func TestUnregisterRemovesConstructor(t *testing.T) { FILE: internal/primitiveset/primitiveset.go type Entry (line 32) | type Entry struct method OutputPrefix (line 41) | func (e *Entry[T]) OutputPrefix() []byte { type PrimitiveSet (line 53) | type PrimitiveSet struct function New (line 68) | func New[T any]() *PrimitiveSet[T] { method RawEntries (line 78) | func (ps *PrimitiveSet[T]) RawEntries() ([]*Entry[T], error) { method EntriesForPrefix (line 83) | func (ps *PrimitiveSet[T]) EntriesForPrefix(prefix string) ([]*Entry[T],... type withOutputPrefix (line 91) | type withOutputPrefix interface function outputPrefix (line 95) | func outputPrefix(key key.Key) []byte { method Add (line 103) | func (ps *PrimitiveSet[T]) Add(e *Entry[T]) error { FILE: internal/primitiveset/primitiveset_test.go function TestPrimitvesetNew (line 32) | func TestPrimitvesetNew(t *testing.T) { type testKey (line 39) | type testKey struct function mustCreateAESGCMKey (line 50) | func mustCreateAESGCMKey(t *testing.T, variant aesgcm.Variant, keyID uin... function mustCreateChaCha20Poly1305Key (line 68) | func mustCreateChaCha20Poly1305Key(t *testing.T, variant chacha20poly130... function TestPrimitivesetAddAndEntriesInKeysetOrder (line 81) | func TestPrimitivesetAddAndEntriesInKeysetOrder(t *testing.T) { function TestPrimitivesetRawEntries (line 152) | func TestPrimitivesetRawEntries(t *testing.T) { type primitive (line 212) | type primitive struct function TestPrimitivesetPrefixedEntries (line 217) | func TestPrimitivesetPrefixedEntries(t *testing.T) { function TestAddWithInvalidInput (line 339) | func TestAddWithInvalidInput(t *testing.T) { FILE: internal/protoserialization/protoserialization.go type fallbackProtoKeyParams (line 45) | type fallbackProtoKeyParams struct method HasIDRequirement (line 49) | func (p *fallbackProtoKeyParams) HasIDRequirement() bool { return p.ha... method Equal (line 51) | func (p *fallbackProtoKeyParams) Equal(parameters key.Parameters) bool { type KeySerialization (line 57) | type KeySerialization struct method KeyData (line 78) | func (k *KeySerialization) KeyData() *tinkpb.KeyData { return k.keyData } method OutputPrefixType (line 81) | func (k *KeySerialization) OutputPrefixType() tinkpb.OutputPrefixType ... method HasIDRequirement (line 84) | func (k *KeySerialization) HasIDRequirement() bool { method IDRequirement (line 91) | func (k *KeySerialization) IDRequirement() (uint32, bool) { method Equal (line 96) | func (k *KeySerialization) Equal(other *KeySerialization) bool { method clone (line 103) | func (k *KeySerialization) clone() *KeySerialization { function NewKeySerialization (line 66) | func NewKeySerialization(keyData *tinkpb.KeyData, outputPrefixType tinkp... type FallbackProtoKey (line 117) | type FallbackProtoKey struct method Parameters (line 124) | func (k *FallbackProtoKey) Parameters() key.Parameters { return k.para... method Equal (line 127) | func (k *FallbackProtoKey) Equal(other key.Key) bool { method IDRequirement (line 134) | func (k *FallbackProtoKey) IDRequirement() (uint32, bool) { method OutputPrefix (line 139) | func (k *FallbackProtoKey) OutputPrefix() []byte { return bytes.Clone(... function calculateOutputPrefix (line 142) | func calculateOutputPrefix(outputPrefixType tinkpb.OutputPrefixType, key... function NewFallbackProtoKey (line 156) | func NewFallbackProtoKey(protoKeySerialization *KeySerialization) (*Fall... type FallbackProtoPrivateKey (line 172) | type FallbackProtoPrivateKey struct method Equal (line 179) | func (k *FallbackProtoPrivateKey) Equal(other key.Key) bool { method PublicKey (line 199) | func (k *FallbackProtoPrivateKey) PublicKey() (key.Key, error) { function NewFallbackProtoPrivateKey (line 185) | func NewFallbackProtoPrivateKey(protoKeySerialization *KeySerialization)... function GetKeySerialization (line 223) | func GetKeySerialization(fallbackProtoKey *FallbackProtoKey) *KeySeriali... type KeyParser (line 228) | type KeyParser interface type KeySerializer (line 235) | type KeySerializer interface type ParametersSerializer (line 242) | type ParametersSerializer interface type ParametersParser (line 249) | type ParametersParser interface function RegisterKeySerializer (line 257) | func RegisterKeySerializer[K key.Key](keySerializer KeySerializer) error { function RegisterParametersSerializer (line 272) | func RegisterParametersSerializer[P key.Parameters](parameterSerializer ... function RegisterParametersParser (line 287) | func RegisterParametersParser(keyTypeURL string, parameterParser Paramet... function SerializeKey (line 298) | func SerializeKey(key key.Key) (*KeySerialization, error) { function SerializeParameters (line 310) | func SerializeParameters(parameters key.Parameters) (*tinkpb.KeyTemplate... function RegisterKeyParser (line 327) | func RegisterKeyParser(keyTypeURL string, keyParser KeyParser) error { function ParseKey (line 340) | func ParseKey(keySerialization *KeySerialization) (key.Key, error) { function ParseParameters (line 356) | func ParseParameters(keyTemplate *tinkpb.KeyTemplate) (key.Parameters, e... type fallbackProtoKeySerializer (line 366) | type fallbackProtoKeySerializer struct method SerializeKey (line 368) | func (s *fallbackProtoKeySerializer) SerializeKey(key key.Key) (*KeySe... type fallbackProtoPrivateKeySerializer (line 378) | type fallbackProtoPrivateKeySerializer struct method SerializeKey (line 380) | func (s *fallbackProtoPrivateKeySerializer) SerializeKey(key key.Key) ... function UnregisterKeyParser (line 394) | func UnregisterKeyParser(keyTypeURL string) { function UnregisterKeySerializer (line 405) | func UnregisterKeySerializer[K key.Key]() { function ClearParametersSerializers (line 415) | func ClearParametersSerializers() { function UnregisterParametersParser (line 425) | func UnregisterParametersParser(keyTypeURL string) { function init (line 431) | func init() { FILE: internal/protoserialization/protoserialization_test.go constant testKeyURL (line 40) | testKeyURL = "test-key-url" constant testKeyURL2 (line 41) | testKeyURL2 = "test-key-url-2" function TestNewKeySerializationFailsIfIDRequirementIsSetButOutputPrefixTypeIsRAW (line 51) | func TestNewKeySerializationFailsIfIDRequirementIsSetButOutputPrefixType... function newKeySerialization (line 62) | func newKeySerialization(t *testing.T, keyData *tinkpb.KeyData, outputPr... function TestNewKeySerialization (line 71) | func TestNewKeySerialization(t *testing.T) { function TestKeySerializationEqual (line 130) | func TestKeySerializationEqual(t *testing.T) { function mustCreateFallbackProtoKey (line 230) | func mustCreateFallbackProtoKey(t *testing.T, keySerialization *protoser... function TestFallbackProtoKeyEqual (line 239) | func TestFallbackProtoKeyEqual(t *testing.T) { function TestFallbackProtoPrivateKeyEqual (line 290) | func TestFallbackProtoPrivateKeyEqual(t *testing.T) { function TestFallbackProtoKey_ParametersEqual (line 368) | func TestFallbackProtoKey_ParametersEqual(t *testing.T) { function TestFallbackProtoKey_ParametersNotEqual (line 405) | func TestFallbackProtoKey_ParametersNotEqual(t *testing.T) { function TestFallbackProtoKey_OutputPrefix (line 418) | func TestFallbackProtoKey_OutputPrefix(t *testing.T) { function TestFallbackProtoPrivateKey_OutputPrefix (line 462) | func TestFallbackProtoPrivateKey_OutputPrefix(t *testing.T) { function TestFallbackProtoKeyIDRequirement (line 506) | func TestFallbackProtoKeyIDRequirement(t *testing.T) { type testParams (line 544) | type testParams struct method HasIDRequirement (line 548) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 550) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 555) | type testKey struct method Parameters (line 561) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 563) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 571) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... type testParser (line 573) | type testParser struct method ParseKey (line 575) | func (p *testParser) ParseKey(keysetKey *protoserialization.KeySeriali... type testKeySerializer (line 581) | type testKeySerializer struct method SerializeKey (line 583) | func (s *testKeySerializer) SerializeKey(key key.Key) (*protoserializa... type testParamsSerializer (line 594) | type testParamsSerializer struct method Serialize (line 596) | func (s *testParamsSerializer) Serialize(params key.Parameters) (*tink... type testParamsParser (line 608) | type testParamsParser struct method Parse (line 610) | func (s *testParamsParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... function TestRegisterKeyParserFailsIfAlreadyRegistered (line 618) | func TestRegisterKeyParserFailsIfAlreadyRegistered(t *testing.T) { function TestParseKey (line 629) | func TestParseKey(t *testing.T) { function TestParseKeyReturnsFallbackIfNoParsersRegistered (line 659) | func TestParseKeyReturnsFallbackIfNoParsersRegistered(t *testing.T) { function TestParseKeyReturnsFallbackIfDifferentParserRegistered (line 686) | func TestParseKeyReturnsFallbackIfDifferentParserRegistered(t *testing.T) { type alwaysFailingKeyParser (line 708) | type alwaysFailingKeyParser struct method ParseKey (line 710) | func (p *alwaysFailingKeyParser) ParseKey(keysetKey *protoserializatio... function TestParseKeyFailsIfParserFails (line 716) | func TestParseKeyFailsIfParserFails(t *testing.T) { function TestRegisterKeySerializerAndSerializeKey (line 736) | func TestRegisterKeySerializerAndSerializeKey(t *testing.T) { function TestRegisterKeySerializerFailsIfAlreadyRegistered (line 759) | func TestRegisterKeySerializerFailsIfAlreadyRegistered(t *testing.T) { function TestSerializeKeyFailsIfNoSerializersRegistered (line 770) | func TestSerializeKeyFailsIfNoSerializersRegistered(t *testing.T) { function TestSerializeKeyWithFallbackKey (line 783) | func TestSerializeKeyWithFallbackKey(t *testing.T) { function TestSerializeKeyWithFallbackProtoPrivateKey (line 807) | func TestSerializeKeyWithFallbackProtoPrivateKey(t *testing.T) { function TestNewFallbackProtoPrivateKeyFailsIfNotAsymmetricPrivate (line 827) | func TestNewFallbackProtoPrivateKeyFailsIfNotAsymmetricPrivate(t *testin... function TestPublicKeyFailsIfUnsupportedKey (line 839) | func TestPublicKeyFailsIfUnsupportedKey(t *testing.T) { function TestPublicKeyFailsIfNotPrivateKeyManager (line 856) | func TestPublicKeyFailsIfNotPrivateKeyManager(t *testing.T) { function TestPublicKey (line 875) | func TestPublicKey(t *testing.T) { type alwaysFailingKeySerializer (line 958) | type alwaysFailingKeySerializer struct method SerializeKey (line 960) | func (s *alwaysFailingKeySerializer) SerializeKey(key key.Key) (*proto... function TestSerializeKeyFailsIfSerializeFails (line 966) | func TestSerializeKeyFailsIfSerializeFails(t *testing.T) { function TestRegisterParametersSerializerAndSerializeParameters (line 988) | func TestRegisterParametersSerializerAndSerializeParameters(t *testing.T) { function TestRegisterParametersSerializerFailsIfAlreadyRegistered (line 1008) | func TestRegisterParametersSerializerFailsIfAlreadyRegistered(t *testing... function TestSerializeParametersFailsIfNoSerializersRegistered (line 1019) | func TestSerializeParametersFailsIfNoSerializersRegistered(t *testing.T) { function TestSerializeParametersFailsIfNilParameters (line 1029) | func TestSerializeParametersFailsIfNilParameters(t *testing.T) { type alwaysFailingParametersSerializer (line 1036) | type alwaysFailingParametersSerializer struct method Serialize (line 1038) | func (s *alwaysFailingParametersSerializer) Serialize(params key.Param... function TestSerializeParametersFailsIfSerializerFails (line 1044) | func TestSerializeParametersFailsIfSerializerFails(t *testing.T) { function TestRegisterParametersParserAndParseParameters (line 1062) | func TestRegisterParametersParserAndParseParameters(t *testing.T) { function TestRegisterParametersParserFailsIfAlreadyRegistered (line 1084) | func TestRegisterParametersParserFailsIfAlreadyRegistered(t *testing.T) { function TestParseParametersFailsIfNoParserRegistered (line 1094) | func TestParseParametersFailsIfNoParserRegistered(t *testing.T) { type alwaysFailingParametersParser (line 1103) | type alwaysFailingParametersParser struct method Parse (line 1105) | func (s *alwaysFailingParametersParser) Parse(_ *tinkpb.KeyTemplate) (... function TestSerializeParametersFailsIfParserFails (line 1111) | func TestSerializeParametersFailsIfParserFails(t *testing.T) { FILE: internal/random/random.go function MustRand (line 23) | func MustRand(b []byte) { FILE: internal/registryconfig/legacyprimitive/legacyprimitive.go type LegacyPrimitive (line 21) | type LegacyPrimitive struct method Primitive (line 31) | func (l *LegacyPrimitive) Primitive() any { return l.primitive } function New (line 26) | func New(primitive any) LegacyPrimitive { FILE: internal/registryconfig/registry_config.go type RegistryConfig (line 31) | type RegistryConfig struct method PrimitiveFromKey (line 34) | func (c *RegistryConfig) PrimitiveFromKey(key key.Key, _ internalapi.T... FILE: internal/registryconfig/registry_config_test.go function TestPrimitiveFromKey (line 30) | func TestPrimitiveFromKey(t *testing.T) { function TestPrimitiveFromKeyErrors (line 50) | func TestPrimitiveFromKeyErrors(t *testing.T) { type stubPrimitive (line 73) | type stubPrimitive struct type stubKeyManager (line 74) | type stubKeyManager struct method Primitive (line 76) | func (km *stubKeyManager) Primitive(_ []byte) (any, error) ... method NewKey (line 77) | func (km *stubKeyManager) NewKey(_ []byte) (proto.Message, error) ... method DoesSupport (line 78) | func (km *stubKeyManager) DoesSupport(typeURL string) bool ... method TypeURL (line 79) | func (km *stubKeyManager) TypeURL() string ... method NewKeyData (line 80) | func (km *stubKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyData, error... type stubKey (line 82) | type stubKey struct method Parameters (line 84) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 85) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 86) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } FILE: internal/signature/compositemldsa/testing/test_vectors.go constant f4 (line 35) | f4 = 65537 constant hexMlDsa65PubForEd25519 (line 37) | hexMlDsa65PubForEd25519 = "9491ea15c863e26fa3c4ba30e00446cff560af06b4869... constant hexMlDsa65PrivSeedForEd25519 (line 38) | hexMlDsa65PrivSeedForEd25519 = "23a578205289555e65ddf567601cb4715fb593a7... constant hexMlDsa65Ed25519Pub (line 39) | hexMlDsa65Ed25519Pub = "42c814ea188183f83627b13c96303ae121c8dc1e1f1badfc... constant hexMlDsa65Ed25519Priv (line 40) | hexMlDsa65Ed25519Priv = "60e9741f5fb8a68b3c490b93e4aa0e5d82206ef3b8e2242... constant hexMlDsa65PubForEcdsaP256 (line 41) | hexMlDsa65PubForEcdsaP256 = "ad94f20981495292c5d759bef7faa40bbf030157336... constant hexMlDsa65PrivSeedForEcdsaP256 (line 42) | hexMlDsa65PrivSeedForEcdsaP256 = "6ec75c5aeb0b9b214dba608aafde387bc8be03... constant hexMlDsa65EcdsaP256PubX (line 43) | hexMlDsa65EcdsaP256PubX = "98824439f3da0225096afe049e8e6db7273c7be13cfa1... constant hexMlDsa65EcdsaP256PubY (line 44) | hexMlDsa65EcdsaP256PubY = "5aee5bf9e27efa148821f220442cb49a665326a465a8b... constant hexMlDsa65EcdsaP256Priv (line 45) | hexMlDsa65EcdsaP256Priv = "984397bcc439c060ef5109cce70b96dd735a33d0ee53a... constant hexMlDsa65PubForEcdsaP384 (line 46) | hexMlDsa65PubForEcdsaP384 = "b5d1b08ce906155049da99be0a94d8b36c1e0827d95... constant hexMlDsa65PrivSeedForEcdsaP384 (line 47) | hexMlDsa65PrivSeedForEcdsaP384 = "181cd9546ae00ad8cd77b16d373a319b35d511... constant hexMlDsa65EcdsaP384PubX (line 48) | hexMlDsa65EcdsaP384PubX = "3b99628699473ab2da34a38e3761f514ce695c10feabc... constant hexMlDsa65EcdsaP384PubY (line 49) | hexMlDsa65EcdsaP384PubY = "5c9ef3e43c864a9167ffaa9324ed0a0898bf31d4567aa... constant hexMlDsa65EcdsaP384Priv (line 50) | hexMlDsa65EcdsaP384Priv = "1e08a044df2eb208a3670651abd5e8d30bb969e6ae620... constant hexMlDsa65PubForRsa3072Pss (line 51) | hexMlDsa65PubForRsa3072Pss = "843a239b195fac960db9a763afa1f3e4e4c5178626... constant hexMlDsa65PrivSeedForRsa3072Pss (line 52) | hexMlDsa65PrivSeedForRsa3072Pss = "01c4d64f4bc0a3956d1d30669b85558d5c197... constant hexMlDsa65Rsa3072PssN (line 53) | hexMlDsa65Rsa3072PssN = "00b7020ee94951cd84ff89399830948369e0b2ad71f5541... constant hexMlDsa65Rsa3072PssD (line 54) | hexMlDsa65Rsa3072PssD = "25111ba8109baafed72b1a29431db1884e64a250c499e74... constant hexMlDsa65Rsa3072PssP (line 55) | hexMlDsa65Rsa3072PssP = "e019eb2e335eb3876f2d6fff68cde6698e8621cb81e678e... constant hexMlDsa65Rsa3072PssQ (line 56) | hexMlDsa65Rsa3072PssQ = "d10ebbe7a2fbacdc4b06f36589a5226e9ba99cfeb12ed0e... constant hexMlDsa65Rsa3072PssDp (line 57) | hexMlDsa65Rsa3072PssDp = "0a4ae6744ec3b0b72db2068cd281726db2b0126948640f... constant hexMlDsa65Rsa3072PssDq (line 58) | hexMlDsa65Rsa3072PssDq = "5ff8c99e6f1de69f42fa2fe69f27e604ad05528341c7e2... constant hexMlDsa65Rsa3072PssQinv (line 59) | hexMlDsa65Rsa3072PssQinv = "4fbb3f04efd3293ebd8d4fc7b8f446d78adada6e7dc7... constant hexMlDsa65PubForRsa4096Pss (line 60) | hexMlDsa65PubForRsa4096Pss = "6f2f8658d2212b1267eeb8deef074f6a1e7aa9ac24... constant hexMlDsa65PrivSeedForRsa4096Pss (line 61) | hexMlDsa65PrivSeedForRsa4096Pss = "c4795a90094568a7b97cf93d6d2c0f229248e... constant hexMlDsa65Rsa4096PssN (line 62) | hexMlDsa65Rsa4096PssN = "c282d5a772d2c739a825536df6d88f645947501deea2ab6... constant hexMlDsa65Rsa4096PssD (line 63) | hexMlDsa65Rsa4096PssD = "492df11509219cdba7d3b7324173136ba51d2bdabf0bcb6... constant hexMlDsa65Rsa4096PssP (line 64) | hexMlDsa65Rsa4096PssP = "f61dcff7210f3e6f6b117688096095bf0007a1a6eaad3a0... constant hexMlDsa65Rsa4096PssQ (line 65) | hexMlDsa65Rsa4096PssQ = "ca527ee81f6a8fdf3501ffb9e09e2ee278aa79a355c8ee9... constant hexMlDsa65Rsa4096PssDp (line 66) | hexMlDsa65Rsa4096PssDp = "eacd2e671b072c0da81c14f55bdce5803f4b0891f23a29... constant hexMlDsa65Rsa4096PssDq (line 67) | hexMlDsa65Rsa4096PssDq = "5c74f893a10fb4719f2aabaf48cb60c793b6ebe14d6986... constant hexMlDsa65Rsa4096PssQinv (line 68) | hexMlDsa65Rsa4096PssQinv = "1c79a187c6231f0b683813dcba666b8b15395d93cfb0... constant hexMlDsa65PubForRsa3072Pkcs1 (line 69) | hexMlDsa65PubForRsa3072Pkcs1 = "9d718a15cfb0eddd7132acfaa636be80592305d7... constant hexMlDsa65PrivSeedForRsa3072Pkcs1 (line 70) | hexMlDsa65PrivSeedForRsa3072Pkcs1 = "b65e5ba11eb7a95ae888d146e2282bbfe2f... constant hexMlDsa65Rsa3072Pkcs1N (line 71) | hexMlDsa65Rsa3072Pkcs1N = "8e392ce848552adc9347048be9f11c049c53288da1b51... constant hexMlDsa65Rsa3072Pkcs1D (line 72) | hexMlDsa65Rsa3072Pkcs1D = "21ef2874dfd55a5db8d248166e2236522f4e742d9ef8c... constant hexMlDsa65Rsa3072Pkcs1P (line 73) | hexMlDsa65Rsa3072Pkcs1P = "bef37b65efd7508d0521327bd87a1a7ce7a2ad36b5e86... constant hexMlDsa65Rsa3072Pkcs1Q (line 74) | hexMlDsa65Rsa3072Pkcs1Q = "beac3aa19f34ae1b381736531d51173356b122279ee0e... constant hexMlDsa65Rsa3072Pkcs1Dp (line 75) | hexMlDsa65Rsa3072Pkcs1Dp = "b9f3884ebba2d5798eee46285ea681d6f307f3605d03... constant hexMlDsa65Rsa3072Pkcs1Dq (line 76) | hexMlDsa65Rsa3072Pkcs1Dq = "57794804b1b74750b170e4b948afd506f6749908b838... constant hexMlDsa65Rsa3072Pkcs1Qinv (line 77) | hexMlDsa65Rsa3072Pkcs1Qinv = "9122a88128ecfe66b0363c945f89b175ad82e832b3... constant hexMlDsa65PubForRsa4096Pkcs1 (line 78) | hexMlDsa65PubForRsa4096Pkcs1 = "f1b9e9575c48f9db5f66b88ff6a7b70995b63bdf... constant hexMlDsa65PrivSeedForRsa4096Pkcs1 (line 79) | hexMlDsa65PrivSeedForRsa4096Pkcs1 = "fc6be06103ac3c4b6638f4bd75a919df01f... constant hexMlDsa65Rsa4096Pkcs1N (line 80) | hexMlDsa65Rsa4096Pkcs1N = "b5862e597195ea861a86885d21ee5e26443b07add4e8e... constant hexMlDsa65Rsa4096Pkcs1D (line 81) | hexMlDsa65Rsa4096Pkcs1D = "3a98af72910f7f4ebdd64ac3a195e44f7efbfd2d188af... constant hexMlDsa65Rsa4096Pkcs1P (line 82) | hexMlDsa65Rsa4096Pkcs1P = "dd6c93928a6c22fdc74084a990cd566f6792d05928407... constant hexMlDsa65Rsa4096Pkcs1Q (line 83) | hexMlDsa65Rsa4096Pkcs1Q = "d1de9a980e2bcc2bf238f577d2da5cf1cb772b6f22894... constant hexMlDsa65Rsa4096Pkcs1Dp (line 84) | hexMlDsa65Rsa4096Pkcs1Dp = "3a16a6ec55c622b3e316e8f6b717376ac8883a82794d... constant hexMlDsa65Rsa4096Pkcs1Dq (line 85) | hexMlDsa65Rsa4096Pkcs1Dq = "47aae8c7fc2ee0ae312d5a45ecef3cc6256130a7e6f7... constant hexMlDsa65Rsa4096Pkcs1Qinv (line 86) | hexMlDsa65Rsa4096Pkcs1Qinv = "4067ae8f16440fb321a51429d31d688f9ba6d88fc4... constant hexMlDsa87PubForEcdsaP384 (line 87) | hexMlDsa87PubForEcdsaP384 = "549de643b930a7355321ff63321de9448d72f9b6943... constant hexMlDsa87PrivSeedForEcdsaP384 (line 88) | hexMlDsa87PrivSeedForEcdsaP384 = "c820546550a403a52225825d612f205ec45012... constant hexMlDsa87EcdsaP384PubX (line 89) | hexMlDsa87EcdsaP384PubX = "f2cf94fb86cf326b32ba08096b20e49c4224e5407a6a3... constant hexMlDsa87EcdsaP384PubY (line 90) | hexMlDsa87EcdsaP384PubY = "950d89061ef6b235e21320ac266dd348a4131f80cce50... constant hexMlDsa87EcdsaP384Priv (line 91) | hexMlDsa87EcdsaP384Priv = "482985a168faf19aff28218f87f5bdc90c22bf4fd26b4... constant hexMlDsa87PubForEcdsaP521 (line 92) | hexMlDsa87PubForEcdsaP521 = "46ade57dd9c7cd72099968295aa531cc55027ceec79... constant hexMlDsa87PrivSeedForEcdsaP521 (line 93) | hexMlDsa87PrivSeedForEcdsaP521 = "8ba5974586f76d98188f26530244f318e1b747... constant hexMlDsa87EcdsaP521PubX (line 94) | hexMlDsa87EcdsaP521PubX = "00bd3bf6d2a36a0ec63b2d95ba42d7638cba1167fd143... constant hexMlDsa87EcdsaP521PubY (line 95) | hexMlDsa87EcdsaP521PubY = "01846dfc74df3fbc1e81cd3c76785e1879c5821048e5b... constant hexMlDsa87EcdsaP521Priv (line 96) | hexMlDsa87EcdsaP521Priv = "00f57f902c9a94916949615399247b8a7913170935e4e... constant hexMlDsa87PubForRsa3072Pss (line 97) | hexMlDsa87PubForRsa3072Pss = "c8d67ce17d1b6e2d42a58cde67ca5559bedffd8071... constant hexMlDsa87PrivSeedForRsa3072Pss (line 98) | hexMlDsa87PrivSeedForRsa3072Pss = "162acb431e3deb0d736946540f843dffbb14b... constant hexMlDsa87Rsa3072PssN (line 99) | hexMlDsa87Rsa3072PssN = "e357cd609383ce1b20b72540fd9c5989e4eeabe4cbb8aff... constant hexMlDsa87Rsa3072PssD (line 100) | hexMlDsa87Rsa3072PssD = "50e6fc053439a16cf1f57ae267ddedd72e8ae8cce0da767... constant hexMlDsa87Rsa3072PssP (line 101) | hexMlDsa87Rsa3072PssP = "f62113948ef5473cbac4dd7121a3db15bcdfe93c263eb88... constant hexMlDsa87Rsa3072PssQ (line 102) | hexMlDsa87Rsa3072PssQ = "ec75daa3d33d7ccc713e3d596c8af269f5c6362f1c7f43e... constant hexMlDsa87Rsa3072PssDp (line 103) | hexMlDsa87Rsa3072PssDp = "7f53471cd003a5118e90eef96a6ca8968b39ce1f56ad95... constant hexMlDsa87Rsa3072PssDq (line 104) | hexMlDsa87Rsa3072PssDq = "234112fef7e0a3f9ab2c9762fcbede9393b420a1f782b5... constant hexMlDsa87Rsa3072PssQinv (line 105) | hexMlDsa87Rsa3072PssQinv = "9999c3511238dcf6a94294104e696c97e3ab8e565301... constant hexMlDsa87PubForRsa4096Pss (line 106) | hexMlDsa87PubForRsa4096Pss = "acf0712ca13a12ff8b8b249d0ead8aa974215b67ad... constant hexMlDsa87PrivSeedForRsa4096Pss (line 107) | hexMlDsa87PrivSeedForRsa4096Pss = "78313380f340b18d1a17d58579335b6460701... constant hexMlDsa87Rsa4096PssN (line 108) | hexMlDsa87Rsa4096PssN = "b303407b756bc67861684ce02b80af8ddf380d24352e4d6... constant hexMlDsa87Rsa4096PssD (line 109) | hexMlDsa87Rsa4096PssD = "327e20d29200c7d70db6a33479e0cee3c80a21decc2756c... constant hexMlDsa87Rsa4096PssP (line 110) | hexMlDsa87Rsa4096PssP = "f7f3bb2cd2a1ca2c9e64fa3ff3d88ae1366f28beb47f4d9... constant hexMlDsa87Rsa4096PssQ (line 111) | hexMlDsa87Rsa4096PssQ = "b8d2b198fe1eb7b17b6fa395a16d64815cb2a65ddf944ca... constant hexMlDsa87Rsa4096PssDp (line 112) | hexMlDsa87Rsa4096PssDp = "8d2696db415d10f6ad84d66129b38ffbfd3cf278fdcfaa... constant hexMlDsa87Rsa4096PssDq (line 113) | hexMlDsa87Rsa4096PssDq = "7960e581b4623801372f7a1f2a84cd1ca7e42b9e3ad70a... constant hexMlDsa87Rsa4096PssQinv (line 114) | hexMlDsa87Rsa4096PssQinv = "07e555d6183a10d52c726281f08427520985902aaf17... function CreatePrivateKeyDeterministic (line 118) | func CreatePrivateKeyDeterministic(t *testing.T, mlDSAInstanceInt compos... function CreatePublicKeyDeterministic (line 237) | func CreatePublicKeyDeterministic(t *testing.T, mlDSAInstance compositem... function mustHexDecode (line 248) | func mustHexDecode(t *testing.T, s string) []byte { function mustSecretBytes (line 257) | func mustSecretBytes(t *testing.T, s string) secretdata.Bytes { function GenerateMLDSAKeyPair (line 263) | func GenerateMLDSAKeyPair(t *testing.T, instanceInt compositemldsa.MLDSA... function GenerateClassicalKeyPair (line 292) | func GenerateClassicalKeyPair(t *testing.T, classicalAlgorithmInt compos... function CreatePrivateKeyRandom (line 318) | func CreatePrivateKeyRandom(t *testing.T, mlDSAInstance compositemldsa.M... type TestParameter (line 331) | type TestParameter struct function mustParams (line 338) | func mustParams(t *testing.T, algo compositemldsa.ClassicalAlgorithm) ke... function TestCasesSupportedParameters (line 348) | func TestCasesSupportedParameters(t *testing.T) []TestParameter { FILE: internal/signature/compositemldsa/util.go type MLDSAInstance (line 32) | type MLDSAInstance constant UnknownInstance (line 36) | UnknownInstance MLDSAInstance = iota constant MLDSA65 (line 38) | MLDSA65 constant MLDSA87 (line 40) | MLDSA87 type ClassicalAlgorithm (line 44) | type ClassicalAlgorithm constant UnknownAlgorithm (line 48) | UnknownAlgorithm ClassicalAlgorithm = iota constant Ed25519 (line 50) | Ed25519 constant ECDSAP256 (line 52) | ECDSAP256 constant ECDSAP384 (line 54) | ECDSAP384 constant ECDSAP521 (line 56) | ECDSAP521 constant RSA3072PSS (line 58) | RSA3072PSS constant RSA4096PSS (line 60) | RSA4096PSS constant RSA3072PKCS1 (line 62) | RSA3072PKCS1 constant RSA4096PKCS1 (line 64) | RSA4096PKCS1 type Variant (line 68) | type Variant constant UnknownVariant (line 72) | UnknownVariant Variant = iota constant VariantTink (line 74) | VariantTink constant VariantNoPrefix (line 76) | VariantNoPrefix function ComputeLabel (line 80) | func ComputeLabel(mlDSAInstance MLDSAInstance, classicalAlgorithm Classi... function ComputeMessagePrime (line 117) | func ComputeMessagePrime(label string, message []byte) []byte { function ParametersForClassicalAlgorithm (line 126) | func ParametersForClassicalAlgorithm(classicalAlgorithm ClassicalAlgorit... function ParametersForMLDSA (line 166) | func ParametersForMLDSA(mlDSAInstance MLDSAInstance) (*mldsa.Parameters,... FILE: internal/signature/compositemldsa/util_test.go function TestCompositeMLDSALabel (line 25) | func TestCompositeMLDSALabel(t *testing.T) { function TestComputeCompositeMLDSAMessagePrime (line 75) | func TestComputeCompositeMLDSAMessagePrime(t *testing.T) { FILE: internal/signature/ecdsa/encoding.go type Signature (line 27) | type Signature struct function ASN1Encode (line 32) | func ASN1Encode(s *Signature) ([]byte, error) { function ASN1Decode (line 49) | func ASN1Decode(b []byte) (*Signature, error) { function ieeeSignatureSize (line 67) | func ieeeSignatureSize(curveName string) (int, error) { function IEEEP1363Encode (line 81) | func IEEEP1363Encode(sig *Signature, curveName string) ([]byte, error) { function IEEEP1363Decode (line 98) | func IEEEP1363Decode(encodedBytes []byte) (*Signature, error) { FILE: internal/signature/ecdsa/encoding_test.go function hexToBytes (line 28) | func hexToBytes(t *testing.T, h string) []byte { function TestASN1Encode (line 37) | func TestASN1Encode(t *testing.T) { function TestASN1EncodeFails (line 82) | func TestASN1EncodeFails(t *testing.T) { function TestASN1Decode (line 89) | func TestASN1Decode(t *testing.T) { function TestASN1DecodeFails (line 107) | func TestASN1DecodeFails(t *testing.T) { function TestIEEEP1363Encode (line 113) | func TestIEEEP1363Encode(t *testing.T) { function TestIEEEP1363EncodeFails (line 160) | func TestIEEEP1363EncodeFails(t *testing.T) { function TestIEEEP1363Decode (line 195) | func TestIEEEP1363Decode(t *testing.T) { function TestIEEEP1363DecodeFails (line 236) | func TestIEEEP1363DecodeFails(t *testing.T) { FILE: internal/signature/mldsa/algebra.go type rZq (line 24) | type rZq method reduceOnce (line 52) | func (a rZq) reduceOnce() rZq { method add (line 62) | func (a rZq) add(b rZq) rZq { method sub (line 66) | func (a rZq) sub(b rZq) rZq { method neg (line 70) | func (a rZq) neg() rZq { method mul (line 75) | func (a rZq) mul(b rZq) rZq { method power2Round (line 97) | func (a rZq) power2Round() (rZq, rZq) { method scalePower2 (line 104) | func (a rZq) scalePower2() rZq { method decompose (line 127) | func (a rZq) decompose(gamma2 uint32) (rZq, rZq) { method highBits (line 144) | func (a rZq) highBits(gamma2 uint32) rZq { method lowBits (line 150) | func (a rZq) lowBits(gamma2 uint32) rZq { method makeHint (line 159) | func (a rZq) makeHint(gamma2 uint32, r rZq) rZq { method useHint (line 169) | func (a rZq) useHint(gamma2 uint32, h rZq) rZq { method centeredAbs (line 195) | func (a rZq) centeredAbs() uint32 { method centeredMax (line 217) | func (a rZq) centeredMax(b rZq) rZq { function divBy2Gamma2 (line 113) | func divBy2Gamma2(a, gamma2 uint32) uint32 { type poly (line 230) | type poly method add (line 232) | func (p *poly) add(q *poly) *poly { method neg (line 240) | func (p *poly) neg() *poly { method sub (line 248) | func (p *poly) sub(q *poly) *poly { method subFrom (line 256) | func (p *poly) subFrom(a rZq) *poly { method scalePower2 (line 264) | func (p *poly) scalePower2() *poly { method highBits (line 272) | func (p *poly) highBits(gamma2 uint32) *poly { method lowBits (line 280) | func (p *poly) lowBits(gamma2 uint32) *poly { method makeHint (line 288) | func (p *poly) makeHint(gamma2 uint32, z *poly) *poly { method useHint (line 296) | func (p *poly) useHint(gamma2 uint32, h *poly) *poly { method infinityNorm (line 304) | func (p *poly) infinityNorm() uint32 { method ntt (line 350) | func (p *poly) ntt() *polyNTT { type polyNTT (line 313) | type polyNTT method add (line 316) | func (p *polyNTT) add(q *polyNTT) *polyNTT { method sub (line 324) | func (p *polyNTT) sub(q *polyNTT) *polyNTT { method subFrom (line 332) | func (p *polyNTT) subFrom(a rZq) *polyNTT { method mul (line 341) | func (p *polyNTT) mul(q *polyNTT) *polyNTT { method intt (line 375) | func (p *polyNTT) intt() *poly { method scalarMul (line 537) | func (p *polyNTT) scalarMul(v vectorNTT) vectorNTT { type vector (line 403) | type vector method add (line 413) | func (v vector) add(w vector) vector { method neg (line 421) | func (v vector) neg() vector { method sub (line 429) | func (v vector) sub(w vector) vector { method ntt (line 437) | func (v vector) ntt() vectorNTT { method power2Round (line 445) | func (v vector) power2Round() (vector, vector) { method scalePower2 (line 458) | func (v vector) scalePower2() vector { method highBits (line 466) | func (v vector) highBits(gamma2 uint32) vector { method lowBits (line 474) | func (v vector) lowBits(gamma2 uint32) vector { method makeHint (line 482) | func (v vector) makeHint(gamma2 uint32, z vector) vector { method useHint (line 490) | func (v vector) useHint(gamma2 uint32, z vector) vector { method infinityNorm (line 498) | func (v vector) infinityNorm() uint32 { method numOnes (line 508) | func (v vector) numOnes() int { function makeZeroVector (line 405) | func makeZeroVector(dim int) vector { type vectorNTT (line 519) | type vectorNTT method sub (line 529) | func (v vectorNTT) sub(w vectorNTT) vectorNTT { method intt (line 545) | func (v vectorNTT) intt() vector { function makeZeroVectorNTT (line 521) | func makeZeroVectorNTT(dim int) vectorNTT { type matrixNTT (line 554) | type matrixNTT method mul (line 564) | func (m matrixNTT) mul(v vectorNTT) vectorNTT { function makeZeroMatrixNTT (line 556) | func makeZeroMatrixNTT(dimK, dimL int) matrixNTT { FILE: internal/signature/mldsa/algebra_test.go constant numTestValues (line 25) | numTestValues = 10000 function TestReduceOnce (line 33) | func TestReduceOnce(t *testing.T) { function TestAdd (line 43) | func TestAdd(t *testing.T) { function TestNeg (line 55) | func TestNeg(t *testing.T) { function TestSub (line 65) | func TestSub(t *testing.T) { function TestMul (line 77) | func TestMul(t *testing.T) { function TestPower2Round (line 93) | func TestPower2Round(t *testing.T) { function TestDivBy2Gamma2 (line 104) | func TestDivBy2Gamma2(t *testing.T) { function TestDecompose (line 116) | func TestDecompose(t *testing.T) { function TestUseHint (line 129) | func TestUseHint(t *testing.T) { function TestCenteredAbs (line 163) | func TestCenteredAbs(t *testing.T) { function TestCenteredMax (line 177) | func TestCenteredMax(t *testing.T) { function randomPoly (line 192) | func randomPoly() *poly { function TestInfinityNormMax (line 200) | func TestInfinityNormMax(t *testing.T) { function comparePoly (line 212) | func comparePoly(p, q *poly) bool { function TestNttInverseNtt (line 224) | func TestNttInverseNtt(t *testing.T) { function TestNumOnes (line 235) | func TestNumOnes(t *testing.T) { FILE: internal/signature/mldsa/cctv_test.go function TestCCTVAccumulated (line 37) | func TestCCTVAccumulated(t *testing.T) { function runCCTVAccumulated (line 59) | func runCCTVAccumulated(par *params, iterations int) string { function TestCCTVFieldOps (line 84) | func TestCCTVFieldOps(t *testing.T) { function centeredMod (line 139) | func centeredMod(a rZq) int64 { FILE: internal/signature/mldsa/marshal.go method simpleBitPack (line 32) | func (p *poly) simpleBitPack(bits int) []byte { method bitPack (line 46) | func (p *poly) bitPack(a rZq, bits int) []byte { method simpleBitPack (line 51) | func (p *polyNTT) simpleBitPack(bits int) []byte { method bitPack (line 65) | func (p *polyNTT) bitPack(a rZq, bits int) []byte { function simpleBitUnpackPoly (line 70) | func simpleBitUnpackPoly(encoded []byte, bits int) *poly { function bitUnpackPoly (line 84) | func bitUnpackPoly(encoded []byte, a rZq, bits int) *poly { function simpleBitUnpackPolyNTT (line 89) | func simpleBitUnpackPolyNTT(encoded []byte, bits int) *polyNTT { function bitUnpackPolyNTT (line 103) | func bitUnpackPolyNTT(encoded []byte, a rZq, bits int) *polyNTT { method hintBitPack (line 108) | func (v vector) hintBitPack(par *params) []byte { method hintBitUnpackVector (line 124) | func (par *params) hintBitUnpackVector(encoded []byte) (vector, error) { method Encode (line 150) | func (pk *PublicKey) Encode() []byte { method PublicKeyLength (line 160) | func (par *params) PublicKeyLength() int { method DecodePublicKey (line 165) | func (par *params) DecodePublicKey(pkEnc []byte) (*PublicKey, error) { method Encode (line 183) | func (sk *SecretKey) Encode() []byte { method SecretKeyLength (line 202) | func (par *params) SecretKeyLength() int { method DecodeSecretKey (line 207) | func (par *params) DecodeSecretKey(skEnc []byte) (*SecretKey, error) { method sigEncode (line 237) | func (par *params) sigEncode(c []byte, z vector, h vector) []byte { method sigDecode (line 247) | func (par *params) sigDecode(sigma []byte) ([]byte, vector, vector, erro... method w1Encode (line 267) | func (par *params) w1Encode(w1 vector) []byte { FILE: internal/signature/mldsa/marshal_test.go function randomPolyN (line 24) | func randomPolyN(n int) *poly { function TestPolySimpleBitPackUnpack (line 32) | func TestPolySimpleBitPackUnpack(t *testing.T) { function TestPolyBitPackUnpack (line 44) | func TestPolyBitPackUnpack(t *testing.T) { function randomVectorHint (line 58) | func randomVectorHint(par *params, numOnes int) vector { function compareVector (line 78) | func compareVector(u, v vector) bool { function TestVectorHintBitPackUnpack (line 90) | func TestVectorHintBitPackUnpack(t *testing.T) { function onesVectorHint (line 113) | func onesVectorHint(par *params, wantNumOnes int) vector { function TestHintBitUnpackOverflowVectorFails (line 129) | func TestHintBitUnpackOverflowVectorFails(t *testing.T) { function TestHintBitUnpackInvalidPaddingVectorFails (line 147) | func TestHintBitUnpackInvalidPaddingVectorFails(t *testing.T) { function comparePublicKey (line 167) | func comparePublicKey(u, v *PublicKey) bool { function compareSecretKey (line 174) | func compareSecretKey(u, v *SecretKey) bool { function TestKeyEncodeDecode (line 184) | func TestKeyEncodeDecode(t *testing.T) { FILE: internal/signature/mldsa/mldsa.go constant q (line 31) | q = 8380417 constant qBits (line 33) | qBits = 23 constant zeta (line 35) | zeta = 1753 constant inv256 (line 37) | inv256 = 8347681 constant degree (line 39) | degree = 256 constant d (line 42) | d = 13 constant SecretKeySeedSize (line 45) | SecretKeySeedSize = 32 type params (line 48) | type params struct method expandA (line 142) | func (par *params) expandA(rho [32]byte) matrixNTT { method expandS (line 157) | func (par *params) expandS(rho [64]byte) (vector, vector) { method expandMask (line 176) | func (par *params) expandMask(rho [64]byte, mu int) vector { method keyGenInternal (line 191) | func (par *params) keyGenInternal(seed [SecretKeySeedSize]byte) (*Publ... method KeyGen (line 276) | func (par *params) KeyGen() (*PublicKey, *SecretKey) { method KeyGenFromSeed (line 283) | func (par *params) KeyGenFromSeed(seed [SecretKeySeedSize]byte) (*Publ... type paramsOpts (line 63) | type paramsOpts struct function newParams (line 74) | func newParams(par paramsOpts) *params { type PublicKey (line 118) | type PublicKey struct method verifyInternalWithMu (line 240) | func (pk *PublicKey) verifyInternalWithMu(mu [64]byte, sigma []byte) e... method verifyInternal (line 269) | func (pk *PublicKey) verifyInternal(Mp []byte, sigma []byte) error { method VerifyWithMu (line 329) | func (pk *PublicKey) VerifyWithMu(mu [64]byte, sigma []byte) error { method Verify (line 335) | func (pk *PublicKey) Verify(M []byte, sigma []byte, ctx []byte) error { type SecretKey (line 128) | type SecretKey struct method signInternalWithMu (line 209) | func (sk *SecretKey) signInternalWithMu(mu [64]byte, rnd [32]byte) []b... method signInternal (line 262) | func (sk *SecretKey) signInternal(Mp []byte, rnd [32]byte) []byte { method Seed (line 291) | func (sk *SecretKey) Seed() *[SecretKeySeedSize]byte { method SignWithMu (line 296) | func (sk *SecretKey) SignWithMu(mu [64]byte) []byte { method SignDeterministicWithMu (line 303) | func (sk *SecretKey) SignDeterministicWithMu(mu [64]byte) []byte { method Sign (line 309) | func (sk *SecretKey) Sign(M []byte, ctx []byte) ([]byte, error) { method SignDeterministic (line 319) | func (sk *SecretKey) SignDeterministic(M []byte, ctx []byte) ([]byte, ... FILE: internal/signature/mldsa/mldsa_benchmark_test.go constant benchmarkDataSize (line 22) | benchmarkDataSize = 16 * 1024 function BenchmarkKeyGen (line 42) | func BenchmarkKeyGen(b *testing.B) { function BenchmarkSign (line 53) | func BenchmarkSign(b *testing.B) { function BenchmarkVerify (line 70) | func BenchmarkVerify(b *testing.B) { FILE: internal/signature/mldsa/mldsa_test.go constant numSignVerifyTests (line 30) | numSignVerifyTests = 100 function mustHexDecode (line 32) | func mustHexDecode(t *testing.T, hexString string) []byte { function TestDerivedParameters (line 40) | func TestDerivedParameters(t *testing.T) { function TestKeyGenFromSeed (line 61) | func TestKeyGenFromSeed(t *testing.T) { function TestSeedCorrect (line 107) | func TestSeedCorrect(t *testing.T) { function TestSignDeterministic (line 143) | func TestSignDeterministic(t *testing.T) { function TestVerify (line 212) | func TestVerify(t *testing.T) { function TestSignVerify (line 270) | func TestSignVerify(t *testing.T) { function TestSignDeterministicVerify (line 298) | func TestSignDeterministicVerify(t *testing.T) { function TestSignVerifyWithMu (line 326) | func TestSignVerifyWithMu(t *testing.T) { function TestSignDeterministicVerifyWithMu (line 351) | func TestSignDeterministicVerifyWithMu(t *testing.T) { function TestSignVerifyContextTooLong (line 376) | func TestSignVerifyContextTooLong(t *testing.T) { function TestSignDeterministicContextTooLong (line 392) | func TestSignDeterministicContextTooLong(t *testing.T) { type wycheproofCase (line 404) | type wycheproofCase struct function TestWycheproofVerify (line 411) | func TestWycheproofVerify(t *testing.T) { function TestWycheproofSign (line 482) | func TestWycheproofSign(t *testing.T) { function TestWycheproofSignNoSeed (line 555) | func TestWycheproofSignNoSeed(t *testing.T) { FILE: internal/signature/mldsa/sampling.go method sampleInBall (line 24) | func (par *params) sampleInBall(rho []byte) *poly { function rejectNTTPoly (line 46) | func rejectNTTPoly(rho [32 + 2]byte) *polyNTT { method coeffFromHalfByte (line 70) | func (par *params) coeffFromHalfByte(b byte) (rZq, bool) { method rejectBoundedPoly (line 83) | func (par *params) rejectBoundedPoly(rho [64 + 2]byte) *poly { FILE: internal/signature/mldsa/sampling_test.go function fmtPoly (line 22) | func fmtPoly(p *poly) string { function TestSampleInBall (line 30) | func TestSampleInBall(t *testing.T) { function TestRejectNTTPoly (line 53) | func TestRejectNTTPoly(t *testing.T) { function TestCoeffFromHalfByte (line 69) | func TestCoeffFromHalfByte(t *testing.T) { function TestRejectBoundedPoly (line 98) | func TestRejectBoundedPoly(t *testing.T) { FILE: internal/signature/rsa.go constant rsaMinModulusSizeInBits (line 28) | rsaMinModulusSizeInBits = 2048 constant rsaDefaultPublicExponent (line 29) | rsaDefaultPublicExponent = 65537 function RSAValidModulusSizeInBits (line 33) | func RSAValidModulusSizeInBits(m int) error { function RSAValidPublicExponent (line 41) | func RSAValidPublicExponent(e int) error { function HashSafeForSignature (line 51) | func HashSafeForSignature(hashAlg string) error { function ValidateRSAPublicKeyParams (line 61) | func ValidateRSAPublicKeyParams(hashAlg string, modSizeBits int, pubExpo... function validRSAPublicKey (line 75) | func validRSAPublicKey(publicKey *rsa.PublicKey) error { function hashID (line 82) | func hashID(hashAlg string) (crypto.Hash, error) { function rsaHashFunc (line 95) | func rsaHashFunc(hashAlg string) (func() hash.Hash, crypto.Hash, error) { function Pad (line 112) | func Pad(toPad []byte, encodingLength int) ([]byte, error) { function AdjustEncodingLengths (line 125) | func AdjustEncodingLengths(n, p, q, d, dp, dq, crt []byte) ([]byte, []by... FILE: internal/signature/rsa_test.go function TestPad (line 25) | func TestPad(t *testing.T) { function TestAdjustEncodingLengths (line 74) | func TestAdjustEncodingLengths(t *testing.T) { function TestValidatePublicExponent (line 205) | func TestValidatePublicExponent(t *testing.T) { function TestValidateInvalidPublicExponentFails (line 211) | func TestValidateInvalidPublicExponentFails(t *testing.T) { function TestValidateModulusSizeInBits (line 217) | func TestValidateModulusSizeInBits(t *testing.T) { function TestValidateInvalidModulusSizeInBitsFails (line 223) | func TestValidateInvalidModulusSizeInBitsFails(t *testing.T) { function TestHashSafeForSignature (line 229) | func TestHashSafeForSignature(t *testing.T) { function TestHashNotSafeForSignatureFails (line 243) | func TestHashNotSafeForSignatureFails(t *testing.T) { function TestValidateRSAPublicKeyParams (line 257) | func TestValidateRSAPublicKeyParams(t *testing.T) { FILE: internal/signature/rsassapkcs1_signer.go type RSA_SSA_PKCS1_Signer (line 28) | type RSA_SSA_PKCS1_Signer struct method Sign (line 53) | func (s *RSA_SSA_PKCS1_Signer) Sign(data []byte) ([]byte, error) { function New_RSA_SSA_PKCS1_Signer (line 37) | func New_RSA_SSA_PKCS1_Signer(hashAlg string, privKey *rsa.PrivateKey) (... FILE: internal/signature/rsassapkcs1_signer_verifier_test.go constant n2048Base64 (line 36) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUarVw... constant d2048Base64 (line 37) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLSbFg... constant p2048Base64 (line 38) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9lC5... constant q2048Base64 (line 39) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6uvrU... constant n3072Base64 (line 43) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJGpN... constant d3072Base64 (line 44) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuasaPT... constant p3072Base64 (line 45) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_I9J... constant q3072Base64 (line 46) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0m8H... constant n4096Base64 (line 50) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUvMsm... constant d4096Base64 (line 51) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1iYL... constant p4096Base64 (line 52) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSOhuC... constant q4096Base64 (line 53) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i8UK... function base64Decode (line 56) | func base64Decode(t *testing.T, value string) []byte { type testCase (line 65) | type testCase struct function testCases (line 72) | func testCases(t *testing.T) []testCase { function TestRSASSAPKCS1SignVerify (line 139) | func TestRSASSAPKCS1SignVerify(t *testing.T) { function TestRSASSAPKCS1VerifyFails (line 162) | func TestRSASSAPKCS1VerifyFails(t *testing.T) { function TestNewRSASSAPKCS1SignerVerifierInvalidInput (line 212) | func TestNewRSASSAPKCS1SignerVerifierInvalidInput(t *testing.T) { type rsaSSAPKCS1Suite (line 262) | type rsaSSAPKCS1Suite struct type rsaSSAPKCS1Group (line 267) | type rsaSSAPKCS1Group struct type rsaSSAPKCS1Case (line 274) | type rsaSSAPKCS1Case struct type rsaSSAPKCS1PublicKey (line 280) | type rsaSSAPKCS1PublicKey struct function TestRSASSAPKCS1WycheproofCases (line 285) | func TestRSASSAPKCS1WycheproofCases(t *testing.T) { FILE: internal/signature/rsassapkcs1_verifier.go type RSA_SSA_PKCS1_Verifier (line 27) | type RSA_SSA_PKCS1_Verifier struct method Verify (line 53) | func (v *RSA_SSA_PKCS1_Verifier) Verify(signature, data []byte) error { function New_RSA_SSA_PKCS1_Verifier (line 36) | func New_RSA_SSA_PKCS1_Verifier(hashAlg string, pubKey *rsa.PublicKey) (... FILE: internal/signature/rsassapss_signer.go type RSA_SSA_PSS_Signer (line 29) | type RSA_SSA_PSS_Signer struct method Sign (line 59) | func (s *RSA_SSA_PSS_Signer) Sign(data []byte) ([]byte, error) { function New_RSA_SSA_PSS_Signer (line 39) | func New_RSA_SSA_PSS_Signer(hashAlg string, saltLength int, privKey *rsa... FILE: internal/signature/rsassapss_signer_verifier_test.go type rsaSSAPSSTestCase (line 33) | type rsaSSAPSSTestCase struct function hexDecode (line 43) | func hexDecode(t *testing.T, value string) []byte { function TestRSASSAPSSSignVerify (line 52) | func TestRSASSAPSSSignVerify(t *testing.T) { function rsaSSAPSSTestCases (line 75) | func rsaSSAPSSTestCases(t *testing.T) []rsaSSAPSSTestCase { function TestRSASSAPSSVerifyCorrectness (line 261) | func TestRSASSAPSSVerifyCorrectness(t *testing.T) { function TestRSASSAPSSVerifyFails (line 275) | func TestRSASSAPSSVerifyFails(t *testing.T) { function TestNewRSASSAPSSSignerVerifierFailWithInvalidInputs (line 321) | func TestNewRSASSAPSSSignerVerifierFailWithInvalidInputs(t *testing.T) { type rsaSSAPSSSuite (line 385) | type rsaSSAPSSSuite struct type rsaSSAPSSGroup (line 390) | type rsaSSAPSSGroup struct type rsaSSAPSSCase (line 399) | type rsaSSAPSSCase struct type rsaSSAPSSPublicKey (line 405) | type rsaSSAPSSPublicKey struct function TestRSASSAPSSWycheproofCases (line 410) | func TestRSASSAPSSWycheproofCases(t *testing.T) { FILE: internal/signature/rsassapss_verifier.go type RSA_SSA_PSS_Verifier (line 28) | type RSA_SSA_PSS_Verifier struct method Verify (line 59) | func (v *RSA_SSA_PSS_Verifier) Verify(signature, data []byte) error { function New_RSA_SSA_PSS_Verifier (line 38) | func New_RSA_SSA_PSS_Verifier(hashAlg string, saltLength int, pubKey *rs... FILE: internal/signature/slhdsa/address.go type address (line 33) | type address method copy (line 51) | func (a *address) copy() *address { method setLayerAddress (line 57) | func (a *address) setLayerAddress(l uint32) { method setTreeAddress (line 61) | func (a *address) setTreeAddress(t uint64) { method setTypeAndClear (line 68) | func (a *address) setTypeAndClear(y addressType) { method setKeyPairAddress (line 75) | func (a *address) setKeyPairAddress(i uint32) { method keyPairAddress (line 79) | func (a *address) keyPairAddress() uint32 { method setChainAddress (line 83) | func (a *address) setChainAddress(i uint32) { method setTreeHeight (line 87) | func (a *address) setTreeHeight(i uint32) { method setHashAddress (line 91) | func (a *address) setHashAddress(i uint32) { method setTreeIndex (line 95) | func (a *address) setTreeIndex(i uint32) { method treeIndex (line 99) | func (a *address) treeIndex() uint32 { method compress (line 105) | func (a *address) compress() []byte { type addressType (line 35) | type addressType constant addressWOTSHash (line 38) | addressWOTSHash addressType = iota constant addressWOTSPk (line 39) | addressWOTSPk constant addressTree (line 40) | addressTree constant addressFORSTree (line 41) | addressFORSTree constant addressFORSRoots (line 42) | addressFORSRoots constant addressWOTSPrf (line 43) | addressWOTSPrf constant addressFORSPrf (line 44) | addressFORSPrf function newAddress (line 47) | func newAddress() *address { FILE: internal/signature/slhdsa/address_test.go function TestNewAddress (line 25) | func TestNewAddress(t *testing.T) { function TestAddressCopy (line 33) | func TestAddressCopy(t *testing.T) { function TestAddressSetLayerAddress (line 47) | func TestAddressSetLayerAddress(t *testing.T) { function TestAddressSetTreeAddress (line 56) | func TestAddressSetTreeAddress(t *testing.T) { function TestAddressSetTypeAndClear (line 65) | func TestAddressSetTypeAndClear(t *testing.T) { function TestAddressSetGetKeyPairAddress (line 119) | func TestAddressSetGetKeyPairAddress(t *testing.T) { function TestAddressSetChainAddress (line 131) | func TestAddressSetChainAddress(t *testing.T) { function TestAddressSetTreeHeight (line 140) | func TestAddressSetTreeHeight(t *testing.T) { function TestAddressSetHashAddress (line 149) | func TestAddressSetHashAddress(t *testing.T) { function TestAddressSetGetTreeIndex (line 158) | func TestAddressSetGetTreeIndex(t *testing.T) { function TestAddressCompress (line 170) | func TestAddressCompress(t *testing.T) { FILE: internal/signature/slhdsa/fors.go method forsSkGen (line 20) | func (p *params) forsSkGen(skSeed []byte, pkSeed []byte, adrs *address, ... method forsNode (line 30) | func (p *params) forsNode(skSeed []byte, i uint32, z uint32, pkSeed []by... method forsSign (line 45) | func (p *params) forsSign(md []byte, skSeed []byte, pkSeed []byte, adrs ... method forsPkFromSig (line 66) | func (p *params) forsPkFromSig(sigFors []byte, md []byte, pkSeed []byte,... FILE: internal/signature/slhdsa/fors_test.go function TestForsSkGenKat (line 22) | func TestForsSkGenKat(t *testing.T) { function TestForsNodeKat (line 34) | func TestForsNodeKat(t *testing.T) { function TestForsSignkat (line 47) | func TestForsSignkat(t *testing.T) { function TestForsPkFromSigKat (line 59) | func TestForsPkFromSigKat(t *testing.T) { FILE: internal/signature/slhdsa/hash.go function shakeHMsg (line 31) | func shakeHMsg(r []byte, pkSeed []byte, pkRoot []byte, msg []byte, m uin... function shakePrf (line 37) | func shakePrf(pkSeed []byte, skSeed []byte, adrs *address, n uint32) []b... function shakePrfMsg (line 43) | func shakePrfMsg(skPrf []byte, optRand []byte, msg []byte, n uint32) []b... function shakeF (line 49) | func shakeF(pkSeed []byte, adrs *address, msg1 []byte, n uint32) []byte { function shakeH (line 55) | func shakeH(pkSeed []byte, adrs *address, msg2 []byte, n uint32) []byte { function shakeTl (line 61) | func shakeTl(pkSeed []byte, adrs *address, msgl []byte, n uint32) []byte { function mgf1 (line 70) | func mgf1(seed []byte, maskLen int, hash func([]byte) []byte) []byte { function mgf1Sha256 (line 83) | func mgf1Sha256(seed []byte, maskLen int) []byte { function sha2C1HMsg (line 90) | func sha2C1HMsg(r []byte, pkSeed []byte, pkRoot []byte, msg []byte, m ui... function sha2C1Prf (line 95) | func sha2C1Prf(pkSeed []byte, skSeed []byte, adrs *address, n uint32) []... function sha2C1PrfMsg (line 101) | func sha2C1PrfMsg(skPrf []byte, optRand []byte, msg []byte, n uint32) []... function sha2C1F (line 109) | func sha2C1F(pkSeed []byte, adrs *address, msg1 []byte, n uint32) []byte { function sha2C1H (line 115) | func sha2C1H(pkSeed []byte, adrs *address, msg2 []byte, n uint32) []byte { function sha2C1Tl (line 121) | func sha2C1Tl(pkSeed []byte, adrs *address, msgl []byte, n uint32) []byte { function mgf1Sha512 (line 129) | func mgf1Sha512(seed []byte, maskLen int) []byte { function sha2C35HMsg (line 136) | func sha2C35HMsg(r []byte, pkSeed []byte, pkRoot []byte, msg []byte, m u... function sha2C35Prf (line 141) | func sha2C35Prf(pkSeed []byte, skSeed []byte, adrs *address, n uint32) [... function sha2C35PrfMsg (line 147) | func sha2C35PrfMsg(skPrf []byte, optRand []byte, msg []byte, n uint32) [... function sha2C35F (line 155) | func sha2C35F(pkSeed []byte, adrs *address, msg1 []byte, n uint32) []byte { function sha2C35H (line 161) | func sha2C35H(pkSeed []byte, adrs *address, msg2 []byte, n uint32) []byte { function sha2C35Tl (line 167) | func sha2C35Tl(pkSeed []byte, adrs *address, msgl []byte, n uint32) []by... FILE: internal/signature/slhdsa/hash_test.go type hashTestVector (line 22) | type hashTestVector struct function TestHashKat (line 249) | func TestHashKat(t *testing.T) { FILE: internal/signature/slhdsa/hypertree.go method htSign (line 20) | func (p *params) htSign(msg []byte, skSeed []byte, pkSeed []byte, idxTre... method htVerify (line 43) | func (p *params) htVerify(msg []byte, sigHT []byte, pkSeed []byte, idxTr... FILE: internal/signature/slhdsa/hypertree_test.go function TestHypertreeSignKat (line 23) | func TestHypertreeSignKat(t *testing.T) { function TestHypertreeSignVerify (line 36) | func TestHypertreeSignVerify(t *testing.T) { FILE: internal/signature/slhdsa/slhdsa.go type params (line 26) | type params struct method hHMsg (line 53) | func (p *params) hHMsg(r []byte, pkSeed []byte, pkRoot []byte, msg []b... method hPrf (line 57) | func (p *params) hPrf(pkSeed []byte, skSeed []byte, adrs *address) []b... method hPrfMsg (line 61) | func (p *params) hPrfMsg(skPrf []byte, optRand []byte, msg []byte) []b... method hF (line 65) | func (p *params) hF(pkSeed []byte, adrs *address, msg1 []byte) []byte { method hH (line 69) | func (p *params) hH(pkSeed []byte, adrs *address, msg2 []byte) []byte { method hTl (line 73) | func (p *params) hTl(pkSeed []byte, adrs *address, msgl []byte) []byte { method slhKeygenInternal (line 254) | func (p *params) slhKeygenInternal(skSeed []byte, skPrf []byte, pkSeed... method KeyGen (line 341) | func (p *params) KeyGen() (*SecretKey, *PublicKey) { method PublicKeyLength (line 358) | func (p *params) PublicKeyLength() int { method DecodePublicKey (line 363) | func (p *params) DecodePublicKey(pkEnc []byte) (*PublicKey, error) { method SecretKeyLength (line 378) | func (p *params) SecretKeyLength() int { method DecodeSecretKey (line 383) | func (p *params) DecodeSecretKey(skEnc []byte) (*SecretKey, error) { type paramsOpts (line 77) | type paramsOpts struct type hashParamsOpts (line 88) | type hashParamsOpts struct function newParams (line 97) | func newParams(par paramsOpts, hashPar hashParamsOpts) *params { type PublicKey (line 236) | type PublicKey struct method verifyInternal (line 302) | func (pk *PublicKey) verifyInternal(msg []byte, sig []byte) error { method Encode (line 353) | func (pk *PublicKey) Encode() []byte { method Verify (line 419) | func (pk *PublicKey) Verify(msg []byte, sig []byte, ctx []byte) error { type SecretKey (line 244) | type SecretKey struct method signInternal (line 269) | func (sk *SecretKey) signInternal(msg []byte, addrnd []byte) []byte { method Encode (line 373) | func (sk *SecretKey) Encode() []byte { method PublicKey (line 395) | func (sk *SecretKey) PublicKey() *PublicKey { method Sign (line 400) | func (sk *SecretKey) Sign(msg []byte, ctx []byte) ([]byte, error) { method SignDeterministic (line 411) | func (sk *SecretKey) SignDeterministic(msg []byte, ctx []byte) ([]byte... FILE: internal/signature/slhdsa/slhdsa_kat_vectors_test.go type katTestVector (line 19) | type katTestVector struct function katTestVectors (line 30) | func katTestVectors(t *testing.T) []katTestVector { FILE: internal/signature/slhdsa/slhdsa_test.go function mustHexDecode (line 26) | func mustHexDecode(t *testing.T, hexString string) []byte { function TestDerivedParameters (line 35) | func TestDerivedParameters(t *testing.T) { function TestHashParamsKat (line 74) | func TestHashParamsKat(t *testing.T) { function TestPublicKeyLength (line 128) | func TestPublicKeyLength(t *testing.T) { function TestSecretKeyLength (line 155) | func TestSecretKeyLength(t *testing.T) { function TestEncodeDecodePublicKey (line 182) | func TestEncodeDecodePublicKey(t *testing.T) { function TestEncodeDecodeSecretKey (line 217) | func TestEncodeDecodeSecretKey(t *testing.T) { function TestPublicKeyFromSecretKey (line 258) | func TestPublicKeyFromSecretKey(t *testing.T) { function TestSignDeterministicVerifyKat (line 289) | func TestSignDeterministicVerifyKat(t *testing.T) { function TestSignVerify (line 319) | func TestSignVerify(t *testing.T) { function TestSignDeterministicVerify (line 365) | func TestSignDeterministicVerify(t *testing.T) { function TestVerifyInvalidSignatureLength (line 411) | func TestVerifyInvalidSignatureLength(t *testing.T) { function TestDecodePublicKeyInvalidLength (line 443) | func TestDecodePublicKeyInvalidLength(t *testing.T) { function TestDecodeSecretKeyInvalidLength (line 474) | func TestDecodeSecretKeyInvalidLength(t *testing.T) { function TestSignVerifyContextInvalidLength (line 505) | func TestSignVerifyContextInvalidLength(t *testing.T) { function TestSignDeterministicContextTooLong (line 525) | func TestSignDeterministicContextTooLong(t *testing.T) { FILE: internal/signature/slhdsa/support.go function toInt (line 21) | func toInt(x []byte, n uint32) uint64 { function toByte (line 33) | func toByte(x uint32, n uint32) []byte { function base2b (line 44) | func base2b(x []byte, b uint32, outLen uint32) []uint32 { FILE: internal/signature/slhdsa/support_test.go function TestToInt (line 22) | func TestToInt(t *testing.T) { function TestToByte (line 75) | func TestToByte(t *testing.T) { function TestBase2b (line 108) | func TestBase2b(t *testing.T) { FILE: internal/signature/slhdsa/wots.go method chain (line 18) | func (p *params) chain(x []byte, i uint32, s uint32, pkSeed []byte, adrs... method wotsPkGen (line 28) | func (p *params) wotsPkGen(skSeed []byte, pkSeed []byte, adrs *address) ... method wotsChecksum (line 50) | func (p *params) wotsChecksum(msg []byte) []uint32 { method wotsSign (line 66) | func (p *params) wotsSign(msg []byte, skSeed []byte, pkSeed []byte, adrs... method wotsPkFromSig (line 86) | func (p *params) wotsPkFromSig(sig []byte, msg []byte, pkSeed []byte, ad... FILE: internal/signature/slhdsa/wots_test.go function TestChainKat (line 22) | func TestChainKat(t *testing.T) { function TestWotsPkGenKat (line 35) | func TestWotsPkGenKat(t *testing.T) { function TestWotsSignKat (line 46) | func TestWotsSignKat(t *testing.T) { function TestWotsPkFromSigKat (line 58) | func TestWotsPkFromSigKat(t *testing.T) { FILE: internal/signature/slhdsa/xmss.go method xmssNode (line 20) | func (p *params) xmssNode(skSeed []byte, i uint32, z uint32, pkSeed []by... method xmssSign (line 35) | func (p *params) xmssSign(msg []byte, skSeed []byte, idx uint32, pkSeed ... method xmssPkFromSig (line 50) | func (p *params) xmssPkFromSig(idx uint32, sigXmss []byte, msg []byte, p... FILE: internal/signature/slhdsa/xmss_test.go function TestXmssNodeKat (line 22) | func TestXmssNodeKat(t *testing.T) { function TestXmssSignKat (line 35) | func TestXmssSignKat(t *testing.T) { function TestXmssPkFromSigKat (line 48) | func TestXmssPkFromSigKat(t *testing.T) { FILE: internal/testing/aead/aead.go type WycheproofSuiteV1 (line 25) | type WycheproofSuiteV1 struct type WycheproofGroup (line 31) | type WycheproofGroup struct type WycheproofCase (line 41) | type WycheproofCase struct FILE: internal/testing/stubkeymanager/stubkeymanager.go type StubKeyManager (line 25) | type StubKeyManager struct method Primitive (line 35) | func (km *StubKeyManager) Primitive(serializedKey []byte) (any, error) { method NewKey (line 40) | func (km *StubKeyManager) NewKey(serializedKeyFormat []byte) (proto.Me... method NewKeyData (line 45) | func (km *StubKeyManager) NewKeyData(serializedKeyFormat []byte) (*tin... method DoesSupport (line 50) | func (km *StubKeyManager) DoesSupport(typeURL string) bool { method TypeURL (line 55) | func (km *StubKeyManager) TypeURL() string { type StubPrivateKeyManager (line 60) | type StubPrivateKeyManager struct method PublicKeyData (line 68) | func (skm *StubPrivateKeyManager) PublicKeyData(serializedKey []byte) ... FILE: internal/testing/stubkeymanager/stubkeymanager_test.go type fakePrimitive (line 27) | type fakePrimitive struct function TestStubKeyManager (line 31) | func TestStubKeyManager(t *testing.T) { function TestStubPrivateKeyManager (line 75) | func TestStubPrivateKeyManager(t *testing.T) { FILE: internal/testing/wycheproof/v1.go type Notes (line 26) | type Notes struct type Suite (line 40) | type Suite struct type Group (line 51) | type Group struct type Case (line 60) | type Case struct function PopulateSuiteV1 (line 69) | func PopulateSuiteV1(t *testing.T, suite any, filename string) { FILE: internal/testing/wycheproof/v1_test.go type AeadTest (line 26) | type AeadTest struct type AeadGroup (line 36) | type AeadGroup struct type AeadSuite (line 41) | type AeadSuite struct function mustHexDecode (line 46) | func mustHexDecode(t *testing.T, s string) []byte { function TestPopulateSuiteV1 (line 55) | func TestPopulateSuiteV1(t *testing.T) { FILE: internal/tinkerror/tinkerror.go function Fail (line 24) | func Fail(message string) { FILE: internal/tinkerror/tinkerror_test.go function TestFail (line 24) | func TestFail(t *testing.T) { FILE: internal/tinkerror/tinkerrortest/tinkerrortest.go function RecoverFromFail (line 21) | func RecoverFromFail(f func()) (err error) { FILE: jwt/jwk_converter.go function JWKSetToPublicKeysetHandle (line 26) | func JWKSetToPublicKeysetHandle(jwkSet []byte) (*keyset.Handle, error) { function JWKSetFromPublicKeysetHandle (line 33) | func JWKSetFromPublicKeysetHandle(kh *keyset.Handle) ([]byte, error) { FILE: jwt/jwk_converter_test.go type jwkSetTestCase (line 40) | type jwkSetTestCase struct function TestToPublicKeysetHandle (line 426) | func TestToPublicKeysetHandle(t *testing.T) { function createKeysetHandle (line 452) | func createKeysetHandle(key string) (*keyset.Handle, error) { function TestJWKSetToPublicKeysetHandleVerifyValidJWT (line 460) | func TestJWKSetToPublicKeysetHandleVerifyValidJWT(t *testing.T) { function TestJWKSetEd25519KeysNotSupported (line 498) | func TestJWKSetEd25519KeysNotSupported(t *testing.T) { function TestJWKSetToPublicKeysetHandleInvalidJSONFails (line 517) | func TestJWKSetToPublicKeysetHandleInvalidJSONFails(t *testing.T) { function TestJWKSetToPublicKeysetPrimitivePS256SmallModulusFails (line 523) | func TestJWKSetToPublicKeysetPrimitivePS256SmallModulusFails(t *testing.... function TestJWKSetToPublicKeysetPS256CorrectlySetsKID (line 541) | func TestJWKSetToPublicKeysetPS256CorrectlySetsKID(t *testing.T) { function TestJWKSetToPublicKeysetPS256WithoutOptionalFieldsSucceeds (line 573) | func TestJWKSetToPublicKeysetPS256WithoutOptionalFieldsSucceeds(t *testi... function TestJWKSetToPublicKeysetInvalidPS256JWKSet (line 585) | func TestJWKSetToPublicKeysetInvalidPS256JWKSet(t *testing.T) { constant n2048Base64 (line 711) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUarVw... function TestJWKSetToPublicKeysetPrimitiveRS256SmallModulusFails (line 713) | func TestJWKSetToPublicKeysetPrimitiveRS256SmallModulusFails(t *testing.... function TestJWKSetToPublicKeysetRS256CorrectlySetsKID (line 731) | func TestJWKSetToPublicKeysetRS256CorrectlySetsKID(t *testing.T) { function TestJWKSetToPublicKeysetRS256WithoutOptionalFieldsSucceeds (line 763) | func TestJWKSetToPublicKeysetRS256WithoutOptionalFieldsSucceeds(t *testi... function TestJWKSetToPublicKeysetInvalidRS256JWKSet (line 775) | func TestJWKSetToPublicKeysetInvalidRS256JWKSet(t *testing.T) { function TestJWKSetToPublicKeysetES256CorrectlySetsKID (line 923) | func TestJWKSetToPublicKeysetES256CorrectlySetsKID(t *testing.T) { function TestJWKSetToPublicKeysetES256WithoutOptionalFieldsSucceeds (line 958) | func TestJWKSetToPublicKeysetES256WithoutOptionalFieldsSucceeds(t *testi... function TestJWKSetToPublicKeysetInvalidES256PublicKeys (line 972) | func TestJWKSetToPublicKeysetInvalidES256PublicKeys(t *testing.T) { function TestJWKSetFromPublicKeysetNonEnabledKeysAreIgnored (line 1204) | func TestJWKSetFromPublicKeysetNonEnabledKeysAreIgnored(t *testing.T) { function TestJWKSetFromPublicKeysetHandleTinkOutputPrefixHasKID (line 1262) | func TestJWKSetFromPublicKeysetHandleTinkOutputPrefixHasKID(t *testing.T) { function mustMarshal (line 1347) | func mustMarshal(t *testing.T, m proto.Message) []byte { function mustJSONSerialize (line 1356) | func mustJSONSerialize(t *testing.T, m proto.Message) string { function mustHexDecode (line 1365) | func mustHexDecode(t *testing.T, s string) []byte { function TestJWKSetFromPublicKeysetHandleInvalidKeysetsFails (line 1374) | func TestJWKSetFromPublicKeysetHandleInvalidKeysetsFails(t *testing.T) { function getCoordinateFromJwk (line 1439) | func getCoordinateFromJwk(jwk *spb.Struct, coord string) ([]byte, error) { function TestJWKSizedSizedECCEncoding (line 1444) | func TestJWKSizedSizedECCEncoding(t *testing.T) { FILE: jwt/jwt.go function IsExpirationErr (line 48) | func IsExpirationErr(err error) bool { constant jwtECDSAVerifierTypeURL (line 53) | jwtECDSAVerifierTypeURL = "type.googleapis.com/google.crypto.ti... constant jwtJWTRSASSAPKCS1VerifierTypeURL (line 54) | jwtJWTRSASSAPKCS1VerifierTypeURL = "type.googleapis.com/google.crypto.ti... constant jwtJWTRSASSAPSSVerifierTypeURL (line 55) | jwtJWTRSASSAPSSVerifierTypeURL = "type.googleapis.com/google.crypto.ti... constant jwtHMACTypeURL (line 56) | jwtHMACTypeURL = "type.googleapis.com/google.crypto.ti... constant jwtECDSASignerTypeURL (line 57) | jwtECDSASignerTypeURL = "type.googleapis.com/google.crypto.ti... constant jwtJWTRSASSAPKCS1SignerTypeURL (line 58) | jwtJWTRSASSAPKCS1SignerTypeURL = "type.googleapis.com/google.crypto.ti... constant jwtJWTRSASSAPSSSignerTypeURL (line 59) | jwtJWTRSASSAPSSSignerTypeURL = "type.googleapis.com/google.crypto.ti... function jwtHMACPrimitive (line 62) | func jwtHMACPrimitive(_ key.Key) (any, error) { function jwtECDSASignerPrimitive (line 66) | func jwtECDSASignerPrimitive(_ key.Key) (any, error) { function jwtRSASSAPKCS1Primitive (line 70) | func jwtRSASSAPKCS1Primitive(_ key.Key) (any, error) { function jwtRSASSAPSSPrimitive (line 74) | func jwtRSASSAPSSPrimitive(_ key.Key) (any, error) { function unmarshalJWTHMACKey (line 78) | func unmarshalJWTHMACKey(serializedKey []byte) (proto.Message, error) { function unmarshalJWTECDSAPrivateKey (line 86) | func unmarshalJWTECDSAPrivateKey(serializedKey []byte) (proto.Message, e... function unmarshalJWTRSASSAPKCS1PrivateKey (line 94) | func unmarshalJWTRSASSAPKCS1PrivateKey(serializedKey []byte) (proto.Mess... function unmarshalJWTRSASSAPSSPrivateKey (line 102) | func unmarshalJWTRSASSAPSSPrivateKey(serializedKey []byte) (proto.Messag... function unmarshalJWTECDSAPublicKey (line 110) | func unmarshalJWTECDSAPublicKey(serializedKey []byte) (proto.Message, er... function unmarshalJWTRSASSAPKCS1PublicKey (line 118) | func unmarshalJWTRSASSAPKCS1PublicKey(serializedKey []byte) (proto.Messa... function unmarshalJWTRSASSAPSSPublicKey (line 126) | func unmarshalJWTRSASSAPSSPublicKey(serializedKey []byte) (proto.Message... function init (line 134) | func init() { FILE: jwt/jwt_config.go function RegisterJWTHMACPrimitiveConstructor (line 31) | func RegisterJWTHMACPrimitiveConstructor(c *config.Builder, t internalap... function RegisterJWTECDSAPrimitiveConstructor (line 38) | func RegisterJWTECDSAPrimitiveConstructor(c *config.Builder, t internala... function RegisterJWTRSASSAPKCS1PrimitiveConstructor (line 48) | func RegisterJWTRSASSAPKCS1PrimitiveConstructor(c *config.Builder, t int... function RegisterJWTRSASSAPSSPrimitiveConstructor (line 58) | func RegisterJWTRSASSAPSSPrimitiveConstructor(c *config.Builder, t inter... FILE: jwt/jwt_config_test.go function TestRegisterJWTHMACPrimitiveConstructor (line 34) | func TestRegisterJWTHMACPrimitiveConstructor(t *testing.T) { function TestRegisterJWTECDSAPrimitiveConstructor (line 87) | func TestRegisterJWTECDSAPrimitiveConstructor(t *testing.T) { constant d2048Base64 (line 188) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLSbFg... constant p2048Base64 (line 189) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9lC5... constant q2048Base64 (line 190) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6uvrU... function TestRegisterJWTRSASSAPKCS1PrimitiveConstructor (line 193) | func TestRegisterJWTRSASSAPKCS1PrimitiveConstructor(t *testing.T) { function TestRegisterJWTRSASSAPSSPrimitiveConstructor (line 303) | func TestRegisterJWTRSASSAPSSPrimitiveConstructor(t *testing.T) { FILE: jwt/jwt_ecdsa_signer_key_manager_test.go constant testECDSASignerKeyType (line 28) | testECDSASignerKeyType = "type.googleapis.com/google.crypto.tink.JwtEcds... constant testECDSASignerVersion (line 29) | testECDSASignerVersion = 0 function TestECDSASignerDoesSupport (line 32) | func TestECDSASignerDoesSupport(t *testing.T) { function TestECDSASignerTypeURL (line 45) | func TestECDSASignerTypeURL(t *testing.T) { function TestECDSASignerNewKeyWithEmptyKeyFormatFails (line 55) | func TestECDSASignerNewKeyWithEmptyKeyFormatFails(t *testing.T) { function createECDSASerializedKeyFormat (line 65) | func createECDSASerializedKeyFormat(algorithm jepb.JwtEcdsaAlgorithm, ve... function TestECDSASignerNewKeyWithInvalidAlgorithmFails (line 73) | func TestECDSASignerNewKeyWithInvalidAlgorithmFails(t *testing.T) { function TestECDSASignerNewKeyGeneratesValidKey (line 87) | func TestECDSASignerNewKeyGeneratesValidKey(t *testing.T) { function TestECDSASignerNewKeyGeneratesDifferentKeys (line 137) | func TestECDSASignerNewKeyGeneratesDifferentKeys(t *testing.T) { function TestECDSASignerNewKeyDataWithEmptyKeyFormatFails (line 167) | func TestECDSASignerNewKeyDataWithEmptyKeyFormatFails(t *testing.T) { function TestECDSASignerNewKeyDataWithInvalidAlgorithmFails (line 177) | func TestECDSASignerNewKeyDataWithInvalidAlgorithmFails(t *testing.T) { function TestECDSASignerNewKeyDataGeneratesValidKeyData (line 191) | func TestECDSASignerNewKeyDataGeneratesValidKeyData(t *testing.T) { function TestECDSASignerPublicKeyDataWithEmptyKeyFormatFails (line 212) | func TestECDSASignerPublicKeyDataWithEmptyKeyFormatFails(t *testing.T) { function createECDSAKey (line 226) | func createECDSAKey() (*jepb.JwtEcdsaPrivateKey, error) { function createSerializedECDSAKey (line 243) | func createSerializedECDSAKey() ([]byte, error) { function TestECDSASignerPublicKeyDataGeneratesValidKeyData (line 251) | func TestECDSASignerPublicKeyDataGeneratesValidKeyData(t *testing.T) { function TestECDSASignerPrimitiveAlwaysFails (line 276) | func TestECDSASignerPrimitiveAlwaysFails(t *testing.T) { FILE: jwt/jwt_ecdsa_verifier_key_manager_test.go constant testECDSAVerifierKeyType (line 26) | testECDSAVerifierKeyType = "type.googleapis.com/google.crypto.tink.JwtEc... function TestECDSAVerifierNotImplemented (line 28) | func TestECDSAVerifierNotImplemented(t *testing.T) { function TestECDSAVerifierDoesSupport (line 38) | func TestECDSAVerifierDoesSupport(t *testing.T) { function TestECDSAVerifierTypeURL (line 51) | func TestECDSAVerifierTypeURL(t *testing.T) { function createECDSAPublicKey (line 61) | func createECDSAPublicKey(algorithm jepb.JwtEcdsaAlgorithm, kid *string,... function createECDSASerializedPublicKey (line 84) | func createECDSASerializedPublicKey(algorithm jepb.JwtEcdsaAlgorithm, ki... function TestECDSAVerifierPrimitiveAlwaysFails (line 92) | func TestECDSAVerifierPrimitiveAlwaysFails(t *testing.T) { FILE: jwt/jwt_encoding.go function keyID (line 28) | func keyID(keyID uint32, outPrefixType tpb.OutputPrefixType) *string { function createUnsigned (line 39) | func createUnsigned(rawJWT *RawJWT, algo string, tinkKID *string, custom... function combineUnsignedAndSignature (line 69) | func combineUnsignedAndSignature(unsigned string, signature []byte) stri... function splitSignedCompact (line 74) | func splitSignedCompact(compact string) ([]byte, string, error) { function decodeUnsignedTokenAndValidateHeader (line 98) | func decodeUnsignedTokenAndValidateHeader(unsigned, algorithm string, ti... function base64Encode (line 126) | func base64Encode(content []byte) string { function base64Decode (line 131) | func base64Decode(content string) ([]byte, error) { function isValidURLsafeBase64Char (line 140) | func isValidURLsafeBase64Char(c rune) bool { function dotConcat (line 145) | func dotConcat(a, b string) string { function jsonToStruct (line 149) | func jsonToStruct(jsonPayload []byte) (*spb.Struct, error) { function extractTypeHeader (line 157) | func extractTypeHeader(header *spb.Struct) (*string, error) { function createHeader (line 173) | func createHeader(algorithm string, typeHeader, kid *string) (string, er... function validateHeader (line 192) | func validateHeader(header *spb.Struct, algorithm string, tinkKID, custo... function validateKIDInHeader (line 223) | func validateKIDInHeader(fields map[string]*spb.Value, kid *string) error { function headerStringField (line 234) | func headerStringField(fields map[string]*spb.Value, name string) (strin... FILE: jwt/jwt_encoding_test.go function TestKIDForNonTinkKeysIsNil (line 27) | func TestKIDForNonTinkKeysIsNil(t *testing.T) { function TestKeyIDForTinkKey (line 38) | func TestKeyIDForTinkKey(t *testing.T) { type payloadTestCase (line 49) | type payloadTestCase struct function refString (line 58) | func refString(a string) *string { function refTime (line 62) | func refTime(ts int64) *time.Time { function TestBase64Encode (line 67) | func TestBase64Encode(t *testing.T) { function TestBase64Decode (line 78) | func TestBase64Decode(t *testing.T) { function TestInvalidCharactersFailBase64Decode (line 91) | func TestInvalidCharactersFailBase64Decode(t *testing.T) { function TestEncodeStaticHeaderWithPayloadIssuerTokenForSigning (line 97) | func TestEncodeStaticHeaderWithPayloadIssuerTokenForSigning(t *testing.T) { function TestEncodeHeaderWithHeaderFieldsAndEmptyPayload (line 119) | func TestEncodeHeaderWithHeaderFieldsAndEmptyPayload(t *testing.T) { function TestCreateUnsignedWithNilRawJWTFails (line 179) | func TestCreateUnsignedWithNilRawJWTFails(t *testing.T) { function TestCreateUnsignedCustomAndTinkKIDFail (line 185) | func TestCreateUnsignedCustomAndTinkKIDFail(t *testing.T) { function TestCombineTokenAndSignature (line 195) | func TestCombineTokenAndSignature(t *testing.T) { function TestSplitSignedCompactInvalidInputs (line 206) | func TestSplitSignedCompactInvalidInputs(t *testing.T) { function TestSplitSignedCompact (line 249) | func TestSplitSignedCompact(t *testing.T) { function TestDecodeValidateInvalidHeaderFailures (line 266) | func TestDecodeValidateInvalidHeaderFailures(t *testing.T) { function TestDecodeValidateKIDHeader (line 345) | func TestDecodeValidateKIDHeader(t *testing.T) { function TestDecodeVerifyTokenFixedValues (line 385) | func TestDecodeVerifyTokenFixedValues(t *testing.T) { function TestDecodeVerifyTokenPaylodWithInvalidEndcoding (line 416) | func TestDecodeVerifyTokenPaylodWithInvalidEndcoding(t *testing.T) { FILE: jwt/jwt_full_mac.go type fullMac (line 26) | type fullMac struct method ComputeMACAndEncode (line 35) | func (s *fullMac) ComputeMACAndEncode(token *RawJWT) (string, error) { method VerifyMACAndDecode (line 39) | func (s *fullMac) VerifyMACAndDecode(compact string, validator *Valida... function createJWTHMAC (line 43) | func createJWTHMAC(key key.Key) (any, error) { FILE: jwt/jwt_full_mac_test.go function mustCreateJWTHMACParameters (line 31) | func mustCreateJWTHMACParameters(t *testing.T, keySize int, kidStrategy ... function mustCreateJWTHMACKey (line 40) | func mustCreateJWTHMACKey(t *testing.T, opts jwthmac.KeyOpts) *jwthmac.K... function mustCreateKeysetHandle (line 49) | func mustCreateKeysetHandle(t *testing.T, k key.Key) *keyset.Handle { function TestJWTFullMACSignAndVerify (line 62) | func TestJWTFullMACSignAndVerify(t *testing.T) { type jwtHMACTestVector (line 261) | type jwtHMACTestVector struct function mustBase64Dec (line 268) | func mustBase64Dec(t *testing.T, s string) []byte { function TestJWTFullMACTestVectors (line 279) | func TestJWTFullMACTestVectors(t *testing.T) { FILE: jwt/jwt_full_signer_verifier.go function ecdsaCurveAndHashFromJWTAlgorithm (line 31) | func ecdsaCurveAndHashFromJWTAlgorithm(algorithm jwtecdsa.Algorithm) (ec... type fullSigner (line 47) | type fullSigner struct method SignAndEncode (line 56) | func (s *fullSigner) SignAndEncode(rawJWT *RawJWT) (string, error) { function newFullSigner (line 60) | func newFullSigner(hasIDRequirement, isCustomKID bool, kid string, algor... function createJWTECDSASigner (line 89) | func createJWTECDSASigner(key key.Key) (any, error) { function hashTypeFromJWTRSAlgorithm (line 121) | func hashTypeFromJWTRSAlgorithm(algorithm jwtrsassapkcs1.Algorithm) (rsa... function createJWTRSASSAPKCS1Signer (line 134) | func createJWTRSASSAPKCS1Signer(key key.Key) (any, error) { function hashTypeAndSaltLengthFromJWTPSAlgorithm (line 176) | func hashTypeAndSaltLengthFromJWTPSAlgorithm(algorithm jwtrsassapss.Algo... function createJWTRSASSAPSSSigner (line 189) | func createJWTRSASSAPSSSigner(key key.Key) (any, error) { type fullVerifier (line 240) | type fullVerifier struct method VerifyAndDecode (line 249) | func (s *fullVerifier) VerifyAndDecode(compact string, validator *Vali... function newFullVerifier (line 253) | func newFullVerifier(hasIDRequirement, isCustomKID bool, kid string, alg... function createJWTECDSAVerifier (line 282) | func createJWTECDSAVerifier(key key.Key) (any, error) { function createJWTRSASSAPKCS1Verifier (line 308) | func createJWTRSASSAPKCS1Verifier(key key.Key) (any, error) { function createJWTRSASSAPSSVerifier (line 337) | func createJWTRSASSAPSSVerifier(key key.Key) (any, error) { FILE: jwt/jwt_full_signer_verifier_test.go constant p256PrivateKeyHex (line 36) | p256PrivateKeyHex = "C9AFA9D845BA75166B5C215767B1D6934E50C3DB36E89B... constant p256PublicKeyPointXHex (line 37) | p256PublicKeyPointXHex = "60FED4BA255A9D31C961EB74C6356D68C049B8923B61FA... constant p256PublicKeyPointYHex (line 38) | p256PublicKeyPointYHex = "7903FE1008B8BC99A41AE9E95628BC64F2F1B20C2D7E9F... constant p256PublicKeyPointHex (line 39) | p256PublicKeyPointHex = "04" + p256PublicKeyPointXHex + p256PublicKeyPo... constant p384PrivateKeyHex (line 42) | p384PrivateKeyHex = "6B9D3DAD2E1B8C1C05B19875B6659F4DE23C3B667BF297... constant p384PublicKeyPointXHex (line 43) | p384PublicKeyPointXHex = "EC3A4E415B4E19A4568618029F427FA5DA9A8BC4AE92E0... constant p384PublicKeyPointYHex (line 44) | p384PublicKeyPointYHex = "8015D9B72D7D57244EA8EF9AC0C621896708A59367F9DF... constant p384PublicKeyPointHex (line 45) | p384PublicKeyPointHex = "04" + p384PublicKeyPointXHex + p384PublicKeyPo... constant p521PrivateKeyHex (line 48) | p521PrivateKeyHex = "00FAD06DAA62BA3B25D2FB40133DA757205DE67F5BB001... constant p521PublicKeyPointXHex (line 49) | p521PublicKeyPointXHex = "01894550D0785932E00EAA23B694F213F8C3121F86DC97... constant p521PublicKeyPointYHex (line 50) | p521PublicKeyPointYHex = "00493101C962CD4D2FDDF782285E64584139C2F91B47F8... constant p521PublicKeyPointHex (line 51) | p521PublicKeyPointHex = "04" + p521PublicKeyPointXHex + p521PublicKeyPo... constant n2048Base64 (line 55) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 56) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 57) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 58) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 59) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 60) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 61) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... constant n2048BigInt16 (line 65) | n2048BigInt16 = "b3795dceabcbd81fc437fd1bef3f441fb3e795e0def5dcb6c84d... constant d2048BigInt10 (line 66) | d2048BigInt10 = "3221514782158521239046688407258406330028553231891834... constant p2048BigInt10 (line 67) | p2048BigInt10 = "1587749433534901134897530121352781110985412793687876... constant q2048BigInt10 (line 68) | q2048BigInt10 = "1426957184172900756514355138048761096234366854769167... constant dp2048BigInt10 (line 69) | dp2048BigInt10 = "5475733203649211201451695348095817426872194327316383... constant dq2048BigInt10 (line 70) | dq2048BigInt10 = "4123864239778253555759629875435789731400416288406247... constant qInv2048BigInt10 (line 71) | qInv2048BigInt10 = "4336928407136170912565699396923159384239288452243762... constant n3072Base64 (line 75) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJ... constant d3072Base64 (line 76) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuas... constant p3072Base64 (line 77) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_... constant q3072Base64 (line 78) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0... constant dp3072Base64 (line 79) | dp3072Base64 = "8b-0DNVlc5cay162WwzSv0UCIo8s7KWkXDdmEVHL_bCgooIztgD-cn... constant dq3072Base64 (line 80) | dq3072Base64 = "Pjwq6NNi3JKU4txx0gUPfd_Z6lTVwwKDZq9nvhoJzeev5y4nclPELa... constant qInv3072Base64 (line 81) | qInv3072Base64 = "GMyXHpGG-GwUTRQM6rvJriLJTo2FdTVvtqSgM5ke8hC6-jmkzRq_qZ... constant n4096Base64 (line 85) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUv... constant d4096Base64 (line 86) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1... constant p4096Base64 (line 87) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSO... constant q4096Base64 (line 88) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i... constant dp4096Base64 (line 89) | dp4096Base64 = "gVSGqrCgiWv5fxPj6x9_XEkZW0nMO2J3QSo2iHmLGPRkIt9HnLlBs7... constant dq4096Base64 (line 90) | dq4096Base64 = "th2E_5NKTkN7Fu4bS5_fSuEzcLU4W956VGShI8A0PfV1-eEo7535RC... constant qInv4096Base64 (line 91) | qInv4096Base64 = "IvuOX82bdnEE5xJE21MFjBgGHhsNH2O3Pi1ZqV4qEM2HQmoz2hPCh8... function mustCreateJWTECDSAParameters (line 94) | func mustCreateJWTECDSAParameters(t *testing.T, kidStrategy jwtecdsa.KID... function mustCreateJWTECDSAPublicKey (line 103) | func mustCreateJWTECDSAPublicKey(t *testing.T, opts jwtecdsa.PublicKeyOp... function mustCreateJWTECDSAPrivateKey (line 112) | func mustCreateJWTECDSAPrivateKey(t *testing.T, keyBytes []byte, pub *jw... function mustCreateJWTRSASSAPKCS1Parameters (line 122) | func mustCreateJWTRSASSAPKCS1Parameters(t *testing.T, opts jwtrsassapkcs... function mustCreateJWTRSASSAPKCS1PublicKey (line 131) | func mustCreateJWTRSASSAPKCS1PublicKey(t *testing.T, opts jwtrsassapkcs1... function mustCreateJWTRSASSAPKCS1PrivateKey (line 140) | func mustCreateJWTRSASSAPKCS1PrivateKey(t *testing.T, opts jwtrsassapkcs... function mustCreateJWTRSASSAPSSParameters (line 149) | func mustCreateJWTRSASSAPSSParameters(t *testing.T, opts jwtrsassapss.Pa... function mustCreateJWTRSASSAPSSPublicKey (line 158) | func mustCreateJWTRSASSAPSSPublicKey(t *testing.T, opts jwtrsassapss.Pub... function mustCreateJWTRSASSAPSSPrivateKey (line 167) | func mustCreateJWTRSASSAPSSPrivateKey(t *testing.T, opts jwtrsassapss.Pr... function mustHexDecode (line 176) | func mustHexDecode(t *testing.T, hexStr string) []byte { function mustBase64Decode (line 185) | func mustBase64Decode(t *testing.T, in string) []byte { type privateKey (line 194) | type privateKey interface type jwtSignatureTestVector (line 198) | type jwtSignatureTestVector struct constant es256X (line 208) | es256X = "f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU" constant es256Y (line 209) | es256Y = "x_FEzRu9m36HLN_tue659LNpXW6pCyStikYjKIWI5a0" constant es256S (line 210) | es256S = "jpsQnnGQmL-YBIffH1136cspYG6-0iY7X1fCE9-E9LI" function jwtSignatureTestVectors (line 213) | func jwtSignatureTestVectors(t *testing.T) []jwtSignatureTestVector { function mustCreateKeysetHandles (line 619) | func mustCreateKeysetHandles(t *testing.T, secretKey key.Key, publicKey ... function TestSignerVerfierTestVectors (line 641) | func TestSignerVerfierTestVectors(t *testing.T) { function TestSignerVerfierCreator (line 686) | func TestSignerVerfierCreator(t *testing.T) { FILE: jwt/jwt_hmac_key_manager_test.go type jwtKeyManagerTestCase (line 28) | type jwtKeyManagerTestCase struct constant typeURL (line 35) | typeURL = "type.googleapis.com/google.crypto.tink.JwtHmacKey" function generateKeyFormat (line 38) | func generateKeyFormat(keySize uint32, algorithm jwtmacpb.JwtHmacAlgorit... function TestDoesSupport (line 45) | func TestDoesSupport(t *testing.T) { function TestTypeURL (line 55) | func TestTypeURL(t *testing.T) { function TestNewKeyInvalidFormatFails (line 92) | func TestNewKeyInvalidFormatFails(t *testing.T) { function TestNewDataInvalidFormatFails (line 110) | func TestNewDataInvalidFormatFails(t *testing.T) { function TestNewKey (line 143) | func TestNewKey(t *testing.T) { function TestNewKeyData (line 172) | func TestNewKeyData(t *testing.T) { function generateKey (line 197) | func generateKey(keySize, version uint32, algorithm jwtmacpb.JwtHmacAlgo... function TestKeyManagerPrimitiveAlwaysFails (line 206) | func TestKeyManagerPrimitiveAlwaysFails(t *testing.T) { function TestGeneratesDifferentKeys (line 220) | func TestGeneratesDifferentKeys(t *testing.T) { FILE: jwt/jwt_key_templates.go function createJWTHMACKeyTemplate (line 29) | func createJWTHMACKeyTemplate(keySize uint32, algorithm jwtmacpb.JwtHmac... function createJWTECDSAKeyTemplate (line 46) | func createJWTECDSAKeyTemplate(algorithm jepb.JwtEcdsaAlgorithm, outputP... function createJWTRSKeyTemplate (line 62) | func createJWTRSKeyTemplate(algorithm jrsppb.JwtRsaSsaPkcs1Algorithm, mo... function createJWTPSKeyTemplate (line 80) | func createJWTPSKeyTemplate(algorithm jrpsspb.JwtRsaSsaPssAlgorithm, mod... function HS256Template (line 100) | func HS256Template() *tinkpb.KeyTemplate { function RawHS256Template (line 106) | func RawHS256Template() *tinkpb.KeyTemplate { function HS384Template (line 112) | func HS384Template() *tinkpb.KeyTemplate { function RawHS384Template (line 118) | func RawHS384Template() *tinkpb.KeyTemplate { function HS512Template (line 124) | func HS512Template() *tinkpb.KeyTemplate { function RawHS512Template (line 130) | func RawHS512Template() *tinkpb.KeyTemplate { function ES256Template (line 136) | func ES256Template() *tinkpb.KeyTemplate { function RawES256Template (line 142) | func RawES256Template() *tinkpb.KeyTemplate { function ES384Template (line 148) | func ES384Template() *tinkpb.KeyTemplate { function RawES384Template (line 154) | func RawES384Template() *tinkpb.KeyTemplate { function ES512Template (line 160) | func ES512Template() *tinkpb.KeyTemplate { function RawES512Template (line 166) | func RawES512Template() *tinkpb.KeyTemplate { function RS256_2048_F4_Key_Template (line 172) | func RS256_2048_F4_Key_Template() *tinkpb.KeyTemplate { function RawRS256_2048_F4_Key_Template (line 178) | func RawRS256_2048_F4_Key_Template() *tinkpb.KeyTemplate { function RS256_3072_F4_Key_Template (line 184) | func RS256_3072_F4_Key_Template() *tinkpb.KeyTemplate { function RawRS256_3072_F4_Key_Template (line 190) | func RawRS256_3072_F4_Key_Template() *tinkpb.KeyTemplate { function RS384_3072_F4_Key_Template (line 196) | func RS384_3072_F4_Key_Template() *tinkpb.KeyTemplate { function RawRS384_3072_F4_Key_Template (line 202) | func RawRS384_3072_F4_Key_Template() *tinkpb.KeyTemplate { function RS512_4096_F4_Key_Template (line 208) | func RS512_4096_F4_Key_Template() *tinkpb.KeyTemplate { function RawRS512_4096_F4_Key_Template (line 214) | func RawRS512_4096_F4_Key_Template() *tinkpb.KeyTemplate { function PS256_2048_F4_Key_Template (line 220) | func PS256_2048_F4_Key_Template() *tinkpb.KeyTemplate { function RawPS256_2048_F4_Key_Template (line 226) | func RawPS256_2048_F4_Key_Template() *tinkpb.KeyTemplate { function PS256_3072_F4_Key_Template (line 232) | func PS256_3072_F4_Key_Template() *tinkpb.KeyTemplate { function RawPS256_3072_F4_Key_Template (line 238) | func RawPS256_3072_F4_Key_Template() *tinkpb.KeyTemplate { function PS384_3072_F4_Key_Template (line 244) | func PS384_3072_F4_Key_Template() *tinkpb.KeyTemplate { function RawPS384_3072_F4_Key_Template (line 250) | func RawPS384_3072_F4_Key_Template() *tinkpb.KeyTemplate { function PS512_4096_F4_Key_Template (line 256) | func PS512_4096_F4_Key_Template() *tinkpb.KeyTemplate { function RawPS512_4096_F4_Key_Template (line 262) | func RawPS512_4096_F4_Key_Template() *tinkpb.KeyTemplate { FILE: jwt/jwt_key_templates_test.go type templateTestCase (line 27) | type templateTestCase struct function TestJWTComputeVerifyMAC (line 32) | func TestJWTComputeVerifyMAC(t *testing.T) { function TestJWTSignVerify (line 86) | func TestJWTSignVerify(t *testing.T) { FILE: jwt/jwt_mac.go type MAC (line 19) | type MAC interface FILE: jwt/jwt_mac_benchmark_test.go function BenchmarkComputeMAC (line 44) | func BenchmarkComputeMAC(b *testing.B) { function BenchmarkVerifyMAC (line 80) | func BenchmarkVerifyMAC(b *testing.B) { FILE: jwt/jwt_mac_factory.go type macAndKeyID (line 29) | type macAndKeyID struct function NewMAC (line 35) | func NewMAC(handle *keyset.Handle) (MAC, error) { function NewMACWithConfig (line 41) | func NewMACWithConfig(handle *keyset.Handle, config keyset.Config) (MAC,... function newWrappedJWTMAC (line 52) | func newWrappedJWTMAC(ps *primitiveset.PrimitiveSet[MAC]) (*wrappedJWTMA... type wrappedJWTMAC (line 88) | type wrappedJWTMAC struct method ComputeMACAndEncode (line 125) | func (w *wrappedJWTMAC) ComputeMACAndEncode(token *RawJWT) (string, er... method VerifyMACAndDecode (line 135) | func (w *wrappedJWTMAC) VerifyMACAndDecode(compact string, validator *... function createMacLoggers (line 97) | func createMacLoggers[T any](ps *primitiveset.PrimitiveSet[T]) (monitori... FILE: jwt/jwt_mac_factory_test.go constant stubKeyTypeURL (line 46) | stubKeyTypeURL = "type.googleapis.com/google.crypto.tink.StubKey" function newJWTHMACKey (line 49) | func newJWTHMACKey(algorithm jwtmacpb.JwtHmacAlgorithm, kid *jwtmacpb.Jw... function newKeyData (line 58) | func newKeyData(key *jwtmacpb.JwtHmacKey) (*tinkpb.KeyData, error) { function createJWTMAC (line 70) | func createJWTMAC(keyData *tinkpb.KeyData, prefixType tinkpb.OutputPrefi... function verifyMACCompareSubject (line 79) | func verifyMACCompareSubject(p jwt.MAC, compact string, validator *jwt.V... function TestNilKeyHandle (line 94) | func TestNilKeyHandle(t *testing.T) { function TestFactorySameKeyMaterialWithRawPrefixAndNoKIDShouldIgnoreHeader (line 100) | func TestFactorySameKeyMaterialWithRawPrefixAndNoKIDShouldIgnoreHeader(t... function TestFactorySameKeyMaterialWithDifferentPrefixAndKIDShouldFailVerification (line 134) | func TestFactorySameKeyMaterialWithDifferentPrefixAndKIDShouldFailVerifi... function TestFactoryDifferentKeyShouldFailValidation (line 176) | func TestFactoryDifferentKeyShouldFailValidation(t *testing.T) { function TestFactoryWithRAWKeyAndKID (line 215) | func TestFactoryWithRAWKeyAndKID(t *testing.T) { function TestFactoryWithInvalidPrimitiveSetType (line 250) | func TestFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestVerifyMACAndDecodeReturnsValidationError (line 260) | func TestVerifyMACAndDecodeReturnsValidationError(t *testing.T) { function TestComputeAndVerifyWithoutAnnotationsEmitsNoMonitoring (line 297) | func TestComputeAndVerifyWithoutAnnotationsEmitsNoMonitoring(t *testing.... type stubFullMAC (line 337) | type stubFullMAC struct method ComputeMACAndEncode (line 341) | func (s *stubFullMAC) ComputeMACAndEncode(_ *jwt.RawJWT) (string, erro... method VerifyMACAndDecode (line 348) | func (s *stubFullMAC) VerifyMACAndDecode(compact string, _ *jwt.Valida... type stubKey (line 356) | type stubKey struct method Parameters (line 361) | func (s *stubKey) Parameters() key.Parameters { return nil } method Equal (line 362) | func (s *stubKey) Equal(_ key.Key) bool { return false } method IDRequirement (line 363) | func (s *stubKey) IDRequirement() (uint32, bool) { type stubKeyParser (line 368) | type stubKeyParser struct method ParseKey (line 370) | func (s *stubKeyParser) ParseKey(keySerialization *protoserialization.... type stubKeySerializer (line 379) | type stubKeySerializer struct method SerializeKey (line 381) | func (s *stubKeySerializer) SerializeKey(k key.Key) (*protoserializati... function TestMACPrimitiveFactoryUsesFullPrimitiveIfRegistered (line 397) | func TestMACPrimitiveFactoryUsesFullPrimitiveIfRegistered(t *testing.T) { function TestComputeAndVerifyWithAnnotationsEmitsMonitoring (line 454) | func TestComputeAndVerifyWithAnnotationsEmitsMonitoring(t *testing.T) { type alwaysFailingStubMAC (line 529) | type alwaysFailingStubMAC struct method ComputeMACAndEncode (line 531) | func (s *alwaysFailingStubMAC) ComputeMACAndEncode(_ *jwt.RawJWT) (str... method VerifyMACAndDecode (line 535) | func (s *alwaysFailingStubMAC) VerifyMACAndDecode(compact string, _ *j... function TestComputeFailureEmitsMonitoring (line 539) | func TestComputeFailureEmitsMonitoring(t *testing.T) { function TestVerifyFailureEmitsMonitoring (line 604) | func TestVerifyFailureEmitsMonitoring(t *testing.T) { function TestNewMACWithConfigFailsIfNoPrimitiveConstructorRegistered (line 646) | func TestNewMACWithConfigFailsIfNoPrimitiveConstructorRegistered(t *test... function TestNewMACWithConfig (line 684) | func TestNewMACWithConfig(t *testing.T) { FILE: jwt/jwt_mac_kid.go type macWithKID (line 24) | type macWithKID struct method ComputeMACAndEncodeWithKID (line 43) | func (jm *macWithKID) ComputeMACAndEncodeWithKID(token *RawJWT, kid *s... method VerifyMACAndDecodeWithKID (line 56) | func (jm *macWithKID) VerifyMACAndDecodeWithKID(compact string, verifi... function newMACWithKID (line 31) | func newMACWithKID(tm tink.MAC, algorithm string, customKID *string) (*m... FILE: jwt/jwt_mac_kid_test.go function TestNewMACwithNilMACFails (line 26) | func TestNewMACwithNilMACFails(t *testing.T) { function createMACwithKID (line 32) | func createMACwithKID(customKID *string) (*macWithKID, error) { function TestCreateAndValidateToken (line 45) | func TestCreateAndValidateToken(t *testing.T) { function TestCreateAndValidateTokenWithKID (line 103) | func TestCreateAndValidateTokenWithKID(t *testing.T) { function TestValidateFixedToken (line 157) | func TestValidateFixedToken(t *testing.T) { function TestInvalidTokens (line 221) | func TestInvalidTokens(t *testing.T) { function TestCustomKIDAndTinkPrefixKeyFail (line 244) | func TestCustomKIDAndTinkPrefixKeyFail(t *testing.T) { FILE: jwt/jwt_rsa_ssa_pkcs1_signer_key_manager_test.go constant testJWTRSSignerKeyType (line 29) | testJWTRSSignerKeyType = "type.googleapis.com/google.crypto.tink.JwtRsaS... function makeValidJWTRSPrivateKey (line 31) | func makeValidJWTRSPrivateKey() (*jrsppb.JwtRsaSsaPkcs1PrivateKey, error) { function TestJWTRSSignerKeyManagerDoesSupport (line 94) | func TestJWTRSSignerKeyManagerDoesSupport(t *testing.T) { function TestJWTRSSignerKeyManagerTypeURL (line 107) | func TestJWTRSSignerKeyManagerTypeURL(t *testing.T) { function TestJWTRSSignerPrimitiveAlwaysFails (line 117) | func TestJWTRSSignerPrimitiveAlwaysFails(t *testing.T) { function TestJWTRSSignerKeyManagerPublicKeyData (line 135) | func TestJWTRSSignerKeyManagerPublicKeyData(t *testing.T) { function TestJWTRSSignerKeyManagerPublicKeyDataWithNilKeyFails (line 167) | func TestJWTRSSignerKeyManagerPublicKeyDataWithNilKeyFails(t *testing.T) { function TestJWTRSSignerKeyManagerNewKeyData (line 177) | func TestJWTRSSignerKeyManagerNewKeyData(t *testing.T) { function TestJWTRSSignerKeyManagerNewKeyDataFailsWithInvalidFormat (line 252) | func TestJWTRSSignerKeyManagerNewKeyDataFailsWithInvalidFormat(t *testin... function TestJWTRSSignerKeyManagerNewKeyDataFailsWithNilKeyFormat (line 322) | func TestJWTRSSignerKeyManagerNewKeyDataFailsWithNilKeyFormat(t *testing... function TestJWTRSSignerKeyManagerNewKeyDataFailsWithInvalidSerializedKeyFormat (line 335) | func TestJWTRSSignerKeyManagerNewKeyDataFailsWithInvalidSerializedKeyFor... FILE: jwt/jwt_rsa_ssa_pkcs1_verifier_key_manager_test.go constant testJWTRSVerifierKeyType (line 26) | testJWTRSVerifierKeyType = "type.googleapis.com/google.crypto.tink.JwtRs... function makeValidRSPublicKey (line 28) | func makeValidRSPublicKey() (*jrsppb.JwtRsaSsaPkcs1PublicKey, error) { function TestJWTRSVerifierNotImplemented (line 53) | func TestJWTRSVerifierNotImplemented(t *testing.T) { function TestJWTRSVerifierDoesSupport (line 76) | func TestJWTRSVerifierDoesSupport(t *testing.T) { function TestJWTRSVerifierTypeURL (line 89) | func TestJWTRSVerifierTypeURL(t *testing.T) { function TestJWTRSVerifierPrimitiveAlwaysFails (line 99) | func TestJWTRSVerifierPrimitiveAlwaysFails(t *testing.T) { FILE: jwt/jwt_rsa_ssa_pss_signer_key_manager_test.go constant testJWTPSSignerKeyType (line 29) | testJWTPSSignerKeyType = "type.googleapis.com/google.crypto.tink.JwtRsaS... function makeValidJWTPSPrivateKey (line 31) | func makeValidJWTPSPrivateKey() (*jrsppb.JwtRsaSsaPssPrivateKey, error) { function TestJWTPSSignerKeyManagerDoesSupport (line 94) | func TestJWTPSSignerKeyManagerDoesSupport(t *testing.T) { function TestJWTPSSignerKeyManagerTypeURL (line 107) | func TestJWTPSSignerKeyManagerTypeURL(t *testing.T) { function TestJWTPSSignerPrimitiveAlwaysFails (line 117) | func TestJWTPSSignerPrimitiveAlwaysFails(t *testing.T) { function TestJWTPSSignerKeyManagerPublicKeyData (line 135) | func TestJWTPSSignerKeyManagerPublicKeyData(t *testing.T) { function TestJWTPSSignerKeyManagerNewKeyData (line 167) | func TestJWTPSSignerKeyManagerNewKeyData(t *testing.T) { function TestJWTPSSignerKeyManagerNewKeyDataFailsWithInvalidFormat (line 209) | func TestJWTPSSignerKeyManagerNewKeyDataFailsWithInvalidFormat(t *testin... function TestJWTPSSignerKeyManagerNewKeyDataFailsWithNilKeyFormat (line 279) | func TestJWTPSSignerKeyManagerNewKeyDataFailsWithNilKeyFormat(t *testing... function TestJWTPSSignerKeyManagerNewKeyDataFailsWithInvalidSerializedKeyFormat (line 292) | func TestJWTPSSignerKeyManagerNewKeyDataFailsWithInvalidSerializedKeyFor... FILE: jwt/jwt_rsa_ssa_pss_verify_key_manager_test.go constant testJWTPSVerifierKeyType (line 26) | testJWTPSVerifierKeyType = "type.googleapis.com/google.crypto.tink.JwtRs... function makeValidPSPublicKey (line 28) | func makeValidPSPublicKey() (*jrsppb.JwtRsaSsaPssPublicKey, error) { function TestJWTPSVerifierNotImplemented (line 53) | func TestJWTPSVerifierNotImplemented(t *testing.T) { function TestJWTPSVerifierDoesSupport (line 76) | func TestJWTPSVerifierDoesSupport(t *testing.T) { function TestJWTPSVerifierTypeURL (line 89) | func TestJWTPSVerifierTypeURL(t *testing.T) { function TestJWTPSVerifierPrimitiveAlwaysFails (line 99) | func TestJWTPSVerifierPrimitiveAlwaysFails(t *testing.T) { FILE: jwt/jwt_signature_benchmark_test.go function BenchmarkSign (line 68) | func BenchmarkSign(b *testing.B) { function BenchmarkVerify (line 104) | func BenchmarkVerify(b *testing.B) { FILE: jwt/jwt_signer.go type Signer (line 19) | type Signer interface FILE: jwt/jwt_signer_factory.go function NewSigner (line 31) | func NewSigner(handle *keyset.Handle) (Signer, error) { function NewSignerWithConfig (line 40) | func NewSignerWithConfig(handle *keyset.Handle, config keyset.Config) (S... function newWrappedSigner (line 51) | func newWrappedSigner(ps *primitiveset.PrimitiveSet[Signer]) (Signer, er... type wrappedSigner (line 70) | type wrappedSigner struct method SignAndEncode (line 94) | func (w *wrappedSigner) SignAndEncode(rawJWT *RawJWT) (string, error) { function createSignerLogger (line 78) | func createSignerLogger[T any](ps *primitiveset.PrimitiveSet[T]) (monito... FILE: jwt/jwt_signer_kid.go type signerWithKID (line 23) | type signerWithKID struct method SignAndEncodeWithKID (line 42) | func (s *signerWithKID) SignAndEncodeWithKID(rawJWT *RawJWT, kid *stri... function newSignerWithKID (line 29) | func newSignerWithKID(ts tink.Signer, algorithm string, customKID *strin... FILE: jwt/jwt_signer_verifier_factory_test.go function TestSignerVerifierFactoryWithInvalidPrimitiveSetType (line 46) | func TestSignerVerifierFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestSignerVerifierFactoryNilKeyset (line 59) | func TestSignerVerifierFactoryNilKeyset(t *testing.T) { function createJWTECDSAKey (line 68) | func createJWTECDSAKey(kid *string) (*jepb.JwtEcdsaPrivateKey, error) { function createKeyData (line 90) | func createKeyData(privKey *jepb.JwtEcdsaPrivateKey) (*tinkpb.KeyData, e... function createKeysetHandles (line 102) | func createKeysetHandles(privKey *tinkpb.KeyData, outputPrefixType tinkp... function createKeyHandlesFromKey (line 115) | func createKeyHandlesFromKey(t *testing.T, privKey *jepb.JwtEcdsaPrivate... function createKeyAndKeyHandles (line 127) | func createKeyAndKeyHandles(t *testing.T, kid *string, outputPrefixType ... function TestFactoryVerifyWithDifferentKeyFails (line 136) | func TestFactoryVerifyWithDifferentKeyFails(t *testing.T) { type signerVerifierFactoryKIDTestCase (line 175) | type signerVerifierFactoryKIDTestCase struct function TestFactorySignVerifyWithKIDFailure (line 183) | func TestFactorySignVerifyWithKIDFailure(t *testing.T) { function TestVerifyAndDecodeReturnsValidationError (line 242) | func TestVerifyAndDecodeReturnsValidationError(t *testing.T) { function TestFactorySignVerifyWithKIDSuccess (line 280) | func TestFactorySignVerifyWithKIDSuccess(t *testing.T) { function TestFactorySignVerifyWithoutAnnotationsEmitsNoMonitoring (line 361) | func TestFactorySignVerifyWithoutAnnotationsEmitsNoMonitoring(t *testing... function TestFactorySignWithAnnotationsEmitsMonitoringSuccess (line 406) | func TestFactorySignWithAnnotationsEmitsMonitoringSuccess(t *testing.T) { function TestFactoryVerifyWithAnnotationsEmitsMonitoringSuccess (line 488) | func TestFactoryVerifyWithAnnotationsEmitsMonitoringSuccess(t *testing.T) { function TestFactorySignAndVerifyWithAnnotationsEmitsMonitoringOnError (line 566) | func TestFactorySignAndVerifyWithAnnotationsEmitsMonitoringOnError(t *te... constant stubPrivateKeyURL (line 616) | stubPrivateKeyURL = "type.googleapis.com/google.crypto.tink.StubPrivateKey" constant stubPublicKeyURL (line 617) | stubPublicKeyURL = "type.googleapis.com/google.crypto.tink.StubPublicKey" type stubFullSigner (line 619) | type stubFullSigner struct method SignAndEncode (line 625) | func (s *stubFullSigner) SignAndEncode(_ *jwt.RawJWT) (string, error) { type stubFullVerifier (line 632) | type stubFullVerifier struct method VerifyAndDecode (line 636) | func (s *stubFullVerifier) VerifyAndDecode(t string, _ *jwt.Validator)... type stubParams (line 645) | type stubParams struct method Equal (line 649) | func (p *stubParams) Equal(_ key.Parameters) bool { return true } method HasIDRequirement (line 650) | func (p *stubParams) HasIDRequirement() bool { return true } type stubPublicKey (line 652) | type stubPublicKey struct method Equal (line 659) | func (p *stubPublicKey) Equal(_ key.Key) bool { return true } method Parameters (line 660) | func (p *stubPublicKey) Parameters() key.Parameters { return &stubP... method IDRequirement (line 661) | func (p *stubPublicKey) IDRequirement() (uint32, bool) { return p.idRe... method HasIDRequirement (line 662) | func (p *stubPublicKey) HasIDRequirement() bool { return p.pref... type stubPrivateKey (line 664) | type stubPrivateKey struct method Equal (line 671) | func (p *stubPrivateKey) Equal(_ key.Key) bool { return true } method Parameters (line 672) | func (p *stubPrivateKey) Parameters() key.Parameters { return &stub... method IDRequirement (line 673) | func (p *stubPrivateKey) IDRequirement() (uint32, bool) { return p.idR... method HasIDRequirement (line 674) | func (p *stubPrivateKey) HasIDRequirement() bool { return p.pre... method PublicKey (line 675) | func (p *stubPrivateKey) PublicKey() (key.Key, error) { type stubPublicKeySerialization (line 684) | type stubPublicKeySerialization struct method SerializeKey (line 688) | func (s *stubPublicKeySerialization) SerializeKey(key key.Key) (*proto... type stubPublicKeyParser (line 700) | type stubPublicKeyParser struct method ParseKey (line 704) | func (s *stubPublicKeyParser) ParseKey(serialization *protoserializati... type stubPrivateKeySerialization (line 712) | type stubPrivateKeySerialization struct method SerializeKey (line 716) | func (s *stubPrivateKeySerialization) SerializeKey(key key.Key) (*prot... type stubPrivateKeyParser (line 728) | type stubPrivateKeyParser struct method ParseKey (line 732) | func (s *stubPrivateKeyParser) ParseKey(serialization *protoserializat... function TestPrimitiveFactoryUsesFullPrimitiveIfRegistered (line 740) | func TestPrimitiveFactoryUsesFullPrimitiveIfRegistered(t *testing.T) { function TestPrimitiveFactoryMultipleKeys (line 827) | func TestPrimitiveFactoryMultipleKeys(t *testing.T) { function TestNewSignerWithConfigFailsIfNoPrimitiveConstructorRegistered (line 861) | func TestNewSignerWithConfigFailsIfNoPrimitiveConstructorRegistered(t *t... function TestNewSignerWithConfig (line 904) | func TestNewSignerWithConfig(t *testing.T) { function TestNewVerifierWithConfigFailsIfNoPrimitiveConstructorRegistered (line 966) | func TestNewVerifierWithConfigFailsIfNoPrimitiveConstructorRegistered(t ... function TestNewVerifierWithConfig (line 1013) | func TestNewVerifierWithConfig(t *testing.T) { FILE: jwt/jwt_signer_verifier_kid_test.go function createTinkECVerifier (line 26) | func createTinkECVerifier() (tink.Verifier, error) { function createTinkECSigner (line 43) | func createTinkECSigner() (tink.Signer, error) { function createESVerifier (line 56) | func createESVerifier(kid *string) (*verifierWithKID, error) { function createESSigner (line 68) | func createESSigner(kid *string) (*signerWithKID, error) { function TestVerifierWithFixedToken (line 80) | func TestVerifierWithFixedToken(t *testing.T) { function TestCreateSignValidateToken (line 119) | func TestCreateSignValidateToken(t *testing.T) { function TestSignerWithTinkAndCustomKIDFails (line 154) | func TestSignerWithTinkAndCustomKIDFails(t *testing.T) { type signerVerifierKIDTestCase (line 168) | type signerVerifierKIDTestCase struct function TestSignVerifyWithKID (line 178) | func TestSignVerifyWithKID(t *testing.T) { function TestSignVerifyWithKIDFailure (line 240) | func TestSignVerifyWithKIDFailure(t *testing.T) { function TestVerifierModifiedCompact (line 290) | func TestVerifierModifiedCompact(t *testing.T) { function TestVerifierInvalidInputs (line 326) | func TestVerifierInvalidInputs(t *testing.T) { function TestNewSignerWithNilTinkSignerFails (line 348) | func TestNewSignerWithNilTinkSignerFails(t *testing.T) { function TestNewVerifierWithNilTinkVerifierFails (line 354) | func TestNewVerifierWithNilTinkVerifierFails(t *testing.T) { FILE: jwt/jwt_test.go function Example_signAndVerify (line 30) | func Example_signAndVerify() { function Example_generateJWKS (line 145) | func Example_generateJWKS() { function Example_verifyWithJWKS (line 191) | func Example_verifyWithJWKS() { function Example_computeMACAndVerify (line 254) | func Example_computeMACAndVerify() { FILE: jwt/jwt_validator.go constant jwtMaxClockSkewMinutes (line 23) | jwtMaxClockSkewMinutes = 10 type ValidatorOpts (line 27) | type ValidatorOpts struct type Validator (line 47) | type Validator struct method Validate (line 81) | func (v *Validator) Validate(rawJWT *RawJWT) error { method validateTimestamps (line 100) | func (v *Validator) validateTimestamps(rawJWT *RawJWT) error { method validateTypeHeader (line 139) | func (v *Validator) validateTypeHeader(rawJWT *RawJWT) error { method validateIssuer (line 157) | func (v *Validator) validateIssuer(rawJWT *RawJWT) error { method validateAudiences (line 175) | func (v *Validator) validateAudiences(rawJWT *RawJWT) error { function NewValidator (line 52) | func NewValidator(opts *ValidatorOpts) (*Validator, error) { function validateFieldPresence (line 198) | func validateFieldPresence(ignore bool, isPresent bool, isExpected bool)... FILE: jwt/jwt_validator_test.go type validationTestCase (line 24) | type validationTestCase struct function TestNewValidatorFailure (line 30) | func TestNewValidatorFailure(t *testing.T) { function TestValidationFailures (line 85) | func TestValidationFailures(t *testing.T) { function TestExpiredTokenValidationReturnsExpiredErr (line 277) | func TestExpiredTokenValidationReturnsExpiredErr(t *testing.T) { function TestExpirationGetsValidatedFirst (line 302) | func TestExpirationGetsValidatedFirst(t *testing.T) { function TestValidationSuccess (line 329) | func TestValidationSuccess(t *testing.T) { FILE: jwt/jwt_verifier.go type Verifier (line 19) | type Verifier interface FILE: jwt/jwt_verifier_factory.go type verifierAndKeyID (line 29) | type verifierAndKeyID struct function NewVerifier (line 36) | func NewVerifier(handle *keyset.Handle) (Verifier, error) { function NewVerifierWithConfig (line 45) | func NewVerifierWithConfig(handle *keyset.Handle, config keyset.Config) ... function newWrappedVerifier (line 56) | func newWrappedVerifier(ps *primitiveset.PrimitiveSet[Verifier]) (Verifi... function createVerifierLogger (line 80) | func createVerifierLogger[T any](ps *primitiveset.PrimitiveSet[T]) (moni... type wrappedVerifier (line 98) | type wrappedVerifier struct method VerifyAndDecode (line 105) | func (w *wrappedVerifier) VerifyAndDecode(compact string, validator *V... FILE: jwt/jwt_verifier_kid.go type verifierWithKID (line 23) | type verifierWithKID struct method VerifyAndDecodeWithKID (line 42) | func (v *verifierWithKID) VerifyAndDecodeWithKID(compact string, valid... function newVerifierWithKID (line 29) | func newVerifierWithKID(tv tink.Verifier, algorithm string, customKID *s... FILE: jwt/jwtecdsa/jwtecdsa.go function init (line 23) | func init() { FILE: jwt/jwtecdsa/key.go type PublicKey (line 29) | type PublicKey struct method Parameters (line 125) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method PublicPoint (line 132) | func (k *PublicKey) PublicPoint() []byte { return k.publicPoint } method KID (line 137) | func (k *PublicKey) KID() (string, bool) { return k.kid, k.hasKID } method IDRequirement (line 140) | func (k *PublicKey) IDRequirement() (uint32, bool) { method Equal (line 145) | func (k *PublicKey) Equal(other key.Key) bool { function ecdhCurveFromAlgorithm (line 40) | func ecdhCurveFromAlgorithm(ct Algorithm) (ecdh.Curve, error) { function computeKID (line 53) | func computeKID(customKID string, hasCustomKID bool, idRequirement uint3... type PublicKeyOpts (line 82) | type PublicKeyOpts struct function NewPublicKey (line 96) | func NewPublicKey(opts PublicKeyOpts) (*PublicKey, error) { type PrivateKey (line 154) | type PrivateKey struct method Parameters (line 187) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method PrivateKeyValue (line 190) | func (k *PrivateKey) PrivateKeyValue() secretdata.Bytes { return k.pri... method PublicKey (line 193) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method IDRequirement (line 196) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method Equal (line 199) | func (k *PrivateKey) Equal(other key.Key) bool { function NewPrivateKeyFromPublicKey (line 165) | func NewPrivateKeyFromPublicKey(keyBytes secretdata.Bytes, publicKey *Pu... function createPrivateKey (line 205) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: jwt/jwtecdsa/key_test.go constant p256PrivateKeyHex (line 30) | p256PrivateKeyHex = "C9AFA9D845BA75166B5C215767B1D6934E50C3DB... constant p256PublicKeyPointXHex (line 31) | p256PublicKeyPointXHex = "60FED4BA255A9D31C961EB74C6356D68C049B892... constant p256PublicKeyPointYHex (line 32) | p256PublicKeyPointYHex = "7903FE1008B8BC99A41AE9E95628BC64F2F1B20C... constant p256PublicKeyPointHex (line 33) | p256PublicKeyPointHex = "04" + p256PublicKeyPointXHex + p256Publi... constant p256PublicKeyPointInvalidHex (line 34) | p256PublicKeyPointInvalidHex = "04" + constant otherP256PublicKeyPointHex (line 40) | otherP256PublicKeyPointHex = "042927b10512bae3eddcfe467828128bad29032699... constant p384PrivateKeyHex (line 43) | p384PrivateKeyHex = "6B9D3DAD2E1B8C1C05B19875B6659F4DE23C3B66... constant p384PublicKeyPointXHex (line 44) | p384PublicKeyPointXHex = "EC3A4E415B4E19A4568618029F427FA5DA9A8BC4... constant p384PublicKeyPointYHex (line 45) | p384PublicKeyPointYHex = "8015D9B72D7D57244EA8EF9AC0C621896708A593... constant p384PublicKeyPointHex (line 46) | p384PublicKeyPointHex = "04" + p384PublicKeyPointXHex + p384Publi... constant p384PublicKeyPointInvalidHex (line 47) | p384PublicKeyPointInvalidHex = "04" + constant p521PrivateKeyHex (line 52) | p521PrivateKeyHex = "00FAD06DAA62BA3B25D2FB40133DA757205DE67F... constant p521PublicKeyPointXHex (line 53) | p521PublicKeyPointXHex = "01894550D0785932E00EAA23B694F213F8C3121F... constant p521PublicKeyPointYHex (line 54) | p521PublicKeyPointYHex = "00493101C962CD4D2FDDF782285E64584139C2F9... constant p521PublicKeyPointHex (line 55) | p521PublicKeyPointHex = "04" + p521PublicKeyPointXHex + p521Publi... constant p521PublicKeyPointInvalidHex (line 56) | p521PublicKeyPointInvalidHex = "04" + function mustHexDecode (line 61) | func mustHexDecode(t *testing.T, s string) []byte { function TestNewPublicKey (line 70) | func TestNewPublicKey(t *testing.T) { function TestPublicKeyEqual_Different (line 148) | func TestPublicKeyEqual_Different(t *testing.T) { function TestNewPublicKey_Errors (line 238) | func TestNewPublicKey_Errors(t *testing.T) { function TestNewPrivateKey (line 369) | func TestNewPrivateKey(t *testing.T) { function mustCreatePrivateKey (line 462) | func mustCreatePrivateKey(t *testing.T, keyBytes []byte, opts jwtecdsa.P... function TestPrivateKeyEqual_Different (line 473) | func TestPrivateKeyEqual_Different(t *testing.T) { function TestNewPrivateKey_Errors (line 525) | func TestNewPrivateKey_Errors(t *testing.T) { function TestPrivateKeyCreator (line 569) | func TestPrivateKeyCreator(t *testing.T) { function TestPrivateKeyCreator_Errors (line 610) | func TestPrivateKeyCreator_Errors(t *testing.T) { FILE: jwt/jwtecdsa/parameters.go type KIDStrategy (line 22) | type KIDStrategy method String (line 58) | func (k KIDStrategy) String() string { constant UnknownKIDStrategy (line 26) | UnknownKIDStrategy KIDStrategy = iota constant Base64EncodedKeyIDAsKID (line 36) | Base64EncodedKeyIDAsKID constant IgnoredKID (line 42) | IgnoredKID constant CustomKID (line 54) | CustomKID type Algorithm (line 72) | type Algorithm method String (line 86) | func (a Algorithm) String() string { constant UnknownAlgorithm (line 76) | UnknownAlgorithm Algorithm = iota constant ES256 (line 78) | ES256 constant ES384 (line 80) | ES384 constant ES512 (line 82) | ES512 type Parameters (line 100) | type Parameters struct method KIDStrategy (line 119) | func (p *Parameters) KIDStrategy() KIDStrategy { return p.kidStrategy } method Algorithm (line 122) | func (p *Parameters) Algorithm() Algorithm { return p.algorithm } method HasIDRequirement (line 126) | func (p *Parameters) HasIDRequirement() bool { return p.KIDStrategy() ... method Equal (line 129) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 108) | func NewParameters(kidStrategy KIDStrategy, algorithm Algorithm) (*Param... FILE: jwt/jwtecdsa/parameters_test.go function TestNewParameters (line 23) | func TestNewParameters(t *testing.T) { function TestNewParameters_Errors (line 64) | func TestNewParameters_Errors(t *testing.T) { function mustCreateParameters (line 73) | func mustCreateParameters(t *testing.T, kidStrategy jwtecdsa.KIDStrategy... function TestEqual_Different (line 82) | func TestEqual_Different(t *testing.T) { FILE: jwt/jwtecdsa/protoserialization.go constant privateKeyTypeURL (line 31) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.JwtEcdsaPriv... constant publicKeyTypeURL (line 32) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.JwtEcdsaPubl... type parametersSerializer (line 35) | type parametersSerializer struct method Serialize (line 88) | func (s *parametersSerializer) Serialize(p key.Parameters) (*tinkpb.Ke... function algorithmToProto (line 39) | func algorithmToProto(a Algorithm) jwtecdsapb.JwtEcdsaAlgorithm { function algorithmFromProto (line 51) | func algorithmFromProto(a jwtecdsapb.JwtEcdsaAlgorithm) Algorithm { function outputPrefixTypeFromKIDStrategy (line 63) | func outputPrefixTypeFromKIDStrategy(s KIDStrategy) tinkpb.OutputPrefixT... function kidStrategyFromOutputPrefixType (line 75) | func kidStrategyFromOutputPrefixType(s tinkpb.OutputPrefixType, hasCusto... type parametersParser (line 111) | type parametersParser struct method Parse (line 115) | func (s *parametersParser) Parse(kt *tinkpb.KeyTemplate) (key.Paramete... function publicKeyToProto (line 133) | func publicKeyToProto(k *PublicKey) (*jwtecdsapb.JwtEcdsaPublicKey, erro... type publicKeySerializer (line 161) | type publicKeySerializer struct method SerializeKey (line 177) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function coordinateSizeFromAlgorithm (line 165) | func coordinateSizeFromAlgorithm(a Algorithm) (int, error) { function publicKeyFromProto (line 199) | func publicKeyFromProto(protoPublicKey *jwtecdsapb.JwtEcdsaPublicKey, ke... type publicKeyParser (line 238) | type publicKeyParser struct method ParseKey (line 242) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... type privateKeySerializer (line 260) | type privateKeySerializer struct method SerializeKey (line 264) | func (s *privateKeySerializer) SerializeKey(k key.Key) (*protoserializ... type privateKeyParser (line 306) | type privateKeyParser struct method ParseKey (line 310) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... FILE: jwt/jwtecdsa/protoserialization_test.go function mustMarshal (line 34) | func mustMarshal(t *testing.T, msg proto.Message) []byte { function TestParametersSerializer (line 43) | func TestParametersSerializer(t *testing.T) { function TestParametersParser (line 160) | func TestParametersParser(t *testing.T) { function TestParametersParser_Errors (line 244) | func TestParametersParser_Errors(t *testing.T) { function mustNewKeySerialization (line 310) | func mustNewKeySerialization(t *testing.T, keyData *tinkpb.KeyData, outp... function mustCreatePublicKey (line 319) | func mustCreatePublicKey(t *testing.T, opts jwtecdsa.PublicKeyOpts) *jwt... type publicKeyTestCase (line 328) | type publicKeyTestCase struct function getPublicKeyTestCases (line 334) | func getPublicKeyTestCases(t *testing.T) []*publicKeyTestCase { function TestPublicKeySerializer (line 532) | func TestPublicKeySerializer(t *testing.T) { function TestPublicKeyParser (line 546) | func TestPublicKeyParser(t *testing.T) { function TestPublicKeyParser_Errors (line 599) | func TestPublicKeyParser_Errors(t *testing.T) { type privateKeyTestCase (line 734) | type privateKeyTestCase struct function coordinateSizeFromAlgorithm (line 740) | func coordinateSizeFromAlgorithm(t *testing.T, a jwtecdsa.Algorithm) int { function mustCreatePrivateKeyFromPublicKey (line 754) | func mustCreatePrivateKeyFromPublicKey(t *testing.T, keyBytes []byte, pu... function getPrivateKeyTestCases (line 764) | func getPrivateKeyTestCases(t *testing.T) []*privateKeyTestCase { function TestPrivateKeySerializer (line 823) | func TestPrivateKeySerializer(t *testing.T) { function TestPrivateKeyParser (line 837) | func TestPrivateKeyParser(t *testing.T) { function TestPrivateKeyParser_Errors (line 901) | func TestPrivateKeyParser_Errors(t *testing.T) { FILE: jwt/jwthmac/jwthmac.go constant keyTypeURL (line 24) | keyTypeURL = "type.googleapis.com/google.crypto.tink.JwtHmacKey" function init (line 27) | func init() { FILE: jwt/jwthmac/key.go type Key (line 25) | type Key struct method Parameters (line 99) | func (k *Key) Parameters() key.Parameters { return k.parameters } method KeyBytes (line 102) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method KID (line 107) | func (k *Key) KID() (string, bool) { return k.kid, k.hasKID } method IDRequirement (line 110) | func (k *Key) IDRequirement() (uint32, bool) { return k.idRequirement,... method Equal (line 113) | func (k *Key) Equal(other key.Key) bool { type KeyOpts (line 36) | type KeyOpts struct function computeKID (line 44) | func computeKID(customKID *string, idRequirement uint32, parameters *Par... function NewKey (line 70) | func NewKey(opts KeyOpts) (*Key, error) { function createKey (line 121) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: jwt/jwthmac/key_test.go type keyTestCase (line 26) | type keyTestCase struct function keyTestCases (line 33) | func keyTestCases(t *testing.T) []keyTestCase { function TestKey (line 93) | func TestKey(t *testing.T) { function TestPublicKeyEqual_Different (line 129) | func TestPublicKeyEqual_Different(t *testing.T) { function TestNewKey_Errors (line 221) | func TestNewKey_Errors(t *testing.T) { function TestKeyCreator (line 289) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_Errors (line 331) | func TestKeyCreator_Errors(t *testing.T) { FILE: jwt/jwthmac/parameters.go type KIDStrategy (line 22) | type KIDStrategy method String (line 58) | func (k KIDStrategy) String() string { constant UnknownKIDStrategy (line 26) | UnknownKIDStrategy KIDStrategy = iota constant Base64EncodedKeyIDAsKID (line 36) | Base64EncodedKeyIDAsKID constant IgnoredKID (line 42) | IgnoredKID constant CustomKID (line 54) | CustomKID type Algorithm (line 77) | type Algorithm method String (line 91) | func (a Algorithm) String() string { constant UnknownAlgorithm (line 81) | UnknownAlgorithm Algorithm = iota constant HS256 (line 83) | HS256 constant HS384 (line 85) | HS384 constant HS512 (line 87) | HS512 type Parameters (line 105) | type Parameters struct method KIDStrategy (line 149) | func (p *Parameters) KIDStrategy() KIDStrategy { return p.kidStrategy } method KeySizeInBytes (line 152) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method Algorithm (line 155) | func (p *Parameters) Algorithm() Algorithm { return p.algorithm } method HasIDRequirement (line 159) | func (p *Parameters) HasIDRequirement() bool { return p.KIDStrategy() ... method Equal (line 162) | func (p *Parameters) Equal(other key.Parameters) bool { function minKeySizeInBytes (line 116) | func minKeySizeInBytes(algorithm Algorithm) (int, error) { function NewParameters (line 130) | func NewParameters(keySizeInBytes int, kidStrategy KIDStrategy, algorith... FILE: jwt/jwthmac/parameters_test.go function TestNewParameters (line 23) | func TestNewParameters(t *testing.T) { function TestNewParameters_Errors (line 65) | func TestNewParameters_Errors(t *testing.T) { function mustCreateParameters (line 113) | func mustCreateParameters(t *testing.T, keySizeInBytes int, kidStrategy ... function TestEqual_Different (line 122) | func TestEqual_Different(t *testing.T) { FILE: jwt/jwthmac/protoserialization.go type parametersSerializer (line 28) | type parametersSerializer struct method Serialize (line 81) | func (s *parametersSerializer) Serialize(p key.Parameters) (*tinkpb.Ke... function algorithmToProto (line 32) | func algorithmToProto(a Algorithm) jwthmacpb.JwtHmacAlgorithm { function algorithmFromProto (line 44) | func algorithmFromProto(a jwthmacpb.JwtHmacAlgorithm) (Algorithm, error) { function outputPrefixTypeFromKIDStrategy (line 56) | func outputPrefixTypeFromKIDStrategy(s KIDStrategy) (tinkpb.OutputPrefix... function kidStrategyFromOutputPrefixType (line 68) | func kidStrategyFromOutputPrefixType(s tinkpb.OutputPrefixType, hasCusto... type parametersParser (line 109) | type parametersParser struct method Parse (line 113) | func (s *parametersParser) Parse(kt *tinkpb.KeyTemplate) (key.Paramete... type keySerializer (line 138) | type keySerializer struct method SerializeKey (line 142) | func (s *keySerializer) SerializeKey(k key.Key) (*protoserialization.K... type keyParser (line 177) | type keyParser struct method ParseKey (line 181) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... FILE: jwt/jwthmac/protoserialization_test.go function mustMarshal (line 30) | func mustMarshal(t *testing.T, msg proto.Message) []byte { type parametersTestCase (line 39) | type parametersTestCase struct function getParametersTestCases (line 45) | func getParametersTestCases(t *testing.T) []*parametersTestCase { function TestParametersSerializer (line 115) | func TestParametersSerializer(t *testing.T) { function TestParametersParser (line 129) | func TestParametersParser(t *testing.T) { function TestParametersParser_Errors (line 149) | func TestParametersParser_Errors(t *testing.T) { function mustNewKeySerialization (line 231) | func mustNewKeySerialization(t *testing.T, keyData *tinkpb.KeyData, outp... function mustCreateKey (line 240) | func mustCreateKey(t *testing.T, opts jwthmac.KeyOpts) *jwthmac.Key { type keySerializationTestCase (line 249) | type keySerializationTestCase struct function getKeySerializationTestCases (line 255) | func getKeySerializationTestCases(t *testing.T) []*keySerializationTestC... function TestKeySerializer (line 334) | func TestKeySerializer(t *testing.T) { function TestKeyParser (line 348) | func TestKeyParser(t *testing.T) { FILE: jwt/jwtrsassapkcs1/jwtrsassapkcs1.go function init (line 25) | func init() { FILE: jwt/jwtrsassapkcs1/key.go type PublicKey (line 32) | type PublicKey struct method Parameters (line 111) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method Modulus (line 114) | func (k *PublicKey) Modulus() []byte { return bytes.Clone(k.modulus) } method KID (line 119) | func (k *PublicKey) KID() (string, bool) { return k.kid, k.hasKID } method IDRequirement (line 122) | func (k *PublicKey) IDRequirement() (uint32, bool) { method Equal (line 128) | func (k *PublicKey) Equal(other key.Key) bool { function computeKID (line 42) | func computeKID(customKID *string, idRequirement uint32, parameters *Par... type PublicKeyOpts (line 68) | type PublicKeyOpts struct function NewPublicKey (line 80) | func NewPublicKey(opts PublicKeyOpts) (*PublicKey, error) { type PrivateKey (line 137) | type PrivateKey struct method Parameters (line 184) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method PublicKey (line 187) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method IDRequirement (line 190) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method D (line 193) | func (k *PrivateKey) D() secretdata.Bytes { method P (line 198) | func (k *PrivateKey) P() secretdata.Bytes { method Q (line 203) | func (k *PrivateKey) Q() secretdata.Bytes { method DP (line 208) | func (k *PrivateKey) DP() secretdata.Bytes { method DQ (line 213) | func (k *PrivateKey) DQ() secretdata.Bytes { method QInv (line 218) | func (k *PrivateKey) QInv() secretdata.Bytes { method Equal (line 224) | func (k *PrivateKey) Equal(other key.Key) bool { type PrivateKeyOpts (line 143) | type PrivateKeyOpts struct function NewPrivateKey (line 153) | func NewPrivateKey(opts PrivateKeyOpts) (*PrivateKey, error) { function createPrivateKey (line 232) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: jwt/jwtrsassapkcs1/key_test.go constant n2048Base64 (line 34) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 35) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 36) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 37) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 38) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 39) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 40) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... constant n2048BigInt16 (line 44) | n2048BigInt16 = "b3795dceabcbd81fc437fd1bef3f441fb3e795e0def5dcb6c84d... constant d2048BigInt10 (line 45) | d2048BigInt10 = "3221514782158521239046688407258406330028553231891834... constant p2048BigInt10 (line 46) | p2048BigInt10 = "1587749433534901134897530121352781110985412793687876... constant q2048BigInt10 (line 47) | q2048BigInt10 = "1426957184172900756514355138048761096234366854769167... constant dp2048BigInt10 (line 48) | dp2048BigInt10 = "5475733203649211201451695348095817426872194327316383... constant dq2048BigInt10 (line 49) | dq2048BigInt10 = "4123864239778253555759629875435789731400416288406247... constant qInv2048BigInt10 (line 50) | qInv2048BigInt10 = "4336928407136170912565699396923159384239288452243762... constant n3072Base64 (line 54) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJ... constant d3072Base64 (line 55) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuas... constant p3072Base64 (line 56) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_... constant q3072Base64 (line 57) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0... constant dp3072Base64 (line 58) | dp3072Base64 = "8b-0DNVlc5cay162WwzSv0UCIo8s7KWkXDdmEVHL_bCgooIztgD-cn... constant dq3072Base64 (line 59) | dq3072Base64 = "Pjwq6NNi3JKU4txx0gUPfd_Z6lTVwwKDZq9nvhoJzeev5y4nclPELa... constant qInv3072Base64 (line 60) | qInv3072Base64 = "GMyXHpGG-GwUTRQM6rvJriLJTo2FdTVvtqSgM5ke8hC6-jmkzRq_qZ... constant n4096Base64 (line 64) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUv... constant d4096Base64 (line 65) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1... constant p4096Base64 (line 66) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSO... constant q4096Base64 (line 67) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i... constant dp4096Base64 (line 68) | dp4096Base64 = "gVSGqrCgiWv5fxPj6x9_XEkZW0nMO2J3QSo2iHmLGPRkIt9HnLlBs7... constant dq4096Base64 (line 69) | dq4096Base64 = "th2E_5NKTkN7Fu4bS5_fSuEzcLU4W956VGShI8A0PfV1-eEo7535RC... constant qInv4096Base64 (line 70) | qInv4096Base64 = "IvuOX82bdnEE5xJE21MFjBgGHhsNH2O3Pi1ZqV4qEM2HQmoz2hPCh8... constant n2048Base64Short (line 73) | n2048Base64Short = "s3tBtRJT0gQfXrSWzicHNV-oWlaZ-Zw59s_NoZU1H1f5zuZKO... constant d2048Base64Short (line 74) | d2048Base64Short = "ofOWVs0y1U7i_5H0ghC1cHPgdaOvTIyrwQnBgwwf4yh_QTKLx... constant p2048Base64Short (line 75) | p2048Base64Short = "8ZDa2uxtQRFgV0hdz_y_bW86ufU0kQaS39hy6e_NjWy42gaDs... constant q2048Base64Short (line 76) | q2048Base64Short = "vjS4PXyXl4cyPaCzjZTxJttM6xO2cuIglNvm2PGu_ZtX78U1s... constant dp2048Base64Short (line 77) | dp2048Base64Short = "S-eZbWsXFXgRTrvVhpJD0G5ABMiw4NUw95d63FlWvJaqKxAa-... constant dq2048Base64Short (line 78) | dq2048Base64Short = "DetVwEop3dDrAE-OVEIeE7XgvyNGKsoZkEs3bZDiOXTwzn8kG... constant qInv2048Base64Short (line 79) | qInv2048Base64Short = "12-Ru9ZuczoydYqX5L1mDyE47bMy9SoXw-aBKRd9i0lYCX0nA... function mustBase64Decode (line 82) | func mustBase64Decode(t *testing.T, in string) []byte { function mustCreateParametersFromOpts (line 91) | func mustCreateParametersFromOpts(t *testing.T, opts jwtrsassapkcs1.Para... function mustStringToBigInt (line 99) | func mustStringToBigInt(t *testing.T, s string, base int) *big.Int { type publicKeyTestCase (line 108) | type publicKeyTestCase struct function publicKeyTestCases (line 115) | func publicKeyTestCases(t *testing.T) []publicKeyTestCase { function TestPublicKey (line 171) | func TestPublicKey(t *testing.T) { function TestPublicKeyEqual_Different (line 207) | func TestPublicKeyEqual_Different(t *testing.T) { function TestNewPublicKey_Errors (line 346) | func TestNewPublicKey_Errors(t *testing.T) { type privateKeyTestCase (line 440) | type privateKeyTestCase struct function privateKeyTestCases (line 449) | func privateKeyTestCases(t *testing.T) []privateKeyTestCase { function TestPrivateKey (line 513) | func TestPrivateKey(t *testing.T) { function TestPrivateKeyEqual_Different (line 572) | func TestPrivateKeyEqual_Different(t *testing.T) { function mustCreatePrivateKey (line 690) | func mustCreatePrivateKey(t *testing.T, opts jwtrsassapkcs1.PrivateKeyOp... function TestNewPrivateKey_Errors (line 699) | func TestNewPrivateKey_Errors(t *testing.T) { function TestPrivateKeyCreator (line 843) | func TestPrivateKeyCreator(t *testing.T) { function TestPrivateKeyCreator_Errors (line 887) | func TestPrivateKeyCreator_Errors(t *testing.T) { FILE: jwt/jwtrsassapkcs1/parameters.go type KIDStrategy (line 29) | type KIDStrategy method String (line 64) | func (k KIDStrategy) String() string { constant UnknownKIDStrategy (line 33) | UnknownKIDStrategy KIDStrategy = iota constant Base64EncodedKeyIDAsKID (line 43) | Base64EncodedKeyIDAsKID constant IgnoredKID (line 49) | IgnoredKID constant CustomKID (line 61) | CustomKID type Algorithm (line 83) | type Algorithm method String (line 96) | func (a Algorithm) String() string { constant UnknownAlgorithm (line 87) | UnknownAlgorithm Algorithm = iota constant RS256 (line 89) | RS256 Algorithm = iota + 1 constant RS384 (line 91) | RS384 constant RS512 (line 93) | RS512 type Parameters (line 110) | type Parameters struct method KIDStrategy (line 162) | func (p *Parameters) KIDStrategy() KIDStrategy { return p.kidStrategy } method Algorithm (line 165) | func (p *Parameters) Algorithm() Algorithm { return p.algorithm } method ModulusSizeInBits (line 168) | func (p *Parameters) ModulusSizeInBits() int { return p.modulusSizeInB... method PublicExponent (line 171) | func (p *Parameters) PublicExponent() int { return p.publicExponent } method HasIDRequirement (line 174) | func (p *Parameters) HasIDRequirement() bool { method Equal (line 179) | func (p *Parameters) Equal(other key.Parameters) bool { constant f4 (line 121) | f4 = 65537 constant maxExponent (line 124) | maxExponent = 1<<31 - 1 type ParametersOpts (line 128) | type ParametersOpts struct function NewParameters (line 136) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: jwt/jwtrsassapkcs1/parameters_test.go constant f4 (line 25) | f4 = 65537 function TestNewParameters (line 27) | func TestNewParameters(t *testing.T) { function TestParametersGetters (line 128) | func TestParametersGetters(t *testing.T) { function TestParametersHasIDRequirement (line 153) | func TestParametersHasIDRequirement(t *testing.T) { function TestParametersEqual (line 190) | func TestParametersEqual(t *testing.T) { function TestAlgorithmString (line 257) | func TestAlgorithmString(t *testing.T) { function TestKIDStrategyString (line 283) | func TestKIDStrategyString(t *testing.T) { FILE: jwt/jwtrsassapkcs1/protoserialization.go constant privateKeyTypeURL (line 31) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.JwtRsaSsaPkc... constant publicKeyTypeURL (line 32) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.JwtRsaSsaPkc... type parametersSerializer (line 35) | type parametersSerializer struct method Serialize (line 88) | func (s *parametersSerializer) Serialize(p key.Parameters) (*tinkpb.Ke... function algorithmToProto (line 39) | func algorithmToProto(a Algorithm) jwtrsapb.JwtRsaSsaPkcs1Algorithm { function algorithmFromProto (line 52) | func algorithmFromProto(a jwtrsapb.JwtRsaSsaPkcs1Algorithm) Algorithm { function outputPrefixTypeFromKIDStrategy (line 64) | func outputPrefixTypeFromKIDStrategy(s KIDStrategy) tinkpb.OutputPrefixT... function kidStrategyFromOutputPrefixType (line 75) | func kidStrategyFromOutputPrefixType(s tinkpb.OutputPrefixType, hasCusto... type parametersParser (line 113) | type parametersParser struct method Parse (line 117) | func (s *parametersParser) Parse(kt *tinkpb.KeyTemplate) (key.Paramete... function publicKeyToProto (line 148) | func publicKeyToProto(k *PublicKey) (*jwtrsapb.JwtRsaSsaPkcs1PublicKey, ... type publicKeySerializer (line 170) | type publicKeySerializer struct method SerializeKey (line 174) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function publicKeyFromProto (line 198) | func publicKeyFromProto(protoPublicKey *jwtrsapb.JwtRsaSsaPkcs1PublicKey... type publicKeyParser (line 225) | type publicKeyParser struct method ParseKey (line 229) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... type privateKeySerializer (line 248) | type privateKeySerializer struct method SerializeKey (line 252) | func (s *privateKeySerializer) SerializeKey(k key.Key) (*protoserializ... function removeLeadingZeros (line 301) | func removeLeadingZeros(keyBytes []byte) []byte { type privateKeyParser (line 305) | type privateKeyParser struct method ParseKey (line 309) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... FILE: jwt/jwtrsassapkcs1/protoserialization_test.go function mustMarshal (line 33) | func mustMarshal(t *testing.T, msg proto.Message) []byte { function mustCreateParameters (line 42) | func mustCreateParameters(t *testing.T, kid jwtrsassapkcs1.KIDStrategy, ... function mustNewKeySerialization (line 56) | func mustNewKeySerialization(t *testing.T, keyData *tinkpb.KeyData, outp... function mustCreatePublicKey (line 65) | func mustCreatePublicKey(t *testing.T, opts jwtrsassapkcs1.PublicKeyOpts... function TestParametersSerializer (line 74) | func TestParametersSerializer(t *testing.T) { function TestParametersParser (line 157) | func TestParametersParser(t *testing.T) { function TestParametersParser_Errors (line 227) | func TestParametersParser_Errors(t *testing.T) { type protoserializationPublicKeyTestCase (line 350) | type protoserializationPublicKeyTestCase struct function TestPublicKeySerializer (line 356) | func TestPublicKeySerializer(t *testing.T) { function TestPublicKeyParser (line 430) | func TestPublicKeyParser(t *testing.T) { function TestPublicKeyParser_Errors (line 505) | func TestPublicKeyParser_Errors(t *testing.T) { type protoserializationPrivateKeyTestCase (line 627) | type protoserializationPrivateKeyTestCase struct function protoserializationPrivateKeyTestCases (line 633) | func protoserializationPrivateKeyTestCases(t *testing.T) []*protoseriali... function TestPrivateKeySerializer (line 770) | func TestPrivateKeySerializer(t *testing.T) { function TestPrivateKeyParser (line 784) | func TestPrivateKeyParser(t *testing.T) { function TestPrivateKeyParser_Errors (line 831) | func TestPrivateKeyParser_Errors(t *testing.T) { FILE: jwt/jwtrsassapss/jwtrsassapss.go function init (line 26) | func init() { FILE: jwt/jwtrsassapss/key.go type PublicKey (line 32) | type PublicKey struct method Parameters (line 111) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method Modulus (line 114) | func (k *PublicKey) Modulus() []byte { return bytes.Clone(k.modulus) } method KID (line 119) | func (k *PublicKey) KID() (string, bool) { return k.kid, k.hasKID } method IDRequirement (line 122) | func (k *PublicKey) IDRequirement() (uint32, bool) { method Equal (line 128) | func (k *PublicKey) Equal(other key.Key) bool { function computeKID (line 42) | func computeKID(customKID *string, idRequirement uint32, parameters *Par... type PublicKeyOpts (line 68) | type PublicKeyOpts struct function NewPublicKey (line 80) | func NewPublicKey(opts PublicKeyOpts) (*PublicKey, error) { type PrivateKey (line 137) | type PrivateKey struct method Parameters (line 184) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method PublicKey (line 187) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method IDRequirement (line 190) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method D (line 193) | func (k *PrivateKey) D() secretdata.Bytes { method P (line 198) | func (k *PrivateKey) P() secretdata.Bytes { method Q (line 203) | func (k *PrivateKey) Q() secretdata.Bytes { method DP (line 208) | func (k *PrivateKey) DP() secretdata.Bytes { method DQ (line 213) | func (k *PrivateKey) DQ() secretdata.Bytes { method QInv (line 218) | func (k *PrivateKey) QInv() secretdata.Bytes { method Equal (line 224) | func (k *PrivateKey) Equal(other key.Key) bool { type PrivateKeyOpts (line 143) | type PrivateKeyOpts struct function NewPrivateKey (line 153) | func NewPrivateKey(opts PrivateKeyOpts) (*PrivateKey, error) { function createPrivateKey (line 232) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: jwt/jwtrsassapss/key_test.go constant n2048Base64 (line 34) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 35) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 36) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 37) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 38) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 39) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 40) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... constant n2048BigInt16 (line 44) | n2048BigInt16 = "b3795dceabcbd81fc437fd1bef3f441fb3e795e0def5dcb6c84d... constant d2048BigInt10 (line 45) | d2048BigInt10 = "3221514782158521239046688407258406330028553231891834... constant p2048BigInt10 (line 46) | p2048BigInt10 = "1587749433534901134897530121352781110985412793687876... constant q2048BigInt10 (line 47) | q2048BigInt10 = "1426957184172900756514355138048761096234366854769167... constant dp2048BigInt10 (line 48) | dp2048BigInt10 = "5475733203649211201451695348095817426872194327316383... constant dq2048BigInt10 (line 49) | dq2048BigInt10 = "4123864239778253555759629875435789731400416288406247... constant qInv2048BigInt10 (line 50) | qInv2048BigInt10 = "4336928407136170912565699396923159384239288452243762... constant n3072Base64 (line 54) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJ... constant d3072Base64 (line 55) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuas... constant p3072Base64 (line 56) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_... constant q3072Base64 (line 57) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0... constant dp3072Base64 (line 58) | dp3072Base64 = "8b-0DNVlc5cay162WwzSv0UCIo8s7KWkXDdmEVHL_bCgooIztgD-cn... constant dq3072Base64 (line 59) | dq3072Base64 = "Pjwq6NNi3JKU4txx0gUPfd_Z6lTVwwKDZq9nvhoJzeev5y4nclPELa... constant qInv3072Base64 (line 60) | qInv3072Base64 = "GMyXHpGG-GwUTRQM6rvJriLJTo2FdTVvtqSgM5ke8hC6-jmkzRq_qZ... constant n4096Base64 (line 64) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUv... constant d4096Base64 (line 65) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1... constant p4096Base64 (line 66) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSO... constant q4096Base64 (line 67) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i... constant dp4096Base64 (line 68) | dp4096Base64 = "gVSGqrCgiWv5fxPj6x9_XEkZW0nMO2J3QSo2iHmLGPRkIt9HnLlBs7... constant dq4096Base64 (line 69) | dq4096Base64 = "th2E_5NKTkN7Fu4bS5_fSuEzcLU4W956VGShI8A0PfV1-eEo7535RC... constant qInv4096Base64 (line 70) | qInv4096Base64 = "IvuOX82bdnEE5xJE21MFjBgGHhsNH2O3Pi1ZqV4qEM2HQmoz2hPCh8... constant n2048Base64Short (line 73) | n2048Base64Short = "s3tBtRJT0gQfXrSWzicHNV-oWlaZ-Zw59s_NoZU1H1f5zuZKO... constant d2048Base64Short (line 74) | d2048Base64Short = "ofOWVs0y1U7i_5H0ghC1cHPgdaOvTIyrwQnBgwwf4yh_QTKLx... constant p2048Base64Short (line 75) | p2048Base64Short = "8ZDa2uxtQRFgV0hdz_y_bW86ufU0kQaS39hy6e_NjWy42gaDs... constant q2048Base64Short (line 76) | q2048Base64Short = "vjS4PXyXl4cyPaCzjZTxJttM6xO2cuIglNvm2PGu_ZtX78U1s... constant dp2048Base64Short (line 77) | dp2048Base64Short = "S-eZbWsXFXgRTrvVhpJD0G5ABMiw4NUw95d63FlWvJaqKxAa-... constant dq2048Base64Short (line 78) | dq2048Base64Short = "DetVwEop3dDrAE-OVEIeE7XgvyNGKsoZkEs3bZDiOXTwzn8kG... constant qInv2048Base64Short (line 79) | qInv2048Base64Short = "12-Ru9ZuczoydYqX5L1mDyE47bMy9SoXw-aBKRd9i0lYCX0nA... function mustBase64Decode (line 82) | func mustBase64Decode(t *testing.T, in string) []byte { function mustCreateParametersFromOpts (line 91) | func mustCreateParametersFromOpts(t *testing.T, opts jwtrsassapss.Parame... function mustStringToBigInt (line 99) | func mustStringToBigInt(t *testing.T, s string, base int) *big.Int { type publicKeyTestCase (line 108) | type publicKeyTestCase struct function publicKeyTestCases (line 115) | func publicKeyTestCases(t *testing.T) []publicKeyTestCase { function TestPublicKey (line 171) | func TestPublicKey(t *testing.T) { function TestPublicKeyEqual_Different (line 207) | func TestPublicKeyEqual_Different(t *testing.T) { function TestNewPublicKey_Errors (line 346) | func TestNewPublicKey_Errors(t *testing.T) { type privateKeyTestCase (line 440) | type privateKeyTestCase struct function privateKeyTestCases (line 449) | func privateKeyTestCases(t *testing.T) []privateKeyTestCase { function TestPrivateKey (line 513) | func TestPrivateKey(t *testing.T) { function TestPrivateKeyEqual_Different (line 572) | func TestPrivateKeyEqual_Different(t *testing.T) { function mustCreatePrivateKey (line 690) | func mustCreatePrivateKey(t *testing.T, opts jwtrsassapss.PrivateKeyOpts... function TestNewPrivateKey_Errors (line 699) | func TestNewPrivateKey_Errors(t *testing.T) { function TestPrivateKeyCreator (line 843) | func TestPrivateKeyCreator(t *testing.T) { function TestPrivateKeyCreator_Errors (line 887) | func TestPrivateKeyCreator_Errors(t *testing.T) { FILE: jwt/jwtrsassapss/parameters.go type KIDStrategy (line 29) | type KIDStrategy method String (line 64) | func (k KIDStrategy) String() string { constant UnknownKIDStrategy (line 33) | UnknownKIDStrategy KIDStrategy = iota constant Base64EncodedKeyIDAsKID (line 43) | Base64EncodedKeyIDAsKID constant IgnoredKID (line 49) | IgnoredKID constant CustomKID (line 61) | CustomKID type Algorithm (line 83) | type Algorithm method String (line 96) | func (a Algorithm) String() string { constant UnknownAlgorithm (line 87) | UnknownAlgorithm Algorithm = iota constant PS256 (line 89) | PS256 Algorithm = iota + 1 constant PS384 (line 91) | PS384 constant PS512 (line 93) | PS512 type Parameters (line 110) | type Parameters struct method KIDStrategy (line 162) | func (p *Parameters) KIDStrategy() KIDStrategy { return p.kidStrategy } method Algorithm (line 165) | func (p *Parameters) Algorithm() Algorithm { return p.algorithm } method ModulusSizeInBits (line 168) | func (p *Parameters) ModulusSizeInBits() int { return p.modulusSizeInB... method PublicExponent (line 171) | func (p *Parameters) PublicExponent() int { return p.publicExponent } method HasIDRequirement (line 174) | func (p *Parameters) HasIDRequirement() bool { method Equal (line 179) | func (p *Parameters) Equal(other key.Parameters) bool { constant f4 (line 121) | f4 = 65537 constant maxExponent (line 124) | maxExponent = 1<<31 - 1 type ParametersOpts (line 128) | type ParametersOpts struct function NewParameters (line 136) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: jwt/jwtrsassapss/parameters_test.go constant f4 (line 25) | f4 = 65537 function TestNewParameters (line 27) | func TestNewParameters(t *testing.T) { function TestParametersGetters (line 128) | func TestParametersGetters(t *testing.T) { function TestParametersHasIDRequirement (line 153) | func TestParametersHasIDRequirement(t *testing.T) { function TestParametersEqual (line 190) | func TestParametersEqual(t *testing.T) { function TestAlgorithmString (line 257) | func TestAlgorithmString(t *testing.T) { function TestKIDStrategyString (line 283) | func TestKIDStrategyString(t *testing.T) { FILE: jwt/jwtrsassapss/protoserialization.go constant privateKeyTypeURL (line 31) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.JwtRsaSsaPss... constant publicKeyTypeURL (line 32) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.JwtRsaSsaPss... type parametersSerializer (line 35) | type parametersSerializer struct method Serialize (line 88) | func (s *parametersSerializer) Serialize(p key.Parameters) (*tinkpb.Ke... function algorithmToProto (line 39) | func algorithmToProto(a Algorithm) jwtrsapb.JwtRsaSsaPssAlgorithm { function algorithmFromProto (line 52) | func algorithmFromProto(a jwtrsapb.JwtRsaSsaPssAlgorithm) Algorithm { function outputPrefixTypeFromKIDStrategy (line 64) | func outputPrefixTypeFromKIDStrategy(s KIDStrategy) tinkpb.OutputPrefixT... function kidStrategyFromOutputPrefixType (line 75) | func kidStrategyFromOutputPrefixType(s tinkpb.OutputPrefixType, hasCusto... type parametersParser (line 113) | type parametersParser struct method Parse (line 117) | func (s *parametersParser) Parse(kt *tinkpb.KeyTemplate) (key.Paramete... function publicKeyToProto (line 149) | func publicKeyToProto(k *PublicKey) (*jwtrsapb.JwtRsaSsaPssPublicKey, er... type publicKeySerializer (line 171) | type publicKeySerializer struct method SerializeKey (line 175) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function publicKeyFromProto (line 199) | func publicKeyFromProto(protoPublicKey *jwtrsapb.JwtRsaSsaPssPublicKey, ... type publicKeyParser (line 226) | type publicKeyParser struct method ParseKey (line 230) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... type privateKeySerializer (line 249) | type privateKeySerializer struct method SerializeKey (line 253) | func (s *privateKeySerializer) SerializeKey(k key.Key) (*protoserializ... function removeLeadingZeros (line 302) | func removeLeadingZeros(keyBytes []byte) []byte { type privateKeyParser (line 306) | type privateKeyParser struct method ParseKey (line 310) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... FILE: jwt/jwtrsassapss/protoserialization_test.go function mustMarshal (line 33) | func mustMarshal(t *testing.T, msg proto.Message) []byte { function mustCreateParameters (line 42) | func mustCreateParameters(t *testing.T, kid jwtrsassapss.KIDStrategy, al... function mustNewKeySerialization (line 56) | func mustNewKeySerialization(t *testing.T, keyData *tinkpb.KeyData, outp... function mustCreatePublicKey (line 65) | func mustCreatePublicKey(t *testing.T, opts jwtrsassapss.PublicKeyOpts) ... function TestParametersSerializer (line 74) | func TestParametersSerializer(t *testing.T) { function TestParametersParser (line 157) | func TestParametersParser(t *testing.T) { function TestParametersParser_Errors (line 227) | func TestParametersParser_Errors(t *testing.T) { type protoserializationPublicKeyTestCase (line 350) | type protoserializationPublicKeyTestCase struct function TestPublicKeySerializer (line 356) | func TestPublicKeySerializer(t *testing.T) { function TestPublicKeyParser (line 430) | func TestPublicKeyParser(t *testing.T) { function TestPublicKeyParser_Errors (line 505) | func TestPublicKeyParser_Errors(t *testing.T) { type protoserializationPrivateKeyTestCase (line 627) | type protoserializationPrivateKeyTestCase struct function protoserializationPrivateKeyTestCases (line 633) | func protoserializationPrivateKeyTestCases(t *testing.T) []*protoseriali... function TestPrivateKeySerializer (line 770) | func TestPrivateKeySerializer(t *testing.T) { function TestPrivateKeyParser (line 784) | func TestPrivateKeyParser(t *testing.T) { function TestPrivateKeyParser_Errors (line 831) | func TestPrivateKeyParser_Errors(t *testing.T) { FILE: jwt/raw_jwt.go constant claimIssuer (line 26) | claimIssuer = "iss" constant claimSubject (line 27) | claimSubject = "sub" constant claimAudience (line 28) | claimAudience = "aud" constant claimExpiration (line 29) | claimExpiration = "exp" constant claimNotBefore (line 30) | claimNotBefore = "nbf" constant claimIssuedAt (line 31) | claimIssuedAt = "iat" constant claimJWTID (line 32) | claimJWTID = "jti" constant jwtTimestampMax (line 34) | jwtTimestampMax = 253402300799 constant jwtTimestampMin (line 35) | jwtTimestampMin = 0 type RawJWTOptions (line 45) | type RawJWTOptions struct type RawJWT (line 61) | type RawJWT struct method JSONPayload (line 101) | func (r *RawJWT) JSONPayload() ([]byte, error) { method HasTypeHeader (line 106) | func (r *RawJWT) HasTypeHeader() bool { method TypeHeader (line 111) | func (r *RawJWT) TypeHeader() (string, error) { method HasAudiences (line 119) | func (r *RawJWT) HasAudiences() bool { method Audiences (line 124) | func (r *RawJWT) Audiences() ([]string, error) { method HasSubject (line 143) | func (r *RawJWT) HasSubject() bool { method Subject (line 148) | func (r *RawJWT) Subject() (string, error) { method HasIssuer (line 153) | func (r *RawJWT) HasIssuer() bool { method Issuer (line 158) | func (r *RawJWT) Issuer() (string, error) { method HasJWTID (line 163) | func (r *RawJWT) HasJWTID() bool { method JWTID (line 168) | func (r *RawJWT) JWTID() (string, error) { method HasIssuedAt (line 173) | func (r *RawJWT) HasIssuedAt() bool { method IssuedAt (line 178) | func (r *RawJWT) IssuedAt() (time.Time, error) { method HasExpiration (line 183) | func (r *RawJWT) HasExpiration() bool { method ExpiresAt (line 188) | func (r *RawJWT) ExpiresAt() (time.Time, error) { method HasNotBefore (line 193) | func (r *RawJWT) HasNotBefore() bool { method NotBefore (line 198) | func (r *RawJWT) NotBefore() (time.Time, error) { method HasStringClaim (line 203) | func (r *RawJWT) HasStringClaim(name string) bool { method StringClaim (line 208) | func (r *RawJWT) StringClaim(name string) (string, error) { method HasNumberClaim (line 216) | func (r *RawJWT) HasNumberClaim(name string) bool { method NumberClaim (line 221) | func (r *RawJWT) NumberClaim(name string) (float64, error) { method HasBooleanClaim (line 229) | func (r *RawJWT) HasBooleanClaim(name string) bool { method BooleanClaim (line 234) | func (r *RawJWT) BooleanClaim(name string) (bool, error) { method HasNullClaim (line 247) | func (r *RawJWT) HasNullClaim(name string) bool { method HasArrayClaim (line 252) | func (r *RawJWT) HasArrayClaim(name string) bool { method ArrayClaim (line 257) | func (r *RawJWT) ArrayClaim(name string) ([]any, error) { method HasObjectClaim (line 269) | func (r *RawJWT) HasObjectClaim(name string) bool { method ObjectClaim (line 274) | func (r *RawJWT) ObjectClaim(name string) (map[string]any, error) { method CustomClaimNames (line 286) | func (r *RawJWT) CustomClaimNames() []string { method timeClaim (line 296) | func (r *RawJWT) timeClaim(name string) (time.Time, error) { method numberClaim (line 304) | func (r *RawJWT) numberClaim(name string) (float64, error) { method stringClaim (line 316) | func (r *RawJWT) stringClaim(name string) (string, error) { method hasClaimOfKind (line 331) | func (r *RawJWT) hasClaimOfKind(name string, exp *spb.Value) bool { method customClaim (line 356) | func (r *RawJWT) customClaim(name string) (*spb.Value, error) { method hasField (line 367) | func (r *RawJWT) hasField(name string) bool { method field (line 372) | func (r *RawJWT) field(name string) (*spb.Value, bool) { function NewRawJWT (line 67) | func NewRawJWT(opts *RawJWTOptions) (*RawJWT, error) { function NewRawJWTFromJSON (line 86) | func NewRawJWTFromJSON(typeHeader *string, jsonPayload []byte) (*RawJWT,... function createPayload (line 378) | func createPayload(opts *RawJWTOptions) (*spb.Struct, error) { function validatePayload (line 414) | func validatePayload(payload *spb.Struct) error { function validateStringClaim (line 437) | func validateStringClaim(claim string, val *spb.Value) error { function validateTimeClaim (line 448) | func validateTimeClaim(claim string, val *spb.Value) error { function validateAudienceClaim (line 459) | func validateAudienceClaim(val *spb.Value) error { function validateCustomClaims (line 486) | func validateCustomClaims(cc map[string]any) error { function setTimeValue (line 498) | func setTimeValue(p *spb.Struct, claim string, val *time.Time) { function setStringValue (line 505) | func setStringValue(p *spb.Struct, claim string, val *string) { function setAudiences (line 512) | func setAudiences(p *spb.Struct, claim string, vals []string) { function setValue (line 525) | func setValue(p *spb.Struct, claim string, val *spb.Value) { function isRegisteredClaim (line 532) | func isRegisteredClaim(c string) bool { function isRegisteredStringClaim (line 536) | func isRegisteredStringClaim(c string) bool { function isRegisteredTimeClaim (line 540) | func isRegisteredTimeClaim(c string) bool { FILE: jwt/raw_jwt_test.go constant invalidUTF8 (line 27) | invalidUTF8 = "\xF4\x7F\xBF\xBF" constant validExpiration (line 28) | validExpiration = 1640043004 type testCase (line 31) | type testCase struct function refString (line 38) | func refString(a string) *string { function refTime (line 42) | func refTime(ts int64) *time.Time { function TestCreatingRawJWTWithAllClaims (line 47) | func TestCreatingRawJWTWithAllClaims(t *testing.T) { function TestGeneratingRawJWTWithoutClaims (line 242) | func TestGeneratingRawJWTWithoutClaims(t *testing.T) { function TestNewRawJWTLargeValidTimestamps (line 312) | func TestNewRawJWTLargeValidTimestamps(t *testing.T) { function TestNewRawJWTSingleStringAudience (line 348) | func TestNewRawJWTSingleStringAudience(t *testing.T) { function TestSingleStringAudienceFromJSON (line 367) | func TestSingleStringAudienceFromJSON(t *testing.T) { function TestNewRawJWTValidationFailures (line 382) | func TestNewRawJWTValidationFailures(t *testing.T) { function TestNewRawJWTWithTooManyRecursionsFails (line 552) | func TestNewRawJWTWithTooManyRecursionsFails(t *testing.T) { function TestJSONPayload (line 569) | func TestJSONPayload(t *testing.T) { function TestFromJSONValidationFailures (line 678) | func TestFromJSONValidationFailures(t *testing.T) { function TestHasCustomClaimsOfKind (line 755) | func TestHasCustomClaimsOfKind(t *testing.T) { function TestGettingRegisteredClaimsThroughCustomFails (line 794) | func TestGettingRegisteredClaimsThroughCustomFails(t *testing.T) { FILE: jwt/verified_jwt.go type VerifiedJWT (line 23) | type VerifiedJWT struct method JSONPayload (line 38) | func (v *VerifiedJWT) JSONPayload() ([]byte, error) { method HasTypeHeader (line 43) | func (v *VerifiedJWT) HasTypeHeader() bool { method TypeHeader (line 48) | func (v *VerifiedJWT) TypeHeader() (string, error) { method HasAudiences (line 53) | func (v *VerifiedJWT) HasAudiences() bool { method Audiences (line 59) | func (v *VerifiedJWT) Audiences() ([]string, error) { method HasSubject (line 64) | func (v *VerifiedJWT) HasSubject() bool { method Subject (line 69) | func (v *VerifiedJWT) Subject() (string, error) { method HasIssuer (line 74) | func (v *VerifiedJWT) HasIssuer() bool { method Issuer (line 79) | func (v *VerifiedJWT) Issuer() (string, error) { method HasJWTID (line 84) | func (v *VerifiedJWT) HasJWTID() bool { method JWTID (line 89) | func (v *VerifiedJWT) JWTID() (string, error) { method HasIssuedAt (line 94) | func (v *VerifiedJWT) HasIssuedAt() bool { method IssuedAt (line 99) | func (v *VerifiedJWT) IssuedAt() (time.Time, error) { method HasExpiration (line 104) | func (v *VerifiedJWT) HasExpiration() bool { method ExpiresAt (line 109) | func (v *VerifiedJWT) ExpiresAt() (time.Time, error) { method HasNotBefore (line 114) | func (v *VerifiedJWT) HasNotBefore() bool { method NotBefore (line 119) | func (v *VerifiedJWT) NotBefore() (time.Time, error) { method HasStringClaim (line 124) | func (v *VerifiedJWT) HasStringClaim(name string) bool { method StringClaim (line 129) | func (v *VerifiedJWT) StringClaim(name string) (string, error) { method HasNumberClaim (line 134) | func (v *VerifiedJWT) HasNumberClaim(name string) bool { method NumberClaim (line 139) | func (v *VerifiedJWT) NumberClaim(name string) (float64, error) { method HasBooleanClaim (line 144) | func (v *VerifiedJWT) HasBooleanClaim(name string) bool { method BooleanClaim (line 149) | func (v *VerifiedJWT) BooleanClaim(name string) (bool, error) { method HasNullClaim (line 154) | func (v *VerifiedJWT) HasNullClaim(name string) bool { method HasArrayClaim (line 159) | func (v *VerifiedJWT) HasArrayClaim(name string) bool { method ArrayClaim (line 164) | func (v *VerifiedJWT) ArrayClaim(name string) ([]any, error) { method HasObjectClaim (line 169) | func (v *VerifiedJWT) HasObjectClaim(name string) bool { method ObjectClaim (line 174) | func (v *VerifiedJWT) ObjectClaim(name string) (map[string]any, error) { method CustomClaimNames (line 179) | func (v *VerifiedJWT) CustomClaimNames() []string { function newVerifiedJWT (line 28) | func newVerifiedJWT(rawJWT *RawJWT) (*VerifiedJWT, error) { FILE: jwt/verified_jwt_test.go function createVerifiedJWT (line 27) | func createVerifiedJWT(rawJWT *jwt.RawJWT) (*jwt.VerifiedJWT, error) { function TestGetRegisteredStringClaims (line 61) | func TestGetRegisteredStringClaims(t *testing.T) { function TestGetRegisteredTimestampClaims (line 122) | func TestGetRegisteredTimestampClaims(t *testing.T) { function TestGetAudiencesClaim (line 169) | func TestGetAudiencesClaim(t *testing.T) { function TestGetCustomClaims (line 194) | func TestGetCustomClaims(t *testing.T) { function TestCustomClaimIsFalseForWrongType (line 273) | func TestCustomClaimIsFalseForWrongType(t *testing.T) { function TestNoClaimsCallHasAndGet (line 313) | func TestNoClaimsCallHasAndGet(t *testing.T) { function TestCantGetRegisteredClaimsThroughCustomClaims (line 351) | func TestCantGetRegisteredClaimsThroughCustomClaims(t *testing.T) { function TestGetJSONPayload (line 394) | func TestGetJSONPayload(t *testing.T) { FILE: key/key.go type Parameters (line 19) | type Parameters interface type Key (line 37) | type Key interface FILE: keyderivation/internal/keyderiver/key_deriver.go type KeyDeriver (line 25) | type KeyDeriver interface FILE: keyderivation/internal/keyderivers/keyderivers.go type keyDeriver (line 40) | type keyDeriver function DeriveKey (line 46) | func DeriveKey(params key.Parameters, idRequirement uint32, reader io.Re... function CanDeriveKey (line 57) | func CanDeriveKey(paramsType reflect.Type) bool { function addAESGCMKeyDeriver (line 62) | func addAESGCMKeyDeriver() { function addXChaCha20Poly1305KeyDeriver (line 77) | func addXChaCha20Poly1305KeyDeriver() { function addAESSIVKeyDeriver (line 92) | func addAESSIVKeyDeriver() { function addHMACKeyDeriver (line 107) | func addHMACKeyDeriver() { function addHKDFPRFKeyDeriver (line 122) | func addHKDFPRFKeyDeriver() { function addHMACPRFKeyDeriver (line 137) | func addHMACPRFKeyDeriver() { function addSignatureED25519KeyDeriver (line 152) | func addSignatureED25519KeyDeriver() { function addStreamingAEADAESGCMHKDFKeyDeriver (line 167) | func addStreamingAEADAESGCMHKDFKeyDeriver() { function init (line 182) | func init() { FILE: keyderivation/internal/keyderivers/keyderivers_test.go function TestDeriveKey (line 37) | func TestDeriveKey(t *testing.T) { function TestDeriveKey_Failures (line 511) | func TestDeriveKey_Failures(t *testing.T) { function TestCanDeriveKey (line 680) | func TestCanDeriveKey(t *testing.T) { type stubParams (line 740) | type stubParams struct method HasIDRequirement (line 746) | func (p *stubParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 748) | func (p *stubParams) Equal(other key.Parameters) bool { FILE: keyderivation/internal/streamingprf/hkdf_streaming_prf.go constant minHKDFStreamingPRFKeySize (line 27) | minHKDFStreamingPRFKeySize = 32 type HKDFStreamingPRF (line 30) | type HKDFStreamingPRF struct method Compute (line 53) | func (h *HKDFStreamingPRF) Compute(data []byte) (io.Reader, error) { function NewHKDFStreamingPRF (line 41) | func NewHKDFStreamingPRF(hashName string, key, salt []byte) (*HKDFStream... function validateHKDFStreamingPRFParams (line 57) | func validateHKDFStreamingPRFParams(hash string, keySize int) error { FILE: keyderivation/internal/streamingprf/hkdf_streaming_prf_test.go function TestNewHKDFStreamingPRF (line 30) | func TestNewHKDFStreamingPRF(t *testing.T) { function TestNewHKDFStreamingPRFFails (line 71) | func TestNewHKDFStreamingPRFFails(t *testing.T) { function TestHKDFStreamingPRFWithRFCVector (line 96) | func TestHKDFStreamingPRFWithRFCVector(t *testing.T) { function TestHKDFStreamingPRFWithWycheproof (line 145) | func TestHKDFStreamingPRFWithWycheproof(t *testing.T) { FILE: keyderivation/internal/streamingprf/streaming_prf.go type StreamingPRF (line 27) | type StreamingPRF interface FILE: keyderivation/keyderivation_example_test.go function Example (line 27) | func Example() { FILE: keyderivation/keyderivation_key_templates.go function CreatePRFBasedKeyTemplate (line 29) | func CreatePRFBasedKeyTemplate(prfKeyTemplate, derivedKeyTemplate *tinkp... FILE: keyderivation/keyderivation_key_templates_test.go function TestPRFBasedKeyTemplateDerivesAESGCMKeyset (line 30) | func TestPRFBasedKeyTemplateDerivesAESGCMKeyset(t *testing.T) { function TestInvalidPRFBasedDeriverKeyTemplates (line 104) | func TestInvalidPRFBasedDeriverKeyTemplates(t *testing.T) { FILE: keyderivation/keyderivation_test.go function TestDeriveKeyset_CreateKeysetFailsWithInconsistentOutputPrefixTypes (line 28) | func TestDeriveKeyset_CreateKeysetFailsWithInconsistentOutputPrefixTypes... FILE: keyderivation/keyset_deriver.go type KeysetDeriver (line 27) | type KeysetDeriver interface FILE: keyderivation/keyset_deriver_factory.go type fullPrimitiveWrapper (line 29) | type fullPrimitiveWrapper struct method DeriveKey (line 37) | func (w *fullPrimitiveWrapper) DeriveKey(salt []byte) (key.Key, error) { function New (line 56) | func New(handle *keyset.Handle) (KeysetDeriver, error) { function NewWithConfig (line 65) | func NewWithConfig(handle *keyset.Handle, config keyset.Config) (KeysetD... type fullKeyDeriverWithKeyID (line 101) | type fullKeyDeriverWithKeyID struct method DeriveKey (line 106) | func (w *fullKeyDeriverWithKeyID) DeriveKey(salt []byte) (key.Key, err... type wrappedKeysetDeriver (line 111) | type wrappedKeysetDeriver struct method DeriveKeyset (line 118) | func (w *wrappedKeysetDeriver) DeriveKeyset(salt []byte) (*keyset.Hand... FILE: keyderivation/keyset_deriver_factory_test.go type invalidDeriver (line 42) | type invalidDeriver struct method DeriveKeyset (line 46) | func (i *invalidDeriver) DeriveKeyset(salt []byte) (*keyset.Handle, er... function TestNewWrappedKeysetDeriverWrongPrimitiveFails (line 59) | func TestNewWrappedKeysetDeriverWrongPrimitiveFails(t *testing.T) { constant stubKeysetDeriverURL (line 70) | stubKeysetDeriverURL = "type.googleapis.com/google.crypto.tink.StubKeyse... type stubKeysetDeriverParams (line 73) | type stubKeysetDeriverParams struct method Equal (line 77) | func (p *stubKeysetDeriverParams) Equal(_ key.Parameters) bool { retur... method HasIDRequirement (line 78) | func (p *stubKeysetDeriverParams) HasIDRequirement() bool { retur... type stubKeysetDeriverKey (line 80) | type stubKeysetDeriverKey struct method Equal (line 87) | func (p *stubKeysetDeriverKey) Equal(_ key.Key) bool { return tr... method Parameters (line 88) | func (p *stubKeysetDeriverKey) Parameters() key.Parameters { return &s... method IDRequirement (line 89) | func (p *stubKeysetDeriverKey) IDRequirement() (uint32, bool) { method HasIDRequirement (line 92) | func (p *stubKeysetDeriverKey) HasIDRequirement() bool { type stubKeysetDeriverKeySerialization (line 96) | type stubKeysetDeriverKeySerialization struct method SerializeKey (line 100) | func (s *stubKeysetDeriverKeySerialization) SerializeKey(key key.Key) ... type stubKeysetDeriverKeyParser (line 112) | type stubKeysetDeriverKeyParser struct method ParseKey (line 116) | func (s *stubKeysetDeriverKeyParser) ParseKey(serialization *protoseri... constant derivedKeyURL (line 125) | derivedKeyURL = "type.googleapis.com/google.crypto.tink.DerivedKey" type derivedKey (line 128) | type derivedKey struct method Equal (line 136) | func (p *derivedKey) Equal(_ key.Key) bool { return true } method Parameters (line 137) | func (p *derivedKey) Parameters() key.Parameters { return &stubKeysetD... method IDRequirement (line 138) | func (p *derivedKey) IDRequirement() (uint32, bool) { method HasIDRequirement (line 141) | func (p *derivedKey) HasIDRequirement() bool { type stubLegacyKeyDeriver (line 145) | type stubLegacyKeyDeriver struct method DeriveKey (line 149) | func (s *stubLegacyKeyDeriver) DeriveKey(salt []byte) (key.Key, error) { type derivedKeySerializer (line 157) | type derivedKeySerializer struct method SerializeKey (line 161) | func (s *derivedKeySerializer) SerializeKey(key key.Key) (*protoserial... type derivedKeyParser (line 173) | type derivedKeyParser struct method ParseKey (line 177) | func (s *derivedKeyParser) ParseKey(serialization *protoserialization.... type stubKeyDeriverKeyManager (line 186) | type stubKeyDeriverKeyManager struct method NewKey (line 190) | func (km *stubKeyDeriverKeyManager) NewKey(_ []byte) (proto.Message, e... method NewKeyData (line 193) | func (km *stubKeyDeriverKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyD... method DoesSupport (line 196) | func (km *stubKeyDeriverKeyManager) DoesSupport(keyURL string) bool { method TypeURL (line 199) | func (km *stubKeyDeriverKeyManager) TypeURL() string { return stubKeys... method Primitive (line 200) | func (km *stubKeyDeriverKeyManager) Primitive(_ []byte) (any, error) { function TestPrimitiveFactory_New_FailsIfNoKeyManagerRegistered (line 204) | func TestPrimitiveFactory_New_FailsIfNoKeyManagerRegistered(t *testing.T) { function TestPrimitiveFactory_UsesRawPrimitives (line 234) | func TestPrimitiveFactory_UsesRawPrimitives(t *testing.T) { type fullKeyDeriver (line 350) | type fullKeyDeriver struct method DeriveKey (line 354) | func (s *fullKeyDeriver) DeriveKey(salt []byte) (key.Key, error) { function TestPrimitiveFactory_UsesFullPrimitives (line 362) | func TestPrimitiveFactory_UsesFullPrimitives(t *testing.T) { function TestPrimitiveFactory_MultipleKeys_UsesFullPrimitives (line 485) | func TestPrimitiveFactory_MultipleKeys_UsesFullPrimitives(t *testing.T) { type failingKeyDeriver (line 578) | type failingKeyDeriver struct method DeriveKey (line 580) | func (s *failingKeyDeriver) DeriveKey(salt []byte) (key.Key, error) { function TestPrimitiveFactory_KeysetDeriverFailsIfFullPrimitiveFails (line 584) | func TestPrimitiveFactory_KeysetDeriverFailsIfFullPrimitiveFails(t *test... function TestNewWithConfigFailsIfNoPrimitiveConstructorRegistered (line 634) | func TestNewWithConfigFailsIfNoPrimitiveConstructorRegistered(t *testing... function TestNewWithConfig (line 671) | func TestNewWithConfig(t *testing.T) { FILE: keyderivation/keyset_deriver_factory_x_test.go function TestWrappedKeysetDeriver (line 31) | func TestWrappedKeysetDeriver(t *testing.T) { function TestNewRejectsNilKeysetHandle (line 222) | func TestNewRejectsNilKeysetHandle(t *testing.T) { function TestNewRejectsIncorrectKey (line 228) | func TestNewRejectsIncorrectKey(t *testing.T) { FILE: keyderivation/prfbasedkeyderivation/key.go type Key (line 30) | type Key struct method PRFKey (line 81) | func (k *Key) PRFKey() key.Key { return k.prfKey } method Parameters (line 84) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 88) | func (k *Key) IDRequirement() (uint32, bool) { method Equal (line 93) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 47) | func NewKey(parameters *Parameters, prfKey key.Key, idRequirement uint32... function createKey (line 100) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: keyderivation/prfbasedkeyderivation/key_manager.go type keyManager (line 29) | type keyManager struct method Primitive (line 33) | func (km *keyManager) Primitive(serializedKey []byte) (any, error) { method NewKey (line 37) | func (km *keyManager) NewKey(serializedKeyFormat []byte) (proto.Messag... method NewKeyData (line 49) | func (km *keyManager) NewKeyData(serializedKeyFormat []byte) (*tinkpb.... method DoesSupport (line 75) | func (km *keyManager) DoesSupport(typeURL string) bool { return typeUR... method TypeURL (line 77) | func (km *keyManager) TypeURL() string { return typeURL } FILE: keyderivation/prfbasedkeyderivation/key_manager_test.go constant typeURL (line 34) | typeURL = "type.googleapis.com/google.crypto.tink.PrfBasedDeriverKey" function TestKeyManagerPrimitive_Unimplemented (line 36) | func TestKeyManagerPrimitive_Unimplemented(t *testing.T) { function TestKeyManagerNewKey (line 55) | func TestKeyManagerNewKey(t *testing.T) { function TestKeyManagerNewKeyData (line 131) | func TestKeyManagerNewKeyData(t *testing.T) { function TestKeyManagerNewKeyAndNewKeyDataRejectsIncorrectKeyFormats (line 213) | func TestKeyManagerNewKeyAndNewKeyDataRejectsIncorrectKeyFormats(t *test... function TestKeyManagerNewKeyAndNewKeyDataRejectsInvalidKeyFormats (line 261) | func TestKeyManagerNewKeyAndNewKeyDataRejectsInvalidKeyFormats(t *testin... function TestKeyManagerDoesSupport (line 318) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 331) | func TestKeyManagerTypeURL(t *testing.T) { FILE: keyderivation/prfbasedkeyderivation/key_test.go type stubKey (line 37) | type stubKey struct method Equal (line 41) | func (p *stubKey) Equal(other key.Key) bool { return false } method HasIDRequirement (line 43) | func (p *stubKey) HasIDRequirement() bool { return false } method Parameters (line 45) | func (p *stubKey) Parameters() key.Parameters { return nil } method IDRequirement (line 47) | func (p *stubKey) IDRequirement() (uint32, bool) { return 0, false } function TestNewKey_Invalid (line 49) | func TestNewKey_Invalid(t *testing.T) { function TestNewKey_Valid (line 124) | func TestNewKey_Valid(t *testing.T) { function mustCreateKey (line 269) | func mustCreateKey(t *testing.T, prfParameters key.Parameters, prfKey ke... function TestKeyNotEqual (line 282) | func TestKeyNotEqual(t *testing.T) { function TestKeyCreator (line 353) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsIfUnsupportedParamValues (line 433) | func TestKeyCreator_FailsIfUnsupportedParamValues(t *testing.T) { FILE: keyderivation/prfbasedkeyderivation/keyderiver.go type keyDeriver (line 29) | type keyDeriver struct method DeriveKey (line 61) | func (k *keyDeriver) DeriveKey(salt []byte) (key.Key, error) { function NewKeyDeriver (line 39) | func NewKeyDeriver(key *Key, _ internalapi.Token) (keyderiver.KeyDeriver... function primitiveConstructor (line 72) | func primitiveConstructor(key key.Key) (any, error) { FILE: keyderivation/prfbasedkeyderivation/keyderiver_test.go function TestNewKeyDeriver_Fails (line 41) | func TestNewKeyDeriver_Fails(t *testing.T) { function mustHexDecode (line 94) | func mustHexDecode(t *testing.T, s string) []byte { function TestDeriveKey (line 103) | func TestDeriveKey(t *testing.T) { function mustCreateAESGCMParams (line 225) | func mustCreateAESGCMParams(t *testing.T, opts aesgcm.ParametersOpts) *a... function mustCreateAESGCMKey (line 234) | func mustCreateAESGCMKey(t *testing.T, keyBytes []byte, params *aesgcm.P... function mustCreateHMACParameters (line 243) | func mustCreateHMACParameters(t *testing.T, opts hmac.ParametersOpts) *h... function mustCreateHMACKey (line 252) | func mustCreateHMACKey(t *testing.T, keyBytes []byte, params *hmac.Param... function mustCreateHKDFPRFKey (line 261) | func mustCreateHKDFPRFKey(t *testing.T, keyBytes []byte, salt []byte) ke... function TestDeriveKey_TestVectors (line 276) | func TestDeriveKey_TestVectors(t *testing.T) { FILE: keyderivation/prfbasedkeyderivation/parameters.go type Parameters (line 27) | type Parameters struct method PRFParameters (line 62) | func (p *Parameters) PRFParameters() key.Parameters { return p.prfPara... method DerivedKeyParameters (line 65) | func (p *Parameters) DerivedKeyParameters() key.Parameters { return p.... method HasIDRequirement (line 68) | func (p *Parameters) HasIDRequirement() bool { method Equal (line 73) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 40) | func NewParameters(prfParameters key.Parameters, derivedKeyParameters ke... FILE: keyderivation/prfbasedkeyderivation/parameters_test.go type stubParameters (line 28) | type stubParameters struct method Equal (line 32) | func (p *stubParameters) Equal(other key.Parameters) bool { return fal... method HasIDRequirement (line 34) | func (p *stubParameters) HasIDRequirement() bool { return false } function TestParametersInvalid (line 36) | func TestParametersInvalid(t *testing.T) { function TestParametersValid (line 79) | func TestParametersValid(t *testing.T) { function TestParametersNotEqual (line 187) | func TestParametersNotEqual(t *testing.T) { FILE: keyderivation/prfbasedkeyderivation/prfbasedkeyderivation.go function RegisterPrimitiveConstructor (line 34) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 38) | func init() { FILE: keyderivation/prfbasedkeyderivation/prfbasedkeyderivation_test.go function TestKeyderivation_EndToEnd (line 38) | func TestKeyderivation_EndToEnd(t *testing.T) { function mustCreateKeys (line 236) | func mustCreateKeys(t *testing.T) (*prfbasedkeyderivation.Key, key.Key) { function TestRegisterPrimitiveConstructor (line 277) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: keyderivation/prfbasedkeyderivation/protoserialization.go constant typeURL (line 28) | typeURL = "type.googleapis.com/google.crypto.tink.PrfBasedDeriverKey" type keySerializer (line 31) | type keySerializer struct method SerializeKey (line 38) | func (s *keySerializer) SerializeKey(k key.Key) (*protoserialization.K... type keyParser (line 78) | type keyParser struct method ParseKey (line 83) | func (p *keyParser) ParseKey(keySerialization *protoserialization.KeyS... type parametersSerializer (line 125) | type parametersSerializer struct method Serialize (line 130) | func (s *parametersSerializer) Serialize(params key.Parameters) (*tink... type parametersParser (line 162) | type parametersParser struct method Parse (line 167) | func (p *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: keyderivation/prfbasedkeyderivation/protoserialization_test.go function mustMarshal (line 42) | func mustMarshal(t *testing.T, message proto.Message) []byte { function mustCreateKeySerialization (line 51) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... type keyParsingTestCase (line 60) | type keyParsingTestCase struct function keyParsingTestCases (line 66) | func keyParsingTestCases(t *testing.T) []keyParsingTestCase { function TestParseKey_Success (line 297) | func TestParseKey_Success(t *testing.T) { function TestParseKey_Failure (line 311) | func TestParseKey_Failure(t *testing.T) { function TestSerializeKey_Success (line 504) | func TestSerializeKey_Success(t *testing.T) { type stubParams (line 518) | type stubParams struct method Equal (line 522) | func (p *stubParams) Equal(_ key.Parameters) bool { return true } method HasIDRequirement (line 523) | func (p *stubParams) HasIDRequirement() bool { return true } function TestSerializeKey_Failure (line 525) | func TestSerializeKey_Failure(t *testing.T) { function mustCreateParameters (line 548) | func mustCreateParameters(t *testing.T, prfParams key.Parameters, derive... type paramsParsingTestCase (line 557) | type paramsParsingTestCase struct function paramsParsingTestCases (line 563) | func paramsParsingTestCases(t *testing.T) []paramsParsingTestCase { function TestParametersSerialization (line 776) | func TestParametersSerialization(t *testing.T) { function TestParametersParsing (line 790) | func TestParametersParsing(t *testing.T) { function TestParametersParsing_Fails (line 804) | func TestParametersParsing_Fails(t *testing.T) { FILE: keyset/binary_io.go type BinaryReader (line 26) | type BinaryReader struct method Read (line 36) | func (bkr *BinaryReader) Read() (*tinkpb.Keyset, error) { method ReadEncrypted (line 46) | func (bkr *BinaryReader) ReadEncrypted() (*tinkpb.EncryptedKeyset, err... function NewBinaryReader (line 31) | func NewBinaryReader(r io.Reader) *BinaryReader { function read (line 55) | func read(r io.Reader, msg proto.Message) error { type BinaryWriter (line 65) | type BinaryWriter struct method Write (line 75) | func (bkw *BinaryWriter) Write(keyset *tinkpb.Keyset) error { method WriteEncrypted (line 80) | func (bkw *BinaryWriter) WriteEncrypted(keyset *tinkpb.EncryptedKeyset... function NewBinaryWriter (line 70) | func NewBinaryWriter(w io.Writer) *BinaryWriter { function write (line 87) | func write(w io.Writer, msg proto.Message) error { FILE: keyset/binary_io_test.go function TestBinaryIOUnencrypted (line 34) | func TestBinaryIOUnencrypted(t *testing.T) { function TestBinaryIOEncrypted (line 60) | func TestBinaryIOEncrypted(t *testing.T) { function TestReadInBinaryWithTestVector (line 81) | func TestReadInBinaryWithTestVector(t *testing.T) { function TestBinaryWriteEncryptedOverhead (line 120) | func TestBinaryWriteEncryptedOverhead(t *testing.T) { FILE: keyset/handle.go type Handle (line 41) | type Handle struct method Primary (line 351) | func (h *Handle) Primary() (*Entry, error) { method Entry (line 363) | func (h *Handle) Entry(i int) (*Entry, error) { method Public (line 379) | func (h *Handle) Public() (*Handle, error) { method String (line 404) | func (h *Handle) String() string { method Len (line 413) | func (h *Handle) Len() int { method KeysetInfo (line 457) | func (h *Handle) KeysetInfo() *tinkpb.KeysetInfo { method Write (line 467) | func (h *Handle) Write(writer Writer, masterKey tink.AEAD) error { method WriteWithAssociatedData (line 475) | func (h *Handle) WriteWithAssociatedData(writer Writer, masterKey tink... method WriteWithContext (line 491) | func (h *Handle) WriteWithContext(ctx context.Context, writer Writer, ... method WriteWithNoSecrets (line 508) | func (h *Handle) WriteWithNoSecrets(w Writer) error { type KeyStatus (line 49) | type KeyStatus method String (line 63) | func (ks KeyStatus) String() string { constant Unknown (line 53) | Unknown KeyStatus = iota constant Enabled (line 55) | Enabled constant Disabled (line 57) | Disabled constant Destroyed (line 59) | Destroyed type keyExportLogger (line 76) | type keyExportLogger interface type Entry (line 81) | type Entry struct method Key (line 101) | func (e *Entry) Key() key.Key { method IsPrimary (line 107) | func (e *Entry) IsPrimary() bool { method KeyID (line 112) | func (e *Entry) KeyID() uint32 { method KeyStatus (line 117) | func (e *Entry) KeyStatus() KeyStatus { method toUnmonitored (line 121) | func (e *Entry) toUnmonitored() *Entry { function newUnmonitoredEntry (line 90) | func newUnmonitoredEntry(key key.Key, isPrimary bool, keyID uint32, stat... function keyStatusFromProto (line 125) | func keyStatusFromProto(status tinkpb.KeyStatusType) (KeyStatus, error) { function keyStatusToProto (line 138) | func keyStatusToProto(status KeyStatus) (tinkpb.KeyStatusType, error) { function entryToProtoKey (line 152) | func entryToProtoKey(entry *Entry) (*tinkpb.Keyset_Key, error) { function entriesToProtoKeyset (line 169) | func entriesToProtoKeyset(entries []*Entry, shouldLogKeyExport bool) (*t... function setEntryMonitoringIfNeeded (line 193) | func setEntryMonitoringIfNeeded(h *Handle) error { function newFromEntries (line 215) | func newFromEntries(entries []*Entry, opts ...Option) (*Handle, error) { function hasSecrets (line 243) | func hasSecrets(ks *tinkpb.Keyset) bool { function keysetToEntries (line 253) | func keysetToEntries(ks *tinkpb.Keyset) ([]*Entry, error) { function NewHandle (line 283) | func NewHandle(kt *tinkpb.KeyTemplate) (*Handle, error) { function NewHandleWithNoSecrets (line 302) | func NewHandleWithNoSecrets(ks *tinkpb.Keyset) (*Handle, error) { function Read (line 310) | func Read(reader Reader, masterKey tink.AEAD) (*Handle, error) { function ReadWithAssociatedData (line 315) | func ReadWithAssociatedData(reader Reader, masterKey tink.AEAD, associat... function ReadWithContext (line 329) | func ReadWithContext(ctx context.Context, reader Reader, keyEncryptionAE... function ReadWithNoSecrets (line 342) | func ReadWithNoSecrets(reader Reader) (*Handle, error) { type privateKey (line 374) | type privateKey interface function entriesToKeysetInfo (line 420) | func entriesToKeysetInfo(entries []*Entry) (*tinkpb.KeysetInfo, error) { type Config (line 523) | type Config interface type primitiveOptions (line 528) | type primitiveOptions struct function Primitives (line 546) | func Primitives[T any](h *Handle, config Config, _ internalapi.Token) (*... function addToPrimitiveSet (line 567) | func addToPrimitiveSet[T any](primitiveSet *primitiveset.PrimitiveSet[T]... function decrypt (line 598) | func decrypt(encryptedKeyset *tinkpb.EncryptedKeyset, keyEncryptionAEAD ... function decryptWithContext (line 614) | func decryptWithContext(ctx context.Context, encryptedKeyset *tinkpb.Enc... function encrypt (line 629) | func encrypt(keyset *tinkpb.Keyset, keyEncryptionAEAD tink.AEAD, associa... function encryptWithContext (line 647) | func encryptWithContext(ctx context.Context, keyset *tinkpb.Keyset, keyE... function getKeysetInfo (line 665) | func getKeysetInfo(keyset *tinkpb.Keyset) *tinkpb.KeysetInfo { function getKeyInfo (line 680) | func getKeyInfo(key *tinkpb.Keyset_Key) *tinkpb.KeysetInfo_KeyInfo { FILE: keyset/handle_test.go function TestNewHandle (line 58) | func TestNewHandle(t *testing.T) { function TestKeysetMaterialMakesACopy (line 80) | func TestKeysetMaterialMakesACopy(t *testing.T) { function TestNewHandleExistingKeyset (line 97) | func TestNewHandleExistingKeyset(t *testing.T) { function TestNewHandleWithInvalidTypeURLFails (line 152) | func TestNewHandleWithInvalidTypeURLFails(t *testing.T) { function TestNewHandleWithNilTemplateFails (line 161) | func TestNewHandleWithNilTemplateFails(t *testing.T) { function TestWriteAndReadInBinary (line 167) | func TestWriteAndReadInBinary(t *testing.T) { function TestWriteAndReadInJSON (line 199) | func TestWriteAndReadInJSON(t *testing.T) { constant fakeKeyURI (line 231) | fakeKeyURI = "fake-kms://CM2b3_MDElQKSAowdHlwZS5nb29nbGVhcGlzLmNvbS9nb29... function TestWriteAndReadWithAssociatedData (line 233) | func TestWriteAndReadWithAssociatedData(t *testing.T) { function TestReadWithMismatchedAssociatedData (line 276) | func TestReadWithMismatchedAssociatedData(t *testing.T) { function TestWriteAndReadWithContext (line 306) | func TestWriteAndReadWithContext(t *testing.T) { function TestWriteWithContextDoesNotIgnoreContext (line 355) | func TestWriteWithContextDoesNotIgnoreContext(t *testing.T) { function TestReadWithContextDoesNotIgnoreContext (line 378) | func TestReadWithContextDoesNotIgnoreContext(t *testing.T) { function TestPrimaryReturnsError (line 408) | func TestPrimaryReturnsError(t *testing.T) { function TestLenReturnsZero (line 432) | func TestLenReturnsZero(t *testing.T) { function TestPublicReturnsError (line 456) | func TestPublicReturnsError(t *testing.T) { function TestEntryReturnsError (line 480) | func TestEntryReturnsError(t *testing.T) { function TestPrimitivesReturnsError (line 504) | func TestPrimitivesReturnsError(t *testing.T) { function TestKeysetInfoPanics (line 528) | func TestKeysetInfoPanics(t *testing.T) { function TestStringPanics (line 554) | func TestStringPanics(t *testing.T) { function TestWriteReturnsError (line 580) | func TestWriteReturnsError(t *testing.T) { function TestWriteWithAssociatedDataReturnsError (line 612) | func TestWriteWithAssociatedDataReturnsError(t *testing.T) { function TestWriteWithNoSecretsReturnsError (line 645) | func TestWriteWithNoSecretsReturnsError(t *testing.T) { function TestWriteAndReadWithNoSecrets (line 669) | func TestWriteAndReadWithNoSecrets(t *testing.T) { function TestNewHandleWithNoSecretsReturnsErrorIfInputIsNil (line 713) | func TestNewHandleWithNoSecretsReturnsErrorIfInputIsNil(t *testing.T) { function TestWriteWithNoSecretsFailsWithSymmetricSecretKey (line 719) | func TestWriteWithNoSecretsFailsWithSymmetricSecretKey(t *testing.T) { function TestReadWithNoSecretsFailsWithSymmetricSecretKey (line 733) | func TestReadWithNoSecretsFailsWithSymmetricSecretKey(t *testing.T) { function TestWriteWithNoSecretsFailsWithPrivateKey (line 752) | func TestWriteWithNoSecretsFailsWithPrivateKey(t *testing.T) { function TestReadWithNoSecretsFailsWithPrivateKey (line 765) | func TestReadWithNoSecretsFailsWithPrivateKey(t *testing.T) { function TestWriteAndReadWithNoSecretsFailsWithUnknownKeyMaterial (line 784) | func TestWriteAndReadWithNoSecretsFailsWithUnknownKeyMaterial(t *testing... function TestKeysetInfo (line 810) | func TestKeysetInfo(t *testing.T) { function TestKeysetInfo_withRSAPSSAndSaltLengthZero_works (line 895) | func TestKeysetInfo_withRSAPSSAndSaltLengthZero_works(t *testing.T) { function TestPrimitivesWithRegistry (line 947) | func TestPrimitivesWithRegistry(t *testing.T) { type stubPrimitive (line 989) | type stubPrimitive struct function TestPrimitives (line 993) | func TestPrimitives(t *testing.T) { function TestPrimitivesWithConfig (line 1013) | func TestPrimitivesWithConfig(t *testing.T) { function TestLenWithOneKey (line 1071) | func TestLenWithOneKey(t *testing.T) { function TestLenWithMultipleKeys (line 1082) | func TestLenWithMultipleKeys(t *testing.T) { function TestEntryReturnsCorrectKey (line 1101) | func TestEntryReturnsCorrectKey(t *testing.T) { function TestEntryFailsIfIndexOutOfRange (line 1134) | func TestEntryFailsIfIndexOutOfRange(t *testing.T) { function TestPrimaryReturnsPrimaryKey (line 1158) | func TestPrimaryReturnsPrimaryKey(t *testing.T) { function TestPrimaryIsThreadSafe (line 1210) | func TestPrimaryIsThreadSafe(t *testing.T) { function TestEntryIsThreadSafe (line 1238) | func TestEntryIsThreadSafe(t *testing.T) { function TestKeysetInfoIsThreadSafe (line 1266) | func TestKeysetInfoIsThreadSafe(t *testing.T) { function TestPrimitivesIsThreadSafe (line 1293) | func TestPrimitivesIsThreadSafe(t *testing.T) { function TestPublicKeysetHasPrimaryKey (line 1321) | func TestPublicKeysetHasPrimaryKey(t *testing.T) { function TestPublicIsThreadSafe (line 1347) | func TestPublicIsThreadSafe(t *testing.T) { function TestWriteIsThreadSafe (line 1375) | func TestWriteIsThreadSafe(t *testing.T) { function TestWriteWithAssociatedDataIsThreadSafe (line 1412) | func TestWriteWithAssociatedDataIsThreadSafe(t *testing.T) { function TestWriteWithNoSecretsIsThreadSafe (line 1450) | func TestWriteWithNoSecretsIsThreadSafe(t *testing.T) { function TestKeyExportMonitoring (line 1482) | func TestKeyExportMonitoring(t *testing.T) { function TestKeyExportMonitoring_keysetMaterial (line 1559) | func TestKeyExportMonitoring_keysetMaterial(t *testing.T) { function TestKeyExportNotMonitored (line 1629) | func TestKeyExportNotMonitored(t *testing.T) { function TestPublicAndPrimitivesGenerateNoKeyExport (line 1672) | func TestPublicAndPrimitivesGenerateNoKeyExport(t *testing.T) { function TestWriteGeneratesNoKeyExport (line 1724) | func TestWriteGeneratesNoKeyExport(t *testing.T) { FILE: keyset/json_io.go type JSONReader (line 27) | type JSONReader struct method Read (line 41) | func (bkr *JSONReader) Read() (*tinkpb.Keyset, error) { method ReadEncrypted (line 51) | func (bkr *JSONReader) ReadEncrypted() (*tinkpb.EncryptedKeyset, error) { method readJSON (line 60) | func (bkr *JSONReader) readJSON(r io.Reader, msg proto.Message) error { function NewJSONReader (line 33) | func NewJSONReader(r io.Reader) *JSONReader { type JSONWriter (line 69) | type JSONWriter struct method Write (line 86) | func (bkw *JSONWriter) Write(keyset *tinkpb.Keyset) error { method WriteEncrypted (line 91) | func (bkw *JSONWriter) WriteEncrypted(keyset *tinkpb.EncryptedKeyset) ... method writeJSON (line 95) | func (bkw *JSONWriter) writeJSON(w io.Writer, msg proto.Message) error { function NewJSONWriter (line 75) | func NewJSONWriter(w io.Writer) *JSONWriter { FILE: keyset/json_io_test.go function TestJSONIOUnencrypted (line 33) | func TestJSONIOUnencrypted(t *testing.T) { function TestJSONReader (line 59) | func TestJSONReader(t *testing.T) { function TestJSONReaderLargeIds (line 125) | func TestJSONReaderLargeIds(t *testing.T) { function TestJSONReaderRejectsNegativeKeyIds (line 170) | func TestJSONReaderRejectsNegativeKeyIds(t *testing.T) { function TestJSONReaderRejectsKeyIdLargerThanUint32 (line 195) | func TestJSONReaderRejectsKeyIdLargerThanUint32(t *testing.T) { function TestJSONWriterLargeId (line 222) | func TestJSONWriterLargeId(t *testing.T) { function TestJSONIOEncrypted (line 255) | func TestJSONIOEncrypted(t *testing.T) { FILE: keyset/keyset.go function newKeysetHandleFromProto (line 27) | func newKeysetHandleFromProto(ks *tinkpb.Keyset, opts ...Option) (*Handl... function keysetMaterial (line 39) | func keysetMaterial(h *Handle) *tinkpb.Keyset { function init (line 47) | func init() { FILE: keyset/keyset_benchmark_test.go function newTestKeysetHandle (line 33) | func newTestKeysetHandle(b *testing.B, kt *tinkpb.KeyTemplate, numKeys i... function BenchmarkNewHandleWithNoSecrets (line 69) | func BenchmarkNewHandleWithNoSecrets(b *testing.B) { function BenchmarkHandlePrimitives (line 89) | func BenchmarkHandlePrimitives(b *testing.B) { function BenchmarkHandleEntry (line 104) | func BenchmarkHandleEntry(b *testing.B) { function BenchmarkHandlePrimary (line 120) | func BenchmarkHandlePrimary(b *testing.B) { function BenchmarkHandlePublic (line 135) | func BenchmarkHandlePublic(b *testing.B) { function BenchmarkHandleKeysetInfo (line 150) | func BenchmarkHandleKeysetInfo(b *testing.B) { FILE: keyset/keyset_test.go constant keyURI (line 30) | keyURI = "fake-kms://CM2b3_MDElQKSAowdHlwZS5nb29nbGVhcGlzLmNvbS9nb29nbGU... function Example_encryptedKeyset (line 32) | func Example_encryptedKeyset() { FILE: keyset/manager.go type entry (line 33) | type entry struct function fromKeysetEntries (line 43) | func fromKeysetEntries(entries []*Entry) []*entry { type Manager (line 60) | type Manager struct method Add (line 88) | func (km *Manager) Add(kt *tinkpb.KeyTemplate) (uint32, error) { method AddKeyWithOpts (line 172) | func (km *Manager) AddKeyWithOpts(key key.Key, _ internalapi.Token, op... method AddKey (line 225) | func (km *Manager) AddKey(key key.Key) (uint32, error) { method AddNewKeyFromParameters (line 231) | func (km *Manager) AddNewKeyFromParameters(parameters key.Parameters) ... method SetPrimary (line 251) | func (km *Manager) SetPrimary(keyID uint32) error { method Enable (line 272) | func (km *Manager) Enable(keyID uint32) error { method Disable (line 286) | func (km *Manager) Disable(keyID uint32) error { method Delete (line 303) | func (km *Manager) Delete(keyID uint32) error { method SetAnnotations (line 319) | func (km *Manager) SetAnnotations(annotations map[string]string) error { method Handle (line 328) | func (km *Manager) Handle() (*Handle, error) { method newRandomKeyID (line 337) | func (km *Manager) newRandomKeyID() uint32 { function NewManager (line 67) | func NewManager() *Manager { function NewManagerFromHandle (line 75) | func NewManagerFromHandle(kh *Handle) *Manager { type KeyOpts (line 125) | type KeyOpts interface type keyOpts (line 129) | type keyOpts method apply (line 131) | func (o keyOpts) apply(e *entry) error { return o(e) } function WithStatus (line 134) | func WithStatus(status KeyStatus) KeyOpts { function WithFixedID (line 145) | func WithFixedID(id uint32) KeyOpts { function AsPrimary (line 158) | func AsPrimary() KeyOpts { function findEntry (line 239) | func findEntry(entries []*entry, keyID uint32) (*entry, int, error) { FILE: keyset/manager_test.go function TestKeysetManagerBasic (line 43) | func TestKeysetManagerBasic(t *testing.T) { function TestKeysetManagerExistingKeyset (line 71) | func TestKeysetManagerExistingKeyset(t *testing.T) { function TestKeysetManagerNewManagerFromHandleMakesACopy (line 115) | func TestKeysetManagerNewManagerFromHandleMakesACopy(t *testing.T) { function TestKeysetManagerAddSetPrimaryHandle (line 158) | func TestKeysetManagerAddSetPrimaryHandle(t *testing.T) { function TestKeysetManagerAdd (line 187) | func TestKeysetManagerAdd(t *testing.T) { function TestKeysetManagerAddWithNilKeysetTemplateFails (line 217) | func TestKeysetManagerAddWithNilKeysetTemplateFails(t *testing.T) { function TestKeysetManagerAddWithInvalidTypeUrlFails (line 226) | func TestKeysetManagerAddWithInvalidTypeUrlFails(t *testing.T) { function TestKeysetManagerAddWithUnknownOutputPrefixTypeFails (line 238) | func TestKeysetManagerAddWithUnknownOutputPrefixTypeFails(t *testing.T) { function TestKeysetManagerEnable (line 248) | func TestKeysetManagerEnable(t *testing.T) { function TestKeysetManagerEnableWithDestroyed (line 285) | func TestKeysetManagerEnableWithDestroyed(t *testing.T) { function TestKeysetManagerEnableWithMissingKey (line 310) | func TestKeysetManagerEnableWithMissingKey(t *testing.T) { function TestKeysetManagerSetPrimary (line 333) | func TestKeysetManagerSetPrimary(t *testing.T) { function TestKeysetManagerSetPrimaryWithDisabledKey (line 363) | func TestKeysetManagerSetPrimaryWithDisabledKey(t *testing.T) { function TestKeysetManagerSetPrimaryWithDestroyedKey (line 386) | func TestKeysetManagerSetPrimaryWithDestroyedKey(t *testing.T) { function TestKeysetManagerSetPrimaryWithMissingKey (line 409) | func TestKeysetManagerSetPrimaryWithMissingKey(t *testing.T) { function TestKeysetManagerDisable (line 429) | func TestKeysetManagerDisable(t *testing.T) { function TestKeysetManagerDisableWithPrimaryKey (line 463) | func TestKeysetManagerDisableWithPrimaryKey(t *testing.T) { function TestKeysetManagerDisableWithDestroyedKey (line 493) | func TestKeysetManagerDisableWithDestroyedKey(t *testing.T) { function TestKeysetManagerDisableWithMissingKey (line 516) | func TestKeysetManagerDisableWithMissingKey(t *testing.T) { function TestKeysetManagerDelete (line 538) | func TestKeysetManagerDelete(t *testing.T) { function TestKeysetManagerDeleteWithPrimaryKey (line 571) | func TestKeysetManagerDeleteWithPrimaryKey(t *testing.T) { function TestKeysetManagerDeleteWithMissingKey (line 591) | func TestKeysetManagerDeleteWithMissingKey(t *testing.T) { function TestKeysetManagerWithEmptyManager (line 611) | func TestKeysetManagerWithEmptyManager(t *testing.T) { function TestKeysetManagerHandleMakesACopyOfTheKeyset (line 636) | func TestKeysetManagerHandleMakesACopyOfTheKeyset(t *testing.T) { type testParameters (line 671) | type testParameters struct method HasIDRequirement (line 675) | func (p *testParameters) HasIDRequirement() bool { return p.hasIDRequi... method Equal (line 676) | func (p *testParameters) Equal(params key.Parameters) bool { type testKey (line 683) | type testKey struct method IDRequirement (line 688) | func (k *testKey) IDRequirement() (id uint32, required bool) { method Parameters (line 691) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 692) | func (k *testKey) Equal(other key.Key) bool { type testKeySerializer (line 702) | type testKeySerializer struct method SerializeKey (line 704) | func (s *testKeySerializer) SerializeKey(key key.Key) (*protoserializa... function TestKeysetManagerAddKeySucceeds (line 717) | func TestKeysetManagerAddKeySucceeds(t *testing.T) { function TestKeysetManager_AddKeyWithOptsAsPrimary_Fails (line 767) | func TestKeysetManager_AddKeyWithOptsAsPrimary_Fails(t *testing.T) { type testKeyManger (line 789) | type testKeyManger struct method Primitive (line 791) | func (km *testKeyManger) Primitive(_ []byte) (any, error) ... method NewKey (line 792) | func (km *testKeyManger) NewKey(_ []byte) (proto.Message, error) ... method TypeURL (line 793) | func (km *testKeyManger) TypeURL() string ... method NewKeyData (line 794) | func (km *testKeyManger) NewKeyData(_ []byte) (*tinkpb.KeyData, error)... method DoesSupport (line 795) | func (km *testKeyManger) DoesSupport(typeURL string) bool { function TestKeysetManager_AddKeyWithOptsAsPrimary_Succeeds (line 799) | func TestKeysetManager_AddKeyWithOptsAsPrimary_Succeeds(t *testing.T) { function TestKeysetManager_AddKeyWithOpts_Succeeds (line 913) | func TestKeysetManager_AddKeyWithOpts_Succeeds(t *testing.T) { function TestKeysetManagerAddKeyFromExistingKeyset (line 986) | func TestKeysetManagerAddKeyFromExistingKeyset(t *testing.T) { function TestKeysetManager_AddKeyWithOpts_ExistingKeyset (line 1039) | func TestKeysetManager_AddKeyWithOpts_ExistingKeyset(t *testing.T) { function TestKeysetManagerAddKeyFailsIfKeyIsNull (line 1112) | func TestKeysetManagerAddKeyFailsIfKeyIsNull(t *testing.T) { function TestKeysetManager_AddKeyWithOpts_FailsIfKeyIsNull (line 1120) | func TestKeysetManager_AddKeyWithOpts_FailsIfKeyIsNull(t *testing.T) { function TestKeysetManagerAddKeyFailsIfKeyHasIDRequirementAndIDAlreadyInUse (line 1128) | func TestKeysetManagerAddKeyFailsIfKeyHasIDRequirementAndIDAlreadyInUse(... function TestKeysetManager_AddKeyWithOpts_FailsIfKeyHasIDRequirementOrFixedIDAndIDAlreadyInUse (line 1155) | func TestKeysetManager_AddKeyWithOpts_FailsIfKeyHasIDRequirementOrFixedI... function TestKeysetManager_AddKeyWithOpts_FailsIfKeyHasIDRequirementAndFixedIDIsDifferent (line 1189) | func TestKeysetManager_AddKeyWithOpts_FailsIfKeyHasIDRequirementAndFixed... function TestKeysetManagerAddNewKeyFromParametersFailsIfNilParameters (line 1213) | func TestKeysetManagerAddNewKeyFromParametersFailsIfNilParameters(t *tes... type testParams (line 1220) | type testParams struct method HasIDRequirement (line 1224) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 1225) | func (p *testParams) Equal(params key.Parameters) bool { type alwaysFailingParametersSerializer (line 1232) | type alwaysFailingParametersSerializer struct method Serialize (line 1234) | func (s *alwaysFailingParametersSerializer) Serialize(params key.Param... function TestKeysetManagerAddNewKeyFromParametersFailsIfSerializerFails (line 1238) | func TestKeysetManagerAddNewKeyFromParametersFailsIfSerializerFails(t *t... type testParametersSerializer (line 1253) | type testParametersSerializer struct method Serialize (line 1255) | func (s *testParametersSerializer) Serialize(params key.Parameters) (*... function TestKeysetManagerAddNewKeyFromParametersWorks (line 1259) | func TestKeysetManagerAddNewKeyFromParametersWorks(t *testing.T) { function TestKeysetManagerSetAnnotations_FailsIfManagerIsNull (line 1296) | func TestKeysetManagerSetAnnotations_FailsIfManagerIsNull(t *testing.T) { function TestKeysetManagerSetAnnotations_ReadOnly (line 1303) | func TestKeysetManagerSetAnnotations_ReadOnly(t *testing.T) { function TestKeysetManagerSetAnnotations (line 1340) | func TestKeysetManagerSetAnnotations(t *testing.T) { FILE: keyset/mem_io.go type MemReaderWriter (line 23) | type MemReaderWriter struct method Read (line 33) | func (m *MemReaderWriter) Read() (*tinkpb.Keyset, error) { method ReadEncrypted (line 38) | func (m *MemReaderWriter) ReadEncrypted() (*tinkpb.EncryptedKeyset, er... method Write (line 43) | func (m *MemReaderWriter) Write(keyset *tinkpb.Keyset) error { method WriteEncrypted (line 49) | func (m *MemReaderWriter) WriteEncrypted(keyset *tinkpb.EncryptedKeyse... FILE: keyset/mem_io_test.go function TestConvertProtoKeysetIntoHandleInTests (line 32) | func TestConvertProtoKeysetIntoHandleInTests(t *testing.T) { function TestConvertHandleKeysetIntoProtoKeysetInTests (line 56) | func TestConvertHandleKeysetIntoProtoKeysetInTests(t *testing.T) { function TestConvertProtoKeysetIntoHandle (line 77) | func TestConvertProtoKeysetIntoHandle(t *testing.T) { function TestConvertHandleKeysetIntoProtoKeyset (line 106) | func TestConvertHandleKeysetIntoProtoKeyset(t *testing.T) { function TestConvertHandleKeysetIntoSerializedKeyset (line 127) | func TestConvertHandleKeysetIntoSerializedKeyset(t *testing.T) { function TestConvertPublicKeyProtoKeysetIntoHandle (line 166) | func TestConvertPublicKeyProtoKeysetIntoHandle(t *testing.T) { function TestConvertPublicKeysetHandleIntoProtoKeyset (line 199) | func TestConvertPublicKeysetHandleIntoProtoKeyset(t *testing.T) { function decryptKeyset (line 233) | func decryptKeyset(encrypted *tinkpb.EncryptedKeyset, keysetEncryptionAE... function TestConvertHandleKeysetIntoProtoEncryptedKeyset (line 246) | func TestConvertHandleKeysetIntoProtoEncryptedKeyset(t *testing.T) { function TestConvertProtoEncryptedKeysetIntoHandle (line 292) | func TestConvertProtoEncryptedKeysetIntoHandle(t *testing.T) { FILE: keyset/option.go type Option (line 20) | type Option interface type option (line 24) | type option method set (line 26) | func (o option) set(h *Handle) error { return o(h) } function WithAnnotations (line 29) | func WithAnnotations(annotations map[string]string) Option { function applyOptions (line 39) | func applyOptions(h *Handle, opts ...Option) error { FILE: keyset/reader.go type Reader (line 22) | type Reader interface FILE: keyset/validation.go function ValidateKeyVersion (line 25) | func ValidateKeyVersion(version, maxExpected uint32) error { function Validate (line 35) | func Validate(keyset *tinkpb.Keyset) error { function validateKey (line 74) | func validateKey(key *tinkpb.Keyset_Key) error { FILE: keyset/validation_test.go function TestValidateKeyVersion (line 26) | func TestValidateKeyVersion(t *testing.T) { function TestValidate (line 34) | func TestValidate(t *testing.T) { function generateInvalidKeys (line 101) | func generateInvalidKeys() []*tinkpb.Keyset_Key { FILE: keyset/writer.go type Writer (line 20) | type Writer interface FILE: kwp/subtle/kwp.go constant MinWrapSize (line 50) | MinWrapSize = 16 constant MaxWrapSize (line 52) | MaxWrapSize = 8192 constant roundCount (line 54) | roundCount = 6 constant ivPrefix (line 55) | ivPrefix = uint32(0xA65959A6) type KWP (line 59) | type KWP struct method computeW (line 89) | func (kwp *KWP) computeW(iv, key []byte) ([]byte, error) { method invertW (line 127) | func (kwp *KWP) invertW(wrapped []byte) ([]byte, error) { method Wrap (line 164) | func (kwp *KWP) Wrap(data []byte) ([]byte, error) { method Unwrap (line 182) | func (kwp *KWP) Unwrap(data []byte) ([]byte, error) { function NewKWP (line 67) | func NewKWP(wrappingKey []byte) (*KWP, error) { function wrappingSize (line 82) | func wrappingSize(inputSize int) int { FILE: kwp/subtle/kwp_test.go function TestWrapUnwrap (line 29) | func TestWrapUnwrap(t *testing.T) { function TestKeySizes (line 57) | func TestKeySizes(t *testing.T) { function TestInvalidWrappingSizes (line 75) | func TestInvalidWrappingSizes(t *testing.T) { type KwpCase (line 91) | type KwpCase struct type KwpGroup (line 98) | type KwpGroup struct type KwpSuite (line 104) | type KwpSuite struct function TestWycheproofCases (line 109) | func TestWycheproofCases(t *testing.T) { function runWycheproofCase (line 126) | func runWycheproofCase(t *testing.T, testCase *KwpCase) { FILE: mac/aescmac/aescmac.go function newKeyManager (line 34) | func newKeyManager() registry.KeyManager { function RegisterPrimitiveConstructor (line 48) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... function init (line 52) | func init() { FILE: mac/aescmac/aescmac_test.go function TestAESCMACKeyetGenerationFromParams (line 30) | func TestAESCMACKeyetGenerationFromParams(t *testing.T) { function TestAESCMACKeysetGenerationFromKey (line 68) | func TestAESCMACKeysetGenerationFromKey(t *testing.T) { FILE: mac/aescmac/key.go type Key (line 29) | type Key struct method KeyBytes (line 73) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 76) | func (k *Key) Parameters() key.Parameters { return k.params } method IDRequirement (line 80) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 85) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 88) | func (k *Key) Equal(other key.Key) bool { function calculateOutputPrefix (line 39) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { function NewKey (line 53) | func NewKey(keyBytes secretdata.Bytes, params *Parameters, idRequirement... function primitiveConstructor (line 95) | func primitiveConstructor(k key.Key) (any, error) { function createKey (line 103) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: mac/aescmac/key_manager_test.go function TestKeyManagerPrimitiveBasic (line 32) | func TestKeyManagerPrimitiveBasic(t *testing.T) { function TestKeyManagerPrimitiveWithInvalidInput (line 53) | func TestKeyManagerPrimitiveWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyMultipleTimes (line 78) | func TestKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestKeyManagerNewKeyBasic (line 112) | func TestKeyManagerNewKeyBasic(t *testing.T) { function TestKeyManagerNewKeyWithInvalidInput (line 133) | func TestKeyManagerNewKeyWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyDataBasic (line 158) | func TestKeyManagerNewKeyDataBasic(t *testing.T) { function TestKeyManagerNewKeyDataWithInvalidInput (line 189) | func TestKeyManagerNewKeyDataWithInvalidInput(t *testing.T) { function TestKeyManagerDoesSupport (line 211) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 224) | func TestKeyManagerTypeURL(t *testing.T) { function genInvalidCMACKeys (line 234) | func genInvalidCMACKeys() []proto.Message { function genInvalidCMACKeyFormats (line 257) | func genInvalidCMACKeyFormats() []proto.Message { function genValidCMACKeyFormats (line 276) | func genValidCMACKeyFormats() []*cmacpb.AesCmacKeyFormat { function genValidCMACKeys (line 283) | func genValidCMACKeys() []*cmacpb.AesCmacKey { function validateCMACKey (line 291) | func validateCMACKey(format *cmacpb.AesCmacKeyFormat, key *cmacpb.AesCma... function validateCMACPrimitive (line 304) | func validateCMACPrimitive(p any, key *cmacpb.AesCmacKey) error { FILE: mac/aescmac/key_test.go function TestNewKeyFailsIfKeySizeIsInvalid (line 35) | func TestNewKeyFailsIfKeySizeIsInvalid(t *testing.T) { function TestNewKeyFailsWithInvalidIDRequirement (line 50) | func TestNewKeyFailsWithInvalidIDRequirement(t *testing.T) { function TestNewKey (line 64) | func TestNewKey(t *testing.T) { function mustCreateKey (line 152) | func mustCreateKey(t *testing.T, key secretdata.Bytes, params *aescmac.P... type stubKey (line 161) | type stubKey struct method Parameters (line 165) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 166) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 167) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqualFalseIfDifferent (line 169) | func TestKeyEqualFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 204) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsWithInvalidParameters (line 231) | func TestKeyCreator_FailsWithInvalidParameters(t *testing.T) { FILE: mac/aescmac/mac.go type fullMAC (line 28) | type fullMAC struct method message (line 55) | func (m *fullMAC) message(msg []byte) []byte { method ComputeMAC (line 62) | func (m *fullMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 70) | func (m *fullMAC) VerifyMAC(mac []byte, data []byte) error { function NewMAC (line 37) | func NewMAC(key *Key, _ internalapi.Token) (tink.MAC, error) { FILE: mac/aescmac/mac_test.go type testVector (line 35) | type testVector struct function mustHexDecode (line 45) | func mustHexDecode(t *testing.T, s string) []byte { function testVectors (line 54) | func testVectors(t *testing.T) []testVector { function TestMACTestVectors (line 130) | func TestMACTestVectors(t *testing.T) { function TestMACFromPublicAPITestVectors (line 163) | func TestMACFromPublicAPITestVectors(t *testing.T) { function TestDecryptFailsWithInvalidInputs (line 208) | func TestDecryptFailsWithInvalidInputs(t *testing.T) { type AESCMACSuite (line 273) | type AESCMACSuite struct type testgroup (line 278) | type testgroup struct type testcase (line 285) | type testcase struct function TestVectorsWycheproof (line 292) | func TestVectorsWycheproof(t *testing.T) { FILE: mac/aescmac/parameters.go type Variant (line 34) | type Variant method String (line 50) | func (variant Variant) String() string { constant VariantUnknown (line 38) | VariantUnknown Variant = iota constant VariantTink (line 40) | VariantTink constant VariantCrunchy (line 42) | VariantCrunchy constant VariantLegacy (line 45) | VariantLegacy constant VariantNoPrefix (line 47) | VariantNoPrefix type Parameters (line 66) | type Parameters struct method KeySizeInBytes (line 75) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method CryptographicTagSizeInBytes (line 78) | func (p *Parameters) CryptographicTagSizeInBytes() int { return p.tagS... method TotalTagSizeInBytes (line 82) | func (p *Parameters) TotalTagSizeInBytes() int { method Variant (line 90) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 93) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 96) | func (p *Parameters) Equal(other key.Parameters) bool { type ParametersOpts (line 105) | type ParametersOpts struct function NewParameters (line 112) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: mac/aescmac/parameters_test.go function TestNewParametersInvalidKeySize (line 25) | func TestNewParametersInvalidKeySize(t *testing.T) { function TestNewParametersInvalidTagSize (line 38) | func TestNewParametersInvalidTagSize(t *testing.T) { function TestNewParametersInvalidVariant (line 51) | func TestNewParametersInvalidVariant(t *testing.T) { function TestNewParameters (line 62) | func TestNewParameters(t *testing.T) { function mustCreateParameters (line 157) | func mustCreateParameters(t *testing.T, paramsOpts aescmac.ParametersOpt... function TestEqualFalseIfDifferent (line 166) | func TestEqualFalseIfDifferent(t *testing.T) { function TestVariantString (line 196) | func TestVariantString(t *testing.T) { FILE: mac/aescmac/protoserialization.go constant protoVersion (line 33) | protoVersion = 0 constant typeURL (line 35) | typeURL = "type.googleapis.com/google.crypto.tink.AesCmacKey" type keySerializer (line 38) | type keySerializer struct method SerializeKey (line 57) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 42) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type keyParser (line 92) | type keyParser struct method ParseKey (line 111) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 96) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type parametersSerializer (line 148) | type parametersSerializer struct method Serialize (line 152) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 178) | type parametersParser struct method Parse (line 182) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: mac/aescmac/protoserialization_test.go function mustMarshal (line 34) | func mustMarshal(t *testing.T, message proto.Message) []byte { function mustCreateKeySerialization (line 43) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKeyFails (line 52) | func TestParseKeyFails(t *testing.T) { type aesCMACSerializationTestCase (line 134) | type aesCMACSerializationTestCase struct function aesCMACSerializationTestCases (line 140) | func aesCMACSerializationTestCases(t *testing.T) []aesCMACSerializationT... function TestParseKey (line 180) | func TestParseKey(t *testing.T) { type testParams (line 194) | type testParams struct method HasIDRequirement (line 198) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 200) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 205) | type testKey struct method Parameters (line 211) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 213) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 221) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 223) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 245) | func TestSerializeKey(t *testing.T) { function mustCreateKeyTemplate (line 259) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersSerializationTestCase (line 273) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 279) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 314) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 328) | func TestParseParameters(t *testing.T) { function TestParseParametersFailsWithWrongKeyTemplate (line 342) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: mac/hmac/hmac.go function newKeyManager (line 34) | func newKeyManager() registry.KeyManager { function RegisterPrimitiveConstructor (line 48) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... function init (line 52) | func init() { FILE: mac/hmac/hmac_test.go function TestHMACKeyetGenerationFromParams (line 30) | func TestHMACKeyetGenerationFromParams(t *testing.T) { function TestHMACKeysetGenerationFromKey (line 69) | func TestHMACKeysetGenerationFromKey(t *testing.T) { FILE: mac/hmac/key.go type Key (line 29) | type Key struct method KeyBytes (line 73) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 76) | func (k *Key) Parameters() key.Parameters { return k.params } method IDRequirement (line 80) | func (k *Key) IDRequirement() (uint32, bool) { method OutputPrefix (line 85) | func (k *Key) OutputPrefix() []byte { return bytes.Clone(k.outputPrefi... method Equal (line 88) | func (k *Key) Equal(other key.Key) bool { function calculateOutputPrefix (line 39) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { function NewKey (line 53) | func NewKey(keyBytes secretdata.Bytes, params *Parameters, idRequirement... function primitiveConstructor (line 95) | func primitiveConstructor(k key.Key) (any, error) { function createKey (line 103) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: mac/hmac/key_manager_test.go function TestKeyManagerPrimitiveWorks (line 33) | func TestKeyManagerPrimitiveWorks(t *testing.T) { function TestKeyManagerPrimitiveWithInvalidInput (line 123) | func TestKeyManagerPrimitiveWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyMultipleTimes (line 148) | func TestKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestKeyManagerNewKeyBasic (line 182) | func TestKeyManagerNewKeyBasic(t *testing.T) { function TestKeyManagerNewKeyWithInvalidInput (line 210) | func TestKeyManagerNewKeyWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyDataWorks (line 235) | func TestKeyManagerNewKeyDataWorks(t *testing.T) { function TestKeyManagerNewKeyDataWithInvalidInput (line 277) | func TestKeyManagerNewKeyDataWithInvalidInput(t *testing.T) { function TestKeyManagerDoesSupport (line 299) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 312) | func TestKeyManagerTypeURL(t *testing.T) { function genInvalidHMACKeys (line 322) | func genInvalidHMACKeys() []proto.Message { function genInvalidHMACKeyFormats (line 349) | func genInvalidHMACKeyFormats() []proto.Message { function genValidHMACKeyFormats (line 372) | func genValidHMACKeyFormats() []*hmacpb.HmacKeyFormat { FILE: mac/hmac/key_test.go function TestNewKeyFailsIfKeySizeIsInvalid (line 36) | func TestNewKeyFailsIfKeySizeIsInvalid(t *testing.T) { function TestNewKeyFailsWithInvalidIDRequirement (line 54) | func TestNewKeyFailsWithInvalidIDRequirement(t *testing.T) { function TestNewKey (line 71) | func TestNewKey(t *testing.T) { function mustCreateKey (line 189) | func mustCreateKey(t *testing.T, key secretdata.Bytes, params *hmac.Para... type stubKey (line 198) | type stubKey struct method Parameters (line 202) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 203) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 204) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestKeyEqualFalseIfDifferent (line 206) | func TestKeyEqualFalseIfDifferent(t *testing.T) { function TestKeyCreator (line 276) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsWithInvalidParameters (line 304) | func TestKeyCreator_FailsWithInvalidParameters(t *testing.T) { FILE: mac/hmac/mac.go type fullMAC (line 28) | type fullMAC struct method message (line 55) | func (m *fullMAC) message(msg []byte) []byte { method ComputeMAC (line 62) | func (m *fullMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 70) | func (m *fullMAC) VerifyMAC(mac []byte, data []byte) error { function NewMAC (line 37) | func NewMAC(key *Key, _ internalapi.Token) (tink.MAC, error) { FILE: mac/hmac/mac_test.go type testVector (line 33) | type testVector struct function mustHexDecode (line 44) | func mustHexDecode(t *testing.T, s string) []byte { function testVectors (line 53) | func testVectors(t *testing.T) []testVector { function TestMACTestVectors (line 282) | func TestMACTestVectors(t *testing.T) { function TestMACFromPublicAPITestVectors (line 317) | func TestMACFromPublicAPITestVectors(t *testing.T) { function TestDecryptFailsWithInvalidInputs (line 363) | func TestDecryptFailsWithInvalidInputs(t *testing.T) { FILE: mac/hmac/parameters.go type Variant (line 34) | type Variant method String (line 50) | func (variant Variant) String() string { constant VariantUnknown (line 38) | VariantUnknown Variant = iota constant VariantTink (line 40) | VariantTink constant VariantCrunchy (line 42) | VariantCrunchy constant VariantLegacy (line 45) | VariantLegacy constant VariantNoPrefix (line 47) | VariantNoPrefix type HashType (line 66) | type HashType method String (line 83) | func (ht HashType) String() string { constant UnknownHashType (line 70) | UnknownHashType HashType = iota constant SHA1 (line 72) | SHA1 constant SHA224 (line 74) | SHA224 constant SHA256 (line 76) | SHA256 constant SHA384 (line 78) | SHA384 constant SHA512 (line 80) | SHA512 type Parameters (line 101) | type Parameters struct method KeySizeInBytes (line 111) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method CryptographicTagSizeInBytes (line 114) | func (p *Parameters) CryptographicTagSizeInBytes() int { return p.tagS... method HashType (line 117) | func (p *Parameters) HashType() HashType { return p.hashType } method TotalTagSizeInBytes (line 121) | func (p *Parameters) TotalTagSizeInBytes() int { method Variant (line 129) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 132) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 135) | func (p *Parameters) Equal(other key.Parameters) bool { type ParametersOpts (line 145) | type ParametersOpts struct function maxTagSizeInBytes (line 152) | func maxTagSizeInBytes(hashType HashType) (int, error) { function NewParameters (line 170) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: mac/hmac/parameters_test.go function TestNewParametersInvalidKeySize (line 25) | func TestNewParametersInvalidKeySize(t *testing.T) { function TestNewParametersInvalidHashType (line 39) | func TestNewParametersInvalidHashType(t *testing.T) { function TestNewParametersInvalidTagSizeForHashType (line 51) | func TestNewParametersInvalidTagSizeForHashType(t *testing.T) { function TestNewParametersInvalidVariant (line 84) | func TestNewParametersInvalidVariant(t *testing.T) { function TestNewParameters (line 96) | func TestNewParameters(t *testing.T) { function mustCreateParameters (line 162) | func mustCreateParameters(t *testing.T, opts hmac.ParametersOpts) *hmac.... function TestEqualFalseIfDifferent (line 171) | func TestEqualFalseIfDifferent(t *testing.T) { function TestHashTypeString (line 246) | func TestHashTypeString(t *testing.T) { function TestVariantString (line 284) | func TestVariantString(t *testing.T) { FILE: mac/hmac/protoserialization.go constant protoVersion (line 34) | protoVersion = 0 constant typeURL (line 36) | typeURL = "type.googleapis.com/google.crypto.tink.HmacKey" type keySerializer (line 39) | type keySerializer struct method SerializeKey (line 75) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function protoOutputPrefixTypeFromVariant (line 43) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function protoHashTypeFromHashType (line 58) | func protoHashTypeFromHashType(hashType HashType) (commonpb.HashType, er... type keyParser (line 116) | type keyParser struct method ParseKey (line 152) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function variantFromProto (line 120) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... function hashTypeFromProto (line 135) | func hashTypeFromProto(hashType commonpb.HashType) (HashType, error) { type parametersSerializer (line 194) | type parametersSerializer struct method Serialize (line 198) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 230) | type parametersParser struct method Parse (line 234) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: mac/hmac/protoserialization_test.go function mustMarshal (line 35) | func mustMarshal(t *testing.T, message proto.Message) []byte { function mustCreateKeySerialization (line 44) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKeyFails (line 53) | func TestParseKeyFails(t *testing.T) { type aesCMACSerializationTestCase (line 163) | type aesCMACSerializationTestCase struct function aesCMACSerializationTestCases (line 169) | func aesCMACSerializationTestCases(t *testing.T) []aesCMACSerializationT... function TestParseKey (line 223) | func TestParseKey(t *testing.T) { type testParams (line 237) | type testParams struct method HasIDRequirement (line 241) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 243) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 248) | type testKey struct method Parameters (line 254) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 256) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 264) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 266) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 288) | func TestSerializeKey(t *testing.T) { function mustCreateKeyTemplate (line 302) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersSerializationTestCase (line 316) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 322) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 371) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 385) | func TestParseParameters(t *testing.T) { function TestParseParametersFailsWithWrongKeyTemplate (line 399) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: mac/internal/mactest/mactest.go type AlwaysFailingMAC (line 23) | type AlwaysFailingMAC struct method ComputeMAC (line 30) | func (m *AlwaysFailingMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 35) | func (m *AlwaysFailingMAC) VerifyMAC(mac []byte, data []byte) error { FILE: mac/internal/mactest/mactest_test.go function TestAlwaysFailingMACAlwayFails (line 24) | func TestAlwaysFailingMACAlwayFails(t *testing.T) { FILE: mac/mac_benchmark_test.go function BenchmarkComputeMac (line 60) | func BenchmarkComputeMac(b *testing.B) { function BenchmarkVerifyMac (line 85) | func BenchmarkVerifyMac(b *testing.B) { FILE: mac/mac_factory.go constant intSize (line 36) | intSize = 32 << (^uint(0) >> 63) constant maxInt (line 37) | maxInt = 1<<(intSize-1) - 1 function NewWithConfig (line 42) | func NewWithConfig(handle *keyset.Handle, c keyset.Config) (tink.MAC, er... function New (line 52) | func New(handle *keyset.Handle) (tink.MAC, error) { type macAndKeyID (line 56) | type macAndKeyID struct method ComputeMAC (line 63) | func (m *macAndKeyID) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 67) | func (m *macAndKeyID) VerifyMAC(mac, data []byte) error { type fullMACAdapter (line 73) | type fullMACAdapter struct method data (line 81) | func (m *fullMACAdapter) data(data []byte) ([]byte, error) { method ComputeMAC (line 92) | func (m *fullMACAdapter) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 104) | func (m *fullMACAdapter) VerifyMAC(mac, data []byte) error { type wrappedMAC (line 124) | type wrappedMAC struct method ComputeMAC (line 216) | func (m *wrappedMAC) ComputeMAC(data []byte) ([]byte, error) { method tryVerifyMAC (line 226) | func (m *wrappedMAC) tryVerifyMAC(mac []byte, data []byte, primitives ... method VerifyMAC (line 238) | func (m *wrappedMAC) VerifyMAC(mac, data []byte) error { function toFullPrimitive (line 135) | func toFullPrimitive(entry *primitiveset.Entry[tink.MAC]) (macAndKeyID, ... function newWrappedMAC (line 157) | func newWrappedMAC(ps *primitiveset.PrimitiveSet[tink.MAC]) (*wrappedMAC... function createLoggers (line 186) | func createLoggers(ps *primitiveset.PrimitiveSet[tink.MAC]) (monitoring.... FILE: mac/mac_factory_test.go function TestFactoryMultipleKeys (line 54) | func TestFactoryMultipleKeys(t *testing.T) { function TestFactoryRawKey (line 120) | func TestFactoryRawKey(t *testing.T) { function TestFactoryLegacyKey (line 140) | func TestFactoryLegacyKey(t *testing.T) { function TestFactoryLegacyFixedKeyFixedTag (line 165) | func TestFactoryLegacyFixedKeyFixedTag(t *testing.T) { function verifyMacPrimitive (line 203) | func verifyMacPrimitive(computePrimitive, verifyPrimitive tink.MAC, expe... function TestFactoryWithInvalidPrimitiveSetType (line 240) | func TestFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestFactoryWithValidPrimitiveSetType (line 252) | func TestFactoryWithValidPrimitiveSetType(t *testing.T) { function TestPrimitiveFactoryMonitoringWithoutAnnotationsDoesNotLog (line 264) | func TestPrimitiveFactoryMonitoringWithoutAnnotationsDoesNotLog(t *testi... function TestFactoryWithMonitoringPrimitiveWithMultipleKeysLogsComputeVerify (line 292) | func TestFactoryWithMonitoringPrimitiveWithMultipleKeysLogsComputeVerify... function TestPrimitiveFactoryWithMonitoringAnnotationsComputeFailureIsLogged (line 402) | func TestPrimitiveFactoryWithMonitoringAnnotationsComputeFailureIsLogged... function TestPrimitiveFactoryWithMonitoringAnnotationsVerifyFailureIsLogged (line 474) | func TestPrimitiveFactoryWithMonitoringAnnotationsVerifyFailureIsLogged(... function TestPrimitiveFactoryMonitoringWithAnnotationsMultiplePrimitivesLogOperations (line 527) | func TestPrimitiveFactoryMonitoringWithAnnotationsMultiplePrimitivesLogO... function TestPrimitiveFactoryMonitoringWithAnnotationsComputeVerifyLogs (line 609) | func TestPrimitiveFactoryMonitoringWithAnnotationsComputeVerifyLogs(t *t... constant stubKeyURL (line 671) | stubKeyURL = "type.googleapis.com/google.crypto.tink.SomeKey" type stubFullMAC (line 675) | type stubFullMAC struct method ComputeMAC (line 679) | func (s *stubFullMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 683) | func (s *stubFullMAC) VerifyMAC(mac, data []byte) error { type stubParams (line 690) | type stubParams struct method Equal (line 694) | func (p *stubParams) Equal(_ key.Parameters) bool { return true } method HasIDRequirement (line 695) | func (p *stubParams) HasIDRequirement() bool { return true } type stubKey (line 697) | type stubKey struct method Equal (line 704) | func (p *stubKey) Equal(_ key.Key) bool { return true } method Parameters (line 705) | func (p *stubKey) Parameters() key.Parameters { return &stubParams{} } method IDRequirement (line 706) | func (p *stubKey) IDRequirement() (uint32, bool) { return p.idRequirem... method HasIDRequirement (line 707) | func (p *stubKey) HasIDRequirement() bool { return p.prefixType... method OutputPrefix (line 708) | func (p *stubKey) OutputPrefix() []byte { type stubKeySerialization (line 716) | type stubKeySerialization struct method SerializeKey (line 720) | func (s *stubKeySerialization) SerializeKey(key key.Key) (*protoserial... type stubKeyParser (line 732) | type stubKeyParser struct method ParseKey (line 736) | func (s *stubKeyParser) ParseKey(serialization *protoserialization.Key... function TestPrimitiveFactoryUsesFullPrimitiveIfRegistered (line 741) | func TestPrimitiveFactoryUsesFullPrimitiveIfRegistered(t *testing.T) { type stubLegacyMAC (line 792) | type stubLegacyMAC struct method ComputeMAC (line 794) | func (s *stubLegacyMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 798) | func (s *stubLegacyMAC) VerifyMAC(mac, data []byte) error { type stubKeyManager (line 805) | type stubKeyManager struct method NewKey (line 809) | func (km *stubKeyManager) NewKey(_ []byte) (proto.Message, error) { method NewKeyData (line 812) | func (km *stubKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyData, error) { method DoesSupport (line 815) | func (km *stubKeyManager) DoesSupport(keyURL string) bool { return ke... method TypeURL (line 816) | func (km *stubKeyManager) TypeURL() string { return st... method Primitive (line 817) | func (km *stubKeyManager) Primitive(_ []byte) (any, error) { return &s... function TestPrimitiveFactoryUsesLegacyPrimitive (line 819) | func TestPrimitiveFactoryUsesLegacyPrimitive(t *testing.T) { function TestNewWithConfig (line 890) | func TestNewWithConfig(t *testing.T) { FILE: mac/mac_init_test.go function TestMacInit (line 24) | func TestMacInit(t *testing.T) { FILE: mac/mac_key_templates.go function HMACSHA256Tag128KeyTemplate (line 34) | func HMACSHA256Tag128KeyTemplate() *tinkpb.KeyTemplate { function HMACSHA256Tag256KeyTemplate (line 42) | func HMACSHA256Tag256KeyTemplate() *tinkpb.KeyTemplate { function HMACSHA512Tag256KeyTemplate (line 50) | func HMACSHA512Tag256KeyTemplate() *tinkpb.KeyTemplate { function HMACSHA512Tag512KeyTemplate (line 58) | func HMACSHA512Tag512KeyTemplate() *tinkpb.KeyTemplate { function AESCMACTag128KeyTemplate (line 65) | func AESCMACTag128KeyTemplate() *tinkpb.KeyTemplate { function createHMACKeyTemplate (line 70) | func createHMACKeyTemplate(keySize, tagSize uint32, hashType commonpb.Ha... function createCMACKeyTemplate (line 91) | func createCMACKeyTemplate(keySize uint32, tagSize uint32) *tinkpb.KeyTe... FILE: mac/mac_key_templates_test.go function TestKeyTemplates (line 25) | func TestKeyTemplates(t *testing.T) { FILE: mac/mac_test.go function Example (line 29) | func Example() { FILE: mac/subtle/cmac.go constant minCMACKeySizeInBytes (line 27) | minCMACKeySizeInBytes = 16 constant recommendedCMACKeySizeInBytes (line 28) | recommendedCMACKeySizeInBytes = uint32(32) constant minTagLengthInBytes (line 29) | minTagLengthInBytes = uint32(10) constant maxTagLengthInBytes (line 30) | maxTagLengthInBytes = aescmac.BlockSize type AESCMAC (line 34) | type AESCMAC struct method ComputeMAC (line 58) | func (a AESCMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 64) | func (a AESCMAC) VerifyMAC(mac, data []byte) error { function NewAESCMAC (line 40) | func NewAESCMAC(key []byte, tagLength uint32) (*AESCMAC, error) { function ValidateCMACParams (line 74) | func ValidateCMACParams(keySize, tagSize uint32) error { FILE: mac/subtle/cmac_test.go type AESCMACSuite (line 40) | type AESCMACSuite struct type testgroup (line 45) | type testgroup struct type testcase (line 52) | type testcase struct function TestVectorsWycheproof (line 59) | func TestVectorsWycheproof(t *testing.T) { function TestCMACBasic (line 104) | func TestCMACBasic(t *testing.T) { function TestNewCMACWithInvalidInput (line 128) | func TestNewCMACWithInvalidInput(t *testing.T) { function TestCMACComputeVerifyWithNilInput (line 146) | func TestCMACComputeVerifyWithNilInput(t *testing.T) { function TestCMACVerifyMACWithInvalidInput (line 160) | func TestCMACVerifyMACWithInvalidInput(t *testing.T) { function TestCMACModification (line 176) | func TestCMACModification(t *testing.T) { function TestCMACTruncation (line 200) | func TestCMACTruncation(t *testing.T) { function TestCMACSmallerTagSize (line 220) | func TestCMACSmallerTagSize(t *testing.T) { FILE: mac/subtle/hmac.go type HMAC (line 28) | type HMAC struct method ComputeMAC (line 49) | func (h *HMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 55) | func (h *HMAC) VerifyMAC(mac []byte, data []byte) error { function NewHMAC (line 35) | func NewHMAC(hashAlg string, key []byte, tagSize uint32) (*HMAC, error) { function ValidateHMACParams (line 44) | func ValidateHMACParams(hash string, keySize uint32, tagSize uint32) err... FILE: mac/subtle/hmac_test.go function TestHMACBasic (line 64) | func TestHMACBasic(t *testing.T) { function TestNewHMACWithInvalidInput (line 86) | func TestNewHMACWithInvalidInput(t *testing.T) { function TestHMAComputeVerifyWithNilInput (line 117) | func TestHMAComputeVerifyWithNilInput(t *testing.T) { function TestVerifyMACWithInvalidInput (line 131) | func TestVerifyMACWithInvalidInput(t *testing.T) { function TestHMACModification (line 147) | func TestHMACModification(t *testing.T) { function TestHMACTruncation (line 173) | func TestHMACTruncation(t *testing.T) { FILE: monitoring/monitoring.go type KeyStatus (line 20) | type KeyStatus method String (line 34) | func (status KeyStatus) String() string { constant Enabled (line 24) | Enabled KeyStatus = iota constant Disabled (line 26) | Disabled constant Destroyed (line 28) | Destroyed constant DoNotUse (line 31) | DoNotUse KeyStatus = 20 type Entry (line 47) | type Entry struct type KeysetInfo (line 56) | type KeysetInfo struct function NewKeysetInfo (line 63) | func NewKeysetInfo(annotations map[string]string, primaryKeyID uint32, e... type Context (line 73) | type Context struct function NewContext (line 80) | func NewContext(primitive string, apiFunction string, keysetInfo *Keyset... type Logger (line 91) | type Logger interface type Client (line 114) | type Client interface FILE: prf/aescmacprf/aescmacprf.go function init (line 35) | func init() { function RegisterPrimitiveConstructor (line 69) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: prf/aescmacprf/aescmacprf_test.go function TestKeysetGenerationFromParams (line 32) | func TestKeysetGenerationFromParams(t *testing.T) { function TestAddNewKeyFromParametersFailsWithInvalidKeySize (line 60) | func TestAddNewKeyFromParametersFailsWithInvalidKeySize(t *testing.T) { function TestNewPRFSetFailsWithInvalidKeySize (line 71) | func TestNewPRFSetFailsWithInvalidKeySize(t *testing.T) { function mustHexDecode (line 93) | func mustHexDecode(t *testing.T, s string) []byte { constant aesCMACPRFKeyHex (line 104) | aesCMACPRFKeyHex = "e754076ceab3fdaf4f9bcab7d4f0df0cbbafbc87731b8... constant aesCMACPRFWantOutputHex (line 105) | aesCMACPRFWantOutputHex = "9d47482c2d9252bace43a75a8335b8b8" constant aesCMACPRFDataHex (line 106) | aesCMACPRFDataHex = "40" function TestKeysetGenerationFromKey (line 109) | func TestKeysetGenerationFromKey(t *testing.T) { function TestRegisterPrimitiveConstructor (line 154) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: prf/aescmacprf/key.go type Key (line 27) | type Key struct method KeyBytes (line 44) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 47) | func (k *Key) Parameters() key.Parameters { return &k.parameters } method IDRequirement (line 53) | func (k *Key) IDRequirement() (uint32, bool) { return 0, false } method Equal (line 56) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 35) | func NewKey(keyBytes secretdata.Bytes) (*Key, error) { function primitiveConstructor (line 61) | func primitiveConstructor(key key.Key) (any, error) { function createKey (line 72) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: prf/aescmacprf/key_manager_test.go function TestKeyManagerGetPrimitiveBasic (line 35) | func TestKeyManagerGetPrimitiveBasic(t *testing.T) { function TestKeyManagerGetPrimitiveWithInvalidInput (line 56) | func TestKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyMultipleTimes (line 81) | func TestKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestKeyManagerNewKeyBasic (line 115) | func TestKeyManagerNewKeyBasic(t *testing.T) { function TestKeyManagerNewKeyWithInvalidInput (line 136) | func TestKeyManagerNewKeyWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyDataBasic (line 161) | func TestKeyManagerNewKeyDataBasic(t *testing.T) { function TestKeyManagerNewKeyDataWithInvalidInput (line 192) | func TestKeyManagerNewKeyDataWithInvalidInput(t *testing.T) { function TestKeyManagerDoesSupport (line 214) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 227) | func TestKeyManagerTypeURL(t *testing.T) { function genInvalidCMACKeys (line 237) | func genInvalidCMACKeys() []proto.Message { function genInvalidCMACKeyFormats (line 252) | func genInvalidCMACKeyFormats() []proto.Message { function genValidCMACKeyFormats (line 263) | func genValidCMACKeyFormats() []*cmacpb.AesCmacPrfKeyFormat { function genValidCMACKeys (line 269) | func genValidCMACKeys() []*cmacpb.AesCmacPrfKey { function validateKey (line 276) | func validateKey(format *cmacpb.AesCmacPrfKeyFormat, key *cmacpb.AesCmac... function validateCMACPrimitive (line 288) | func validateCMACPrimitive(p any, key *cmacpb.AesCmacPrfKey) error { FILE: prf/aescmacprf/key_test.go function TestNewKey (line 37) | func TestNewKey(t *testing.T) { function TestNewKeyFails (line 66) | func TestNewKeyFails(t *testing.T) { function TestEqual (line 73) | func TestEqual(t *testing.T) { function TestNotEqualIfDifferentKeyBytes (line 88) | func TestNotEqualIfDifferentKeyBytes(t *testing.T) { function TestNotEqualIfDifferentKeySizes (line 108) | func TestNotEqualIfDifferentKeySizes(t *testing.T) { function TestKeyCreator (line 125) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsWithInvalidParameters (line 148) | func TestKeyCreator_FailsWithInvalidParameters(t *testing.T) { FILE: prf/aescmacprf/parameters.go type Parameters (line 24) | type Parameters struct method KeySizeInBytes (line 39) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method HasIDRequirement (line 44) | func (p *Parameters) HasIDRequirement() bool { return false } method Equal (line 47) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 31) | func NewParameters(keySizeInBytes int) (Parameters, error) { FILE: prf/aescmacprf/parameters_test.go function TestParametersValid (line 24) | func TestParametersValid(t *testing.T) { function TestParametersInvalidKeySize (line 41) | func TestParametersInvalidKeySize(t *testing.T) { function TestParametersEquals (line 47) | func TestParametersEquals(t *testing.T) { type stubParameters (line 73) | type stubParameters struct method Equal (line 77) | func (p *stubParameters) Equal(other key.Parameters) bool { return fal... method HasIDRequirement (line 79) | func (p *stubParameters) HasIDRequirement() bool { return false } function TestParametersNotEquals (line 81) | func TestParametersNotEquals(t *testing.T) { FILE: prf/aescmacprf/protoserialization.go type keySerializer (line 29) | type keySerializer struct method SerializeKey (line 35) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... constant typeURL (line 31) | typeURL = "type.googleapis.com/google.crypto.tink.AesCmacPrfKey" type keyParser (line 62) | type keyParser struct method ParseKey (line 66) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... type parametersSerializer (line 90) | type parametersSerializer struct method Serialize (line 94) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 114) | type parametersParser struct method Parse (line 118) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: prf/aescmacprf/protoserialization_test.go function mustMarshal (line 33) | func mustMarshal(t *testing.T, message proto.Message) []byte { function mustCreateKeySerialization (line 42) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKeyFails (line 51) | func TestParseKeyFails(t *testing.T) { type aesCMACPRFSerializationTestCase (line 109) | type aesCMACPRFSerializationTestCase struct function aesCMACPRFSerializationTestCases (line 115) | func aesCMACPRFSerializationTestCases(t *testing.T) []aesCMACPRFSerializ... function TestParseKey (line 152) | func TestParseKey(t *testing.T) { type testParams (line 166) | type testParams struct method HasIDRequirement (line 170) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 172) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 177) | type testKey struct method Parameters (line 183) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 185) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 193) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 195) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 217) | func TestSerializeKey(t *testing.T) { function mustCreateKeyTemplate (line 231) | func mustCreateKeyTemplate(t *testing.T, keySizeInBytes uint32) *tinkpb.... type parametersSerializationTestCase (line 242) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 248) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 284) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 298) | func TestParseParameters(t *testing.T) { function TestParseParametersFailsWithWrongKeyTemplate (line 312) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: prf/hkdfprf/hkdfprf.go function init (line 34) | func init() { function RegisterPrimitiveConstructor (line 68) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: prf/hkdfprf/hkdfprf_test.go function TestKeysetGenerationFromParams (line 32) | func TestKeysetGenerationFromParams(t *testing.T) { function TestAddNewKeyFromParametersFailsWithInvalidKeySize (line 60) | func TestAddNewKeyFromParametersFailsWithInvalidKeySize(t *testing.T) { function TestNewPRFSetFailsWithInvalidKeySize (line 71) | func TestNewPRFSetFailsWithInvalidKeySize(t *testing.T) { function TestNewPRFSetFailsWithInvalidHashFunction (line 97) | func TestNewPRFSetFailsWithInvalidHashFunction(t *testing.T) { function mustHexDecode (line 123) | func mustHexDecode(t *testing.T, s string) []byte { constant hkdfKeyHex (line 134) | hkdfKeyHex = "000102030405060708090a0b0c0d0e0f" + constant hkdfSaltHex (line 139) | hkdfSaltHex = "606162636465666768696a6b6c6d6e6f" + constant hkdfDataHex (line 144) | hkdfDataHex = "b0b1b2b3b4b5b6b7b8b9babbbcbdbebf" + constant hkdfWantOutputHex (line 149) | hkdfWantOutputHex = "b11e398dc80327a1c8e7f78c596a4934" + function TestKeysetGenerationFromKey (line 157) | func TestKeysetGenerationFromKey(t *testing.T) { function TestRegisterPrimitiveConstructor (line 201) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: prf/hkdfprf/key.go type Key (line 27) | type Key struct method KeyBytes (line 44) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 47) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 53) | func (k *Key) IDRequirement() (uint32, bool) { return 0, false } method Equal (line 56) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 35) | func NewKey(keyBytes secretdata.Bytes, parameters *Parameters) (*Key, er... function primitiveConstructor (line 61) | func primitiveConstructor(key key.Key) (any, error) { function createKey (line 73) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: prf/hkdfprf/key_manager_test.go function TestKeyManagerGetPrimitiveBasic (line 35) | func TestKeyManagerGetPrimitiveBasic(t *testing.T) { function TestKeyManagerGetPrimitiveWithInvalidInput (line 56) | func TestKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyMultipleTimes (line 81) | func TestKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestKeyManagerNewKeyBasic (line 115) | func TestKeyManagerNewKeyBasic(t *testing.T) { function TestKeyManagerNewKeyWithInvalidInput (line 136) | func TestKeyManagerNewKeyWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyDataBasic (line 161) | func TestKeyManagerNewKeyDataBasic(t *testing.T) { function TestKeyManagerNewKeyDataWithInvalidInput (line 192) | func TestKeyManagerNewKeyDataWithInvalidInput(t *testing.T) { function TestKeyManagerDoesSupport (line 214) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 227) | func TestKeyManagerTypeURL(t *testing.T) { function genInvalidHKDFKeys (line 237) | func genInvalidHKDFKeys() []proto.Message { function genInvalidHKDFKeyFormats (line 260) | func genInvalidHKDFKeyFormats() []proto.Message { function genValidHKDFKeyFormats (line 279) | func genValidHKDFKeyFormats() []*hkdfpb.HkdfPrfKeyFormat { function genValidHKDFKeys (line 288) | func genValidHKDFKeys() []*hkdfpb.HkdfPrfKey { function validateHKDFKey (line 298) | func validateHKDFKey(format *hkdfpb.HkdfPrfKeyFormat, key *hkdfpb.HkdfPr... function validateHKDFPrimitive (line 311) | func validateHKDFPrimitive(p any, key *hkdfpb.HkdfPrfKey) error { FILE: prf/hkdfprf/key_test.go function TestNewKey (line 37) | func TestNewKey(t *testing.T) { function TestNewKeyFails (line 81) | func TestNewKeyFails(t *testing.T) { function TestNotEqualIfDifferentKeyBytes (line 92) | func TestNotEqualIfDifferentKeyBytes(t *testing.T) { function TestNotEqualIfDifferentKeySizes (line 116) | func TestNotEqualIfDifferentKeySizes(t *testing.T) { function TestNotEqualIfDifferentParams (line 141) | func TestNotEqualIfDifferentParams(t *testing.T) { function TestKeyCreator (line 166) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsWithInvalidParameters (line 189) | func TestKeyCreator_FailsWithInvalidParameters(t *testing.T) { FILE: prf/hkdfprf/parameters.go type HashType (line 25) | type HashType method String (line 42) | func (ht HashType) String() string { constant UnknownHashType (line 29) | UnknownHashType HashType = iota constant SHA1 (line 31) | SHA1 constant SHA224 (line 33) | SHA224 constant SHA256 (line 35) | SHA256 constant SHA384 (line 37) | SHA384 constant SHA512 (line 39) | SHA512 type Parameters (line 60) | type Parameters struct method KeySizeInBytes (line 80) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method HashType (line 83) | func (p *Parameters) HashType() HashType { return p.hashType } method Salt (line 86) | func (p *Parameters) Salt() []byte { return p.salt } method HasIDRequirement (line 91) | func (p *Parameters) HasIDRequirement() bool { return false } method Equal (line 94) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 69) | func NewParameters(keySizeInBytes int, hashType HashType, salt []byte) (... FILE: prf/hkdfprf/parameters_test.go function TestParametersValid (line 25) | func TestParametersValid(t *testing.T) { function TestParametersInvalidValues (line 58) | func TestParametersInvalidValues(t *testing.T) { function mustCreateParameters (line 89) | func mustCreateParameters(t *testing.T, keySize int, hashType hkdfprf.Ha... type stubParameters (line 98) | type stubParameters struct method Equal (line 102) | func (p *stubParameters) Equal(other key.Parameters) bool { return fal... method HasIDRequirement (line 104) | func (p *stubParameters) HasIDRequirement() bool { return false } function TestParametersNotEquals (line 106) | func TestParametersNotEquals(t *testing.T) { FILE: prf/hkdfprf/protoserialization.go constant typeURL (line 31) | typeURL = "type.googleapis.com/google.crypto.tink.HkdfPrfKey" type keySerializer (line 33) | type keySerializer struct method SerializeKey (line 54) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function toProtoHashType (line 37) | func toProtoHashType(hashType HashType) (commonpb.HashType, error) { type keyParser (line 90) | type keyParser struct method ParseKey (line 111) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function fromProtoHashType (line 94) | func fromProtoHashType(hashType commonpb.HashType) (HashType, error) { type parametersSerializer (line 143) | type parametersSerializer struct method Serialize (line 147) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 175) | type parametersParser struct method Parse (line 179) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: prf/hkdfprf/protoserialization_test.go function mustMarshal (line 34) | func mustMarshal(t *testing.T, message proto.Message) []byte { function mustCreateKeySerialization (line 43) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKeyFails (line 52) | func TestParseKeyFails(t *testing.T) { type hkdfPRFSerializationTestCase (line 149) | type hkdfPRFSerializationTestCase struct function hkdfPRFSerializationTestCases (line 155) | func hkdfPRFSerializationTestCases(t *testing.T) []hkdfPRFSerializationT... function TestParseKey (line 194) | func TestParseKey(t *testing.T) { type testParams (line 208) | type testParams struct method HasIDRequirement (line 212) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 214) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 219) | type testKey struct method Parameters (line 225) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 227) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 235) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 237) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 259) | func TestSerializeKey(t *testing.T) { function mustCreateKeyTemplate (line 273) | func mustCreateKeyTemplate(t *testing.T, keySizeInBytes uint32, hashType... type parametersSerializationTestCase (line 289) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 295) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 321) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 335) | func TestParseParameters(t *testing.T) { function TestParseParametersFailsWithWrongKeyTemplate (line 349) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: prf/hmacprf/hmacprf.go function init (line 34) | func init() { function RegisterPrimitiveConstructor (line 68) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: prf/hmacprf/hmacprf_test.go function TestKeysetGenerationFromParams (line 32) | func TestKeysetGenerationFromParams(t *testing.T) { function mustHexDecode (line 60) | func mustHexDecode(t *testing.T, s string) []byte { constant hmacSHA256KeyHex (line 71) | hmacSHA256KeyHex = "8159fd15133cd964c9a6964c94f0ea269a806fd9f43f0... constant hmacSHA256WantOutputHex (line 72) | hmacSHA256WantOutputHex = "dfc5105d5eecf7ae7b8b8de3930e7659e84c4172f2555... constant hmacSHA256DataHex (line 73) | hmacSHA256DataHex = "77" function TestKeysetGenerationFromKey (line 76) | func TestKeysetGenerationFromKey(t *testing.T) { function TestRegisterPrimitiveConstructor (line 120) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: prf/hmacprf/key.go type Key (line 27) | type Key struct method KeyBytes (line 43) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 46) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 52) | func (k *Key) IDRequirement() (uint32, bool) { return 0, false } method Equal (line 55) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 35) | func NewKey(keyBytes secretdata.Bytes, parameters *Parameters) (*Key, er... function primitiveConstructor (line 60) | func primitiveConstructor(key key.Key) (any, error) { function createKey (line 72) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: prf/hmacprf/key_manager_test.go function TestKeyManagerGetPrimitiveBasic (line 34) | func TestKeyManagerGetPrimitiveBasic(t *testing.T) { function TestKeyManagerGetPrimitiveWithInvalidInput (line 55) | func TestKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyMultipleTimes (line 80) | func TestKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestKeyManagerNewKeyBasic (line 114) | func TestKeyManagerNewKeyBasic(t *testing.T) { function TestKeyManagerNewKeyWithInvalidInput (line 135) | func TestKeyManagerNewKeyWithInvalidInput(t *testing.T) { function TestKeyManagerNewKeyDataBasic (line 160) | func TestKeyManagerNewKeyDataBasic(t *testing.T) { function TestKeyManagerNewKeyDataWithInvalidInput (line 191) | func TestKeyManagerNewKeyDataWithInvalidInput(t *testing.T) { function TestKeyManagerDoesSupport (line 213) | func TestKeyManagerDoesSupport(t *testing.T) { function TestKeyManagerTypeURL (line 226) | func TestKeyManagerTypeURL(t *testing.T) { function genInvalidHMACPRFKeys (line 236) | func genInvalidHMACPRFKeys() []proto.Message { function genInvalidHMACPRFKeyFormats (line 257) | func genInvalidHMACPRFKeyFormats() []proto.Message { function genValidHMACPRFKeyFormats (line 274) | func genValidHMACPRFKeyFormats() []*hmacpb.HmacPrfKeyFormat { function genValidHMACPRFKeys (line 282) | func genValidHMACPRFKeys() []*hmacpb.HmacPrfKey { function validateKey (line 291) | func validateKey(format *hmacpb.HmacPrfKeyFormat, key *hmacpb.HmacPrfKey... function validatePrimitive (line 304) | func validatePrimitive(p any, key *hmacpb.HmacPrfKey) error { FILE: prf/hmacprf/key_test.go function TestNewKey (line 37) | func TestNewKey(t *testing.T) { function TestNewKeyFails (line 79) | func TestNewKeyFails(t *testing.T) { function TestNotEqualIfDifferentKeyBytes (line 90) | func TestNotEqualIfDifferentKeyBytes(t *testing.T) { function TestNotEqualIfDifferentKeySizes (line 114) | func TestNotEqualIfDifferentKeySizes(t *testing.T) { function TestNotEqualIfDifferentParams (line 139) | func TestNotEqualIfDifferentParams(t *testing.T) { function TestKeyCreator (line 164) | func TestKeyCreator(t *testing.T) { FILE: prf/hmacprf/parameters.go type HashType (line 24) | type HashType method String (line 41) | func (ht HashType) String() string { constant UnknownHashType (line 28) | UnknownHashType HashType = iota constant SHA1 (line 30) | SHA1 constant SHA224 (line 32) | SHA224 constant SHA256 (line 34) | SHA256 constant SHA384 (line 36) | SHA384 constant SHA512 (line 38) | SHA512 type Parameters (line 59) | type Parameters struct method KeySizeInBytes (line 78) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method HashType (line 81) | func (p *Parameters) HashType() HashType { return p.hashType } method HasIDRequirement (line 86) | func (p *Parameters) HasIDRequirement() bool { return false } method Equal (line 89) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 67) | func NewParameters(keySizeInBytes int, hashType HashType) (*Parameters, ... FILE: prf/hmacprf/parameters_test.go function TestParametersValid (line 24) | func TestParametersValid(t *testing.T) { function TestParametersInvalidValues (line 52) | func TestParametersInvalidValues(t *testing.T) { function mustCreateParameters (line 80) | func mustCreateParameters(t *testing.T, keySize int, hashType hmacprf.Ha... type stubParameters (line 89) | type stubParameters struct method Equal (line 93) | func (p *stubParameters) Equal(other key.Parameters) bool { return fal... method HasIDRequirement (line 95) | func (p *stubParameters) HasIDRequirement() bool { return false } function TestParametersNotEquals (line 97) | func TestParametersNotEquals(t *testing.T) { FILE: prf/hmacprf/protoserialization.go constant typeURL (line 30) | typeURL = "type.googleapis.com/google.crypto.tink.HmacPrfKey" type keySerializer (line 32) | type keySerializer struct method SerializeKey (line 53) | func (s *keySerializer) SerializeKey(key key.Key) (*protoserialization... function toProtoHashType (line 36) | func toProtoHashType(hashType HashType) (commonpb.HashType, error) { type keyParser (line 88) | type keyParser struct method ParseKey (line 109) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function fromProtoHashType (line 92) | func fromProtoHashType(hashType commonpb.HashType) (HashType, error) { type parametersSerializer (line 141) | type parametersSerializer struct method Serialize (line 145) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 172) | type parametersParser struct method Parse (line 176) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: prf/hmacprf/protoserialization_test.go function mustMarshal (line 34) | func mustMarshal(t *testing.T, message proto.Message) []byte { function mustCreateKeySerialization (line 43) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParseKeyFails (line 52) | func TestParseKeyFails(t *testing.T) { type hmacPRFSerializationTestCase (line 144) | type hmacPRFSerializationTestCase struct function hmacPRFSerializationTestCases (line 150) | func hmacPRFSerializationTestCases(t *testing.T) []hmacPRFSerializationT... function TestParseKey (line 186) | func TestParseKey(t *testing.T) { type testParams (line 200) | type testParams struct method HasIDRequirement (line 204) | func (p *testParams) HasIDRequirement() bool { return p.hasIDRequireme... method Equal (line 206) | func (p *testParams) Equal(params key.Parameters) bool { type testKey (line 211) | type testKey struct method Parameters (line 217) | func (k *testKey) Parameters() key.Parameters { return &k.params } method Equal (line 219) | func (k *testKey) Equal(other key.Key) bool { method IDRequirement (line 227) | func (k *testKey) IDRequirement() (uint32, bool) { return k.id, k.para... function TestSerializeKeyFails (line 229) | func TestSerializeKeyFails(t *testing.T) { function TestSerializeKey (line 251) | func TestSerializeKey(t *testing.T) { function mustCreateKeyTemplate (line 265) | func mustCreateKeyTemplate(t *testing.T, keySizeInBytes uint32, hashType... type parametersSerializationTestCase (line 280) | type parametersSerializationTestCase struct function mustCreateParametersTestParameters (line 286) | func mustCreateParametersTestParameters(t *testing.T) []parametersSerial... function TestSerializeParameters (line 310) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 324) | func TestParseParameters(t *testing.T) { function TestParseParametersFailsWithWrongKeyTemplate (line 338) | func TestParseParametersFailsWithWrongKeyTemplate(t *testing.T) { FILE: prf/prf_benchmark_test.go function BenchmarkComputePRF (line 28) | func BenchmarkComputePRF(b *testing.B) { FILE: prf/prf_key_templates.go function HMACSHA256PRFKeyTemplate (line 34) | func HMACSHA256PRFKeyTemplate() *tinkpb.KeyTemplate { function HMACSHA512PRFKeyTemplate (line 41) | func HMACSHA512PRFKeyTemplate() *tinkpb.KeyTemplate { function HKDFSHA256PRFKeyTemplate (line 49) | func HKDFSHA256PRFKeyTemplate() *tinkpb.KeyTemplate { function AESCMACPRFKeyTemplate (line 55) | func AESCMACPRFKeyTemplate() *tinkpb.KeyTemplate { function createHMACPRFKeyTemplate (line 60) | func createHMACPRFKeyTemplate(keySize uint32, hashType commonpb.HashType... function createHKDFPRFKeyTemplate (line 80) | func createHKDFPRFKeyTemplate(keySize uint32, hashType commonpb.HashType... function createAESCMACPRFKeyTemplate (line 101) | func createAESCMACPRFKeyTemplate(keySize uint32) *tinkpb.KeyTemplate { FILE: prf/prf_key_templates_test.go function TestKeyTemplates (line 26) | func TestKeyTemplates(t *testing.T) { FILE: prf/prf_set.go type PRF (line 48) | type PRF interface type monitoredPRF (line 66) | type monitoredPRF struct method ComputePRF (line 74) | func (w *monitoredPRF) ComputePRF(input []byte, outputLength uint32) (... type Set (line 89) | type Set struct method ComputePrimaryPRF (line 97) | func (s Set) ComputePrimaryPRF(input []byte, outputLength uint32) ([]b... FILE: prf/prf_set_factory.go function NewPRFSet (line 31) | func NewPRFSet(handle *keyset.Handle) (*Set, error) { function NewPRFSetWithConfig (line 37) | func NewPRFSetWithConfig(handle *keyset.Handle, config keyset.Config) (*... function wrapPRFset (line 45) | func wrapPRFset(ps *primitiveset.PrimitiveSet[PRF]) (*Set, error) { function createLogger (line 77) | func createLogger(ps *primitiveset.PrimitiveSet[PRF]) (monitoring.Logger... FILE: prf/prf_set_factory_test.go constant maxAutocorrelation (line 44) | maxAutocorrelation = 100 function addKeyAndReturnID (line 47) | func addKeyAndReturnID(m *keyset.Manager, template *tinkpb.KeyTemplate) ... function TestFactoryBasic (line 59) | func TestFactoryBasic(t *testing.T) { function TestNonPRFPrimitives (line 164) | func TestNonPRFPrimitives(t *testing.T) { function runZTests (line 190) | func runZTests(results [][]byte, t *testing.T) { function TestPrimitiveFactoryComputePRFWithoutAnnotationsDoesNothing (line 209) | func TestPrimitiveFactoryComputePRFWithoutAnnotationsDoesNothing(t *test... function TestPrimitiveFactoryMonitoringWithAnnotationsComputePRFFailureIsLogged (line 236) | func TestPrimitiveFactoryMonitoringWithAnnotationsComputePRFFailureIsLog... function TestPrimitiveFactoryIndividualPrfWithAnnotatonsLogsCompute (line 289) | func TestPrimitiveFactoryIndividualPrfWithAnnotatonsLogsCompute(t *testi... function TestPrimitiveFactoryWithMonitoringAnnotationsLogsComputePRF (line 382) | func TestPrimitiveFactoryWithMonitoringAnnotationsLogsComputePRF(t *test... constant keyURL (line 434) | keyURL = "type.googleapis.com/google.crypto.tink.KeyURL" type stubParams (line 436) | type stubParams struct method Equal (line 440) | func (p *stubParams) Equal(_ key.Parameters) bool { return true } method HasIDRequirement (line 441) | func (p *stubParams) HasIDRequirement() bool { return true } type stubKey (line 443) | type stubKey struct method Equal (line 447) | func (p *stubKey) Equal(_ key.Key) bool { return true } method Parameters (line 448) | func (p *stubKey) Parameters() key.Parameters { return &stubParams{} } method IDRequirement (line 449) | func (p *stubKey) IDRequirement() (uint32, bool) { return 0, false } method HasIDRequirement (line 450) | func (p *stubKey) HasIDRequirement() bool { return false } method OutputPrefix (line 451) | func (p *stubKey) OutputPrefix() []byte { return nil } type stubKeySerialization (line 453) | type stubKeySerialization struct method SerializeKey (line 457) | func (s *stubKeySerialization) SerializeKey(key key.Key) (*protoserial... type stubKeyParser (line 469) | type stubKeyParser struct method ParseKey (line 473) | func (s *stubKeyParser) ParseKey(serialization *protoserialization.Key... type stubFullPRF (line 477) | type stubFullPRF struct method ComputePRF (line 481) | func (s *stubFullPRF) ComputePRF(input []byte, outputLength uint32) ([... type legacyPRF (line 485) | type legacyPRF struct method ComputePRF (line 489) | func (s *legacyPRF) ComputePRF(input []byte, outputLength uint32) ([]b... function TestNewWithConfig (line 493) | func TestNewWithConfig(t *testing.T) { FILE: prf/prf_test.go function Example (line 26) | func Example() { FILE: prf/subtle/aes_cmac.go type AESCMACPRF (line 28) | type AESCMACPRF struct method ComputePRF (line 56) | func (a AESCMACPRF) ComputePRF(data []byte, outputLength uint32) ([]by... function NewAESCMACPRF (line 34) | func NewAESCMACPRF(key []byte) (*AESCMACPRF, error) { function ValidateAESCMACPRFParams (line 44) | func ValidateAESCMACPRFParams(keySize uint32) error { FILE: prf/subtle/aes_cmac_test.go function TestVectorsRFC4493 (line 27) | func TestVectorsRFC4493(t *testing.T) { function TestAESCMACPRFWycheproofCases (line 58) | func TestAESCMACPRFWycheproofCases(t *testing.T) { function TestValidateAESCMACPRFParams (line 109) | func TestValidateAESCMACPRFParams(t *testing.T) { function TestKeyLength (line 118) | func TestKeyLength(t *testing.T) { function TestAESCMACPRFOutputLength (line 136) | func TestAESCMACPRFOutputLength(t *testing.T) { FILE: prf/subtle/hkdf.go constant minHKDFKeySizeInBytes (line 31) | minHKDFKeySizeInBytes = uint32(32) type HKDFPRF (line 35) | type HKDFPRF struct method ComputePRF (line 70) | func (h HKDFPRF) ComputePRF(data []byte, outputLength uint32) ([]byte,... function NewHKDFPRF (line 42) | func NewHKDFPRF(hashAlg string, key []byte, salt []byte) (*HKDFPRF, erro... function ValidateHKDFPRFParams (line 55) | func ValidateHKDFPRFParams(hash string, keySize uint32, salt []byte) err... FILE: prf/subtle/hkdf_test.go type rfc5869test (line 28) | type rfc5869test struct function TestVectorsRFC5869 (line 37) | func TestVectorsRFC5869(t *testing.T) { function TestHKDFPRFWycheproofCases (line 124) | func TestHKDFPRFWycheproofCases(t *testing.T) { function TestHKDFPRFHash (line 172) | func TestHKDFPRFHash(t *testing.T) { function TestHKDFPRFSalt (line 195) | func TestHKDFPRFSalt(t *testing.T) { function TestHKDFPRFOutputLength (line 213) | func TestHKDFPRFOutputLength(t *testing.T) { function TestValidateHKDFPRFParams (line 241) | func TestValidateHKDFPRFParams(t *testing.T) { FILE: prf/subtle/hmac.go constant minHMACKeySizeInBytes (line 26) | minHMACKeySizeInBytes = uint32(16) type HMACPRF (line 30) | type HMACPRF struct method ComputePRF (line 60) | func (h HMACPRF) ComputePRF(data []byte, outputLength uint32) ([]byte,... function NewHMACPRF (line 36) | func NewHMACPRF(hashAlg string, key []byte) (*HMACPRF, error) { function ValidateHMACPRFParams (line 48) | func ValidateHMACPRFParams(hash string, keySize uint32) error { FILE: prf/subtle/hmac_test.go type rfc4868test (line 28) | type rfc4868test struct function TestVectorsRFC4868 (line 34) | func TestVectorsRFC4868(t *testing.T) { function TestHMACPRFWycheproofCases (line 111) | func TestHMACPRFWycheproofCases(t *testing.T) { function TestHMACPRFHash (line 161) | func TestHMACPRFHash(t *testing.T) { function TestHMACPRFOutputLength (line 184) | func TestHMACPRFOutputLength(t *testing.T) { function TestValidateHMACPRFParams (line 212) | func TestValidateHMACPRFParams(t *testing.T) { FILE: prf/subtle/subtle_test.go type macSuite (line 22) | type macSuite struct type macGroup (line 27) | type macGroup struct type macCase (line 35) | type macCase struct type hkdfSuite (line 42) | type hkdfSuite struct type hkdfGroup (line 47) | type hkdfGroup struct type hkdfCase (line 54) | type hkdfCase struct FILE: proto/aes_cmac_go_proto/aes_cmac.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesCmacParams (line 40) | type AesCmacParams struct method Reset (line 47) | func (x *AesCmacParams) Reset() { method String (line 54) | func (x *AesCmacParams) String() string { method ProtoMessage (line 58) | func (*AesCmacParams) ProtoMessage() {} method ProtoReflect (line 60) | func (x *AesCmacParams) ProtoReflect() protoreflect.Message { method Descriptor (line 73) | func (*AesCmacParams) Descriptor() ([]byte, []int) { method GetTagSize (line 77) | func (x *AesCmacParams) GetTagSize() uint32 { type AesCmacKey (line 85) | type AesCmacKey struct method Reset (line 94) | func (x *AesCmacKey) Reset() { method String (line 101) | func (x *AesCmacKey) String() string { method ProtoMessage (line 105) | func (*AesCmacKey) ProtoMessage() {} method ProtoReflect (line 107) | func (x *AesCmacKey) ProtoReflect() protoreflect.Message { method Descriptor (line 120) | func (*AesCmacKey) Descriptor() ([]byte, []int) { method GetVersion (line 124) | func (x *AesCmacKey) GetVersion() uint32 { method GetKeyValue (line 131) | func (x *AesCmacKey) GetKeyValue() []byte { method GetParams (line 138) | func (x *AesCmacKey) GetParams() *AesCmacParams { type AesCmacKeyFormat (line 145) | type AesCmacKeyFormat struct method Reset (line 153) | func (x *AesCmacKeyFormat) Reset() { method String (line 160) | func (x *AesCmacKeyFormat) String() string { method ProtoMessage (line 164) | func (*AesCmacKeyFormat) ProtoMessage() {} method ProtoReflect (line 166) | func (x *AesCmacKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 179) | func (*AesCmacKeyFormat) Descriptor() ([]byte, []int) { method GetKeySize (line 183) | func (x *AesCmacKeyFormat) GetKeySize() uint32 { method GetParams (line 190) | func (x *AesCmacKeyFormat) GetParams() *AesCmacParams { constant file_aes_cmac_proto_rawDesc (line 199) | file_aes_cmac_proto_rawDesc = "" + function file_aes_cmac_proto_rawDescGZIP (line 219) | func file_aes_cmac_proto_rawDescGZIP() []byte { function init (line 242) | func init() { file_aes_cmac_proto_init() } function file_aes_cmac_proto_init (line 243) | func file_aes_cmac_proto_init() { FILE: proto/aes_cmac_prf_go_proto/aes_cmac_prf.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesCmacPrfKey (line 41) | type AesCmacPrfKey struct method Reset (line 49) | func (x *AesCmacPrfKey) Reset() { method String (line 56) | func (x *AesCmacPrfKey) String() string { method ProtoMessage (line 60) | func (*AesCmacPrfKey) ProtoMessage() {} method ProtoReflect (line 62) | func (x *AesCmacPrfKey) ProtoReflect() protoreflect.Message { method Descriptor (line 75) | func (*AesCmacPrfKey) Descriptor() ([]byte, []int) { method GetVersion (line 79) | func (x *AesCmacPrfKey) GetVersion() uint32 { method GetKeyValue (line 86) | func (x *AesCmacPrfKey) GetKeyValue() []byte { type AesCmacPrfKeyFormat (line 93) | type AesCmacPrfKeyFormat struct method Reset (line 101) | func (x *AesCmacPrfKeyFormat) Reset() { method String (line 108) | func (x *AesCmacPrfKeyFormat) String() string { method ProtoMessage (line 112) | func (*AesCmacPrfKeyFormat) ProtoMessage() {} method ProtoReflect (line 114) | func (x *AesCmacPrfKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 127) | func (*AesCmacPrfKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 131) | func (x *AesCmacPrfKeyFormat) GetVersion() uint32 { method GetKeySize (line 138) | func (x *AesCmacPrfKeyFormat) GetKeySize() uint32 { constant file_aes_cmac_prf_proto_rawDesc (line 147) | file_aes_cmac_prf_proto_rawDesc = "" + function file_aes_cmac_prf_proto_rawDescGZIP (line 163) | func file_aes_cmac_prf_proto_rawDescGZIP() []byte { function init (line 183) | func init() { file_aes_cmac_prf_proto_init() } function file_aes_cmac_prf_proto_init (line 184) | func file_aes_cmac_prf_proto_init() { FILE: proto/aes_ctr_go_proto/aes_ctr.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesCtrParams (line 40) | type AesCtrParams struct method Reset (line 47) | func (x *AesCtrParams) Reset() { method String (line 54) | func (x *AesCtrParams) String() string { method ProtoMessage (line 58) | func (*AesCtrParams) ProtoMessage() {} method ProtoReflect (line 60) | func (x *AesCtrParams) ProtoReflect() protoreflect.Message { method Descriptor (line 73) | func (*AesCtrParams) Descriptor() ([]byte, []int) { method GetIvSize (line 77) | func (x *AesCtrParams) GetIvSize() uint32 { type AesCtrKeyFormat (line 84) | type AesCtrKeyFormat struct method Reset (line 92) | func (x *AesCtrKeyFormat) Reset() { method String (line 99) | func (x *AesCtrKeyFormat) String() string { method ProtoMessage (line 103) | func (*AesCtrKeyFormat) ProtoMessage() {} method ProtoReflect (line 105) | func (x *AesCtrKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 118) | func (*AesCtrKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 122) | func (x *AesCtrKeyFormat) GetParams() *AesCtrParams { method GetKeySize (line 129) | func (x *AesCtrKeyFormat) GetKeySize() uint32 { type AesCtrKey (line 137) | type AesCtrKey struct method Reset (line 146) | func (x *AesCtrKey) Reset() { method String (line 153) | func (x *AesCtrKey) String() string { method ProtoMessage (line 157) | func (*AesCtrKey) ProtoMessage() {} method ProtoReflect (line 159) | func (x *AesCtrKey) ProtoReflect() protoreflect.Message { method Descriptor (line 172) | func (*AesCtrKey) Descriptor() ([]byte, []int) { method GetVersion (line 176) | func (x *AesCtrKey) GetVersion() uint32 { method GetParams (line 183) | func (x *AesCtrKey) GetParams() *AesCtrParams { method GetKeyValue (line 190) | func (x *AesCtrKey) GetKeyValue() []byte { constant file_aes_ctr_proto_rawDesc (line 199) | file_aes_ctr_proto_rawDesc = "" + function file_aes_ctr_proto_rawDescGZIP (line 218) | func file_aes_ctr_proto_rawDescGZIP() []byte { function init (line 241) | func init() { file_aes_ctr_proto_init() } function file_aes_ctr_proto_init (line 242) | func file_aes_ctr_proto_init() { FILE: proto/aes_ctr_hmac_aead_go_proto/aes_ctr_hmac_aead.pb.go constant _ (line 37) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 39) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesCtrHmacAeadKeyFormat (line 42) | type AesCtrHmacAeadKeyFormat struct method Reset (line 50) | func (x *AesCtrHmacAeadKeyFormat) Reset() { method String (line 57) | func (x *AesCtrHmacAeadKeyFormat) String() string { method ProtoMessage (line 61) | func (*AesCtrHmacAeadKeyFormat) ProtoMessage() {} method ProtoReflect (line 63) | func (x *AesCtrHmacAeadKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 76) | func (*AesCtrHmacAeadKeyFormat) Descriptor() ([]byte, []int) { method GetAesCtrKeyFormat (line 80) | func (x *AesCtrHmacAeadKeyFormat) GetAesCtrKeyFormat() *aes_ctr_go_pro... method GetHmacKeyFormat (line 87) | func (x *AesCtrHmacAeadKeyFormat) GetHmacKeyFormat() *hmac_go_proto.Hm... type AesCtrHmacAeadKey (line 95) | type AesCtrHmacAeadKey struct method Reset (line 104) | func (x *AesCtrHmacAeadKey) Reset() { method String (line 111) | func (x *AesCtrHmacAeadKey) String() string { method ProtoMessage (line 115) | func (*AesCtrHmacAeadKey) ProtoMessage() {} method ProtoReflect (line 117) | func (x *AesCtrHmacAeadKey) ProtoReflect() protoreflect.Message { method Descriptor (line 130) | func (*AesCtrHmacAeadKey) Descriptor() ([]byte, []int) { method GetVersion (line 134) | func (x *AesCtrHmacAeadKey) GetVersion() uint32 { method GetAesCtrKey (line 141) | func (x *AesCtrHmacAeadKey) GetAesCtrKey() *aes_ctr_go_proto.AesCtrKey { method GetHmacKey (line 148) | func (x *AesCtrHmacAeadKey) GetHmacKey() *hmac_go_proto.HmacKey { constant file_aes_ctr_hmac_aead_proto_rawDesc (line 157) | file_aes_ctr_hmac_aead_proto_rawDesc = "" + function file_aes_ctr_hmac_aead_proto_rawDescGZIP (line 174) | func file_aes_ctr_hmac_aead_proto_rawDescGZIP() []byte { function init (line 202) | func init() { file_aes_ctr_hmac_aead_proto_init() } function file_aes_ctr_hmac_aead_proto_init (line 203) | func file_aes_ctr_hmac_aead_proto_init() { FILE: proto/aes_ctr_hmac_streaming_go_proto/aes_ctr_hmac_streaming.pb.go constant _ (line 37) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 39) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesCtrHmacStreamingParams (line 42) | type AesCtrHmacStreamingParams struct method Reset (line 52) | func (x *AesCtrHmacStreamingParams) Reset() { method String (line 59) | func (x *AesCtrHmacStreamingParams) String() string { method ProtoMessage (line 63) | func (*AesCtrHmacStreamingParams) ProtoMessage() {} method ProtoReflect (line 65) | func (x *AesCtrHmacStreamingParams) ProtoReflect() protoreflect.Message { method Descriptor (line 78) | func (*AesCtrHmacStreamingParams) Descriptor() ([]byte, []int) { method GetCiphertextSegmentSize (line 82) | func (x *AesCtrHmacStreamingParams) GetCiphertextSegmentSize() uint32 { method GetDerivedKeySize (line 89) | func (x *AesCtrHmacStreamingParams) GetDerivedKeySize() uint32 { method GetHkdfHashType (line 96) | func (x *AesCtrHmacStreamingParams) GetHkdfHashType() common_go_proto.... method GetHmacParams (line 103) | func (x *AesCtrHmacStreamingParams) GetHmacParams() *hmac_go_proto.Hma... type AesCtrHmacStreamingKeyFormat (line 110) | type AesCtrHmacStreamingKeyFormat struct method Reset (line 119) | func (x *AesCtrHmacStreamingKeyFormat) Reset() { method String (line 126) | func (x *AesCtrHmacStreamingKeyFormat) String() string { method ProtoMessage (line 130) | func (*AesCtrHmacStreamingKeyFormat) ProtoMessage() {} method ProtoReflect (line 132) | func (x *AesCtrHmacStreamingKeyFormat) ProtoReflect() protoreflect.Mes... method Descriptor (line 145) | func (*AesCtrHmacStreamingKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 149) | func (x *AesCtrHmacStreamingKeyFormat) GetVersion() uint32 { method GetParams (line 156) | func (x *AesCtrHmacStreamingKeyFormat) GetParams() *AesCtrHmacStreamin... method GetKeySize (line 163) | func (x *AesCtrHmacStreamingKeyFormat) GetKeySize() uint32 { type AesCtrHmacStreamingKey (line 171) | type AesCtrHmacStreamingKey struct method Reset (line 180) | func (x *AesCtrHmacStreamingKey) Reset() { method String (line 187) | func (x *AesCtrHmacStreamingKey) String() string { method ProtoMessage (line 191) | func (*AesCtrHmacStreamingKey) ProtoMessage() {} method ProtoReflect (line 193) | func (x *AesCtrHmacStreamingKey) ProtoReflect() protoreflect.Message { method Descriptor (line 206) | func (*AesCtrHmacStreamingKey) Descriptor() ([]byte, []int) { method GetVersion (line 210) | func (x *AesCtrHmacStreamingKey) GetVersion() uint32 { method GetParams (line 217) | func (x *AesCtrHmacStreamingKey) GetParams() *AesCtrHmacStreamingParams { method GetKeyValue (line 224) | func (x *AesCtrHmacStreamingKey) GetKeyValue() []byte { constant file_aes_ctr_hmac_streaming_proto_rawDesc (line 233) | file_aes_ctr_hmac_streaming_proto_rawDesc = "" + function file_aes_ctr_hmac_streaming_proto_rawDescGZIP (line 257) | func file_aes_ctr_hmac_streaming_proto_rawDescGZIP() []byte { function init (line 284) | func init() { file_aes_ctr_hmac_streaming_proto_init() } function file_aes_ctr_hmac_streaming_proto_init (line 285) | func file_aes_ctr_hmac_streaming_proto_init() { FILE: proto/aes_eax_go_proto/aes_eax.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesEaxParams (line 41) | type AesEaxParams struct method Reset (line 49) | func (x *AesEaxParams) Reset() { method String (line 56) | func (x *AesEaxParams) String() string { method ProtoMessage (line 60) | func (*AesEaxParams) ProtoMessage() {} method ProtoReflect (line 62) | func (x *AesEaxParams) ProtoReflect() protoreflect.Message { method Descriptor (line 75) | func (*AesEaxParams) Descriptor() ([]byte, []int) { method GetIvSize (line 79) | func (x *AesEaxParams) GetIvSize() uint32 { type AesEaxKeyFormat (line 86) | type AesEaxKeyFormat struct method Reset (line 94) | func (x *AesEaxKeyFormat) Reset() { method String (line 101) | func (x *AesEaxKeyFormat) String() string { method ProtoMessage (line 105) | func (*AesEaxKeyFormat) ProtoMessage() {} method ProtoReflect (line 107) | func (x *AesEaxKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 120) | func (*AesEaxKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 124) | func (x *AesEaxKeyFormat) GetParams() *AesEaxParams { method GetKeySize (line 131) | func (x *AesEaxKeyFormat) GetKeySize() uint32 { type AesEaxKey (line 139) | type AesEaxKey struct method Reset (line 148) | func (x *AesEaxKey) Reset() { method String (line 155) | func (x *AesEaxKey) String() string { method ProtoMessage (line 159) | func (*AesEaxKey) ProtoMessage() {} method ProtoReflect (line 161) | func (x *AesEaxKey) ProtoReflect() protoreflect.Message { method Descriptor (line 174) | func (*AesEaxKey) Descriptor() ([]byte, []int) { method GetVersion (line 178) | func (x *AesEaxKey) GetVersion() uint32 { method GetParams (line 185) | func (x *AesEaxKey) GetParams() *AesEaxParams { method GetKeyValue (line 192) | func (x *AesEaxKey) GetKeyValue() []byte { constant file_aes_eax_proto_rawDesc (line 201) | file_aes_eax_proto_rawDesc = "" + function file_aes_eax_proto_rawDescGZIP (line 220) | func file_aes_eax_proto_rawDescGZIP() []byte { function init (line 243) | func init() { file_aes_eax_proto_init() } function file_aes_eax_proto_init (line 244) | func file_aes_eax_proto_init() { FILE: proto/aes_gcm_go_proto/aes_gcm.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesGcmKeyFormat (line 40) | type AesGcmKeyFormat struct method Reset (line 48) | func (x *AesGcmKeyFormat) Reset() { method String (line 55) | func (x *AesGcmKeyFormat) String() string { method ProtoMessage (line 59) | func (*AesGcmKeyFormat) ProtoMessage() {} method ProtoReflect (line 61) | func (x *AesGcmKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 74) | func (*AesGcmKeyFormat) Descriptor() ([]byte, []int) { method GetKeySize (line 78) | func (x *AesGcmKeyFormat) GetKeySize() uint32 { method GetVersion (line 85) | func (x *AesGcmKeyFormat) GetVersion() uint32 { type AesGcmKey (line 92) | type AesGcmKey struct method Reset (line 100) | func (x *AesGcmKey) Reset() { method String (line 107) | func (x *AesGcmKey) String() string { method ProtoMessage (line 111) | func (*AesGcmKey) ProtoMessage() {} method ProtoReflect (line 113) | func (x *AesGcmKey) ProtoReflect() protoreflect.Message { method Descriptor (line 126) | func (*AesGcmKey) Descriptor() ([]byte, []int) { method GetVersion (line 130) | func (x *AesGcmKey) GetVersion() uint32 { method GetKeyValue (line 137) | func (x *AesGcmKey) GetKeyValue() []byte { constant file_aes_gcm_proto_rawDesc (line 146) | file_aes_gcm_proto_rawDesc = "" + function file_aes_gcm_proto_rawDescGZIP (line 162) | func file_aes_gcm_proto_rawDescGZIP() []byte { function init (line 182) | func init() { file_aes_gcm_proto_init() } function file_aes_gcm_proto_init (line 183) | func file_aes_gcm_proto_init() { FILE: proto/aes_gcm_hkdf_streaming_go_proto/aes_gcm_hkdf_streaming.pb.go constant _ (line 39) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 41) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesGcmHkdfStreamingParams (line 44) | type AesGcmHkdfStreamingParams struct method Reset (line 53) | func (x *AesGcmHkdfStreamingParams) Reset() { method String (line 60) | func (x *AesGcmHkdfStreamingParams) String() string { method ProtoMessage (line 64) | func (*AesGcmHkdfStreamingParams) ProtoMessage() {} method ProtoReflect (line 66) | func (x *AesGcmHkdfStreamingParams) ProtoReflect() protoreflect.Message { method Descriptor (line 79) | func (*AesGcmHkdfStreamingParams) Descriptor() ([]byte, []int) { method GetCiphertextSegmentSize (line 83) | func (x *AesGcmHkdfStreamingParams) GetCiphertextSegmentSize() uint32 { method GetDerivedKeySize (line 90) | func (x *AesGcmHkdfStreamingParams) GetDerivedKeySize() uint32 { method GetHkdfHashType (line 97) | func (x *AesGcmHkdfStreamingParams) GetHkdfHashType() common_go_proto.... type AesGcmHkdfStreamingKeyFormat (line 104) | type AesGcmHkdfStreamingKeyFormat struct method Reset (line 113) | func (x *AesGcmHkdfStreamingKeyFormat) Reset() { method String (line 120) | func (x *AesGcmHkdfStreamingKeyFormat) String() string { method ProtoMessage (line 124) | func (*AesGcmHkdfStreamingKeyFormat) ProtoMessage() {} method ProtoReflect (line 126) | func (x *AesGcmHkdfStreamingKeyFormat) ProtoReflect() protoreflect.Mes... method Descriptor (line 139) | func (*AesGcmHkdfStreamingKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 143) | func (x *AesGcmHkdfStreamingKeyFormat) GetVersion() uint32 { method GetParams (line 150) | func (x *AesGcmHkdfStreamingKeyFormat) GetParams() *AesGcmHkdfStreamin... method GetKeySize (line 157) | func (x *AesGcmHkdfStreamingKeyFormat) GetKeySize() uint32 { type AesGcmHkdfStreamingKey (line 165) | type AesGcmHkdfStreamingKey struct method Reset (line 174) | func (x *AesGcmHkdfStreamingKey) Reset() { method String (line 181) | func (x *AesGcmHkdfStreamingKey) String() string { method ProtoMessage (line 185) | func (*AesGcmHkdfStreamingKey) ProtoMessage() {} method ProtoReflect (line 187) | func (x *AesGcmHkdfStreamingKey) ProtoReflect() protoreflect.Message { method Descriptor (line 200) | func (*AesGcmHkdfStreamingKey) Descriptor() ([]byte, []int) { method GetVersion (line 204) | func (x *AesGcmHkdfStreamingKey) GetVersion() uint32 { method GetParams (line 211) | func (x *AesGcmHkdfStreamingKey) GetParams() *AesGcmHkdfStreamingParams { method GetKeyValue (line 218) | func (x *AesGcmHkdfStreamingKey) GetKeyValue() []byte { constant file_aes_gcm_hkdf_streaming_proto_rawDesc (line 227) | file_aes_gcm_hkdf_streaming_proto_rawDesc = "" + function file_aes_gcm_hkdf_streaming_proto_rawDescGZIP (line 249) | func file_aes_gcm_hkdf_streaming_proto_rawDescGZIP() []byte { function init (line 274) | func init() { file_aes_gcm_hkdf_streaming_proto_init() } function file_aes_gcm_hkdf_streaming_proto_init (line 275) | func file_aes_gcm_hkdf_streaming_proto_init() { FILE: proto/aes_gcm_siv_go_proto/aes_gcm_siv.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesGcmSivKeyFormat (line 42) | type AesGcmSivKeyFormat struct method Reset (line 50) | func (x *AesGcmSivKeyFormat) Reset() { method String (line 57) | func (x *AesGcmSivKeyFormat) String() string { method ProtoMessage (line 61) | func (*AesGcmSivKeyFormat) ProtoMessage() {} method ProtoReflect (line 63) | func (x *AesGcmSivKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 76) | func (*AesGcmSivKeyFormat) Descriptor() ([]byte, []int) { method GetKeySize (line 80) | func (x *AesGcmSivKeyFormat) GetKeySize() uint32 { method GetVersion (line 87) | func (x *AesGcmSivKeyFormat) GetVersion() uint32 { type AesGcmSivKey (line 95) | type AesGcmSivKey struct method Reset (line 103) | func (x *AesGcmSivKey) Reset() { method String (line 110) | func (x *AesGcmSivKey) String() string { method ProtoMessage (line 114) | func (*AesGcmSivKey) ProtoMessage() {} method ProtoReflect (line 116) | func (x *AesGcmSivKey) ProtoReflect() protoreflect.Message { method Descriptor (line 129) | func (*AesGcmSivKey) Descriptor() ([]byte, []int) { method GetVersion (line 133) | func (x *AesGcmSivKey) GetVersion() uint32 { method GetKeyValue (line 140) | func (x *AesGcmSivKey) GetKeyValue() []byte { constant file_aes_gcm_siv_proto_rawDesc (line 149) | file_aes_gcm_siv_proto_rawDesc = "" + function file_aes_gcm_siv_proto_rawDescGZIP (line 165) | func file_aes_gcm_siv_proto_rawDescGZIP() []byte { function init (line 185) | func init() { file_aes_gcm_siv_proto_init() } function file_aes_gcm_siv_proto_init (line 186) | func file_aes_gcm_siv_proto_init() { FILE: proto/aes_siv_go_proto/aes_siv.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type AesSivKeyFormat (line 40) | type AesSivKeyFormat struct method Reset (line 49) | func (x *AesSivKeyFormat) Reset() { method String (line 56) | func (x *AesSivKeyFormat) String() string { method ProtoMessage (line 60) | func (*AesSivKeyFormat) ProtoMessage() {} method ProtoReflect (line 62) | func (x *AesSivKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 75) | func (*AesSivKeyFormat) Descriptor() ([]byte, []int) { method GetKeySize (line 79) | func (x *AesSivKeyFormat) GetKeySize() uint32 { method GetVersion (line 86) | func (x *AesSivKeyFormat) GetVersion() uint32 { type AesSivKey (line 94) | type AesSivKey struct method Reset (line 103) | func (x *AesSivKey) Reset() { method String (line 110) | func (x *AesSivKey) String() string { method ProtoMessage (line 114) | func (*AesSivKey) ProtoMessage() {} method ProtoReflect (line 116) | func (x *AesSivKey) ProtoReflect() protoreflect.Message { method Descriptor (line 129) | func (*AesSivKey) Descriptor() ([]byte, []int) { method GetVersion (line 133) | func (x *AesSivKey) GetVersion() uint32 { method GetKeyValue (line 140) | func (x *AesSivKey) GetKeyValue() []byte { constant file_aes_siv_proto_rawDesc (line 149) | file_aes_siv_proto_rawDesc = "" + function file_aes_siv_proto_rawDescGZIP (line 165) | func file_aes_siv_proto_rawDescGZIP() []byte { function init (line 185) | func init() { file_aes_siv_proto_init() } function file_aes_siv_proto_init (line 186) | func file_aes_siv_proto_init() { FILE: proto/chacha20_poly1305_go_proto/chacha20_poly1305.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type ChaCha20Poly1305KeyFormat (line 40) | type ChaCha20Poly1305KeyFormat struct method Reset (line 46) | func (x *ChaCha20Poly1305KeyFormat) Reset() { method String (line 53) | func (x *ChaCha20Poly1305KeyFormat) String() string { method ProtoMessage (line 57) | func (*ChaCha20Poly1305KeyFormat) ProtoMessage() {} method ProtoReflect (line 59) | func (x *ChaCha20Poly1305KeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 72) | func (*ChaCha20Poly1305KeyFormat) Descriptor() ([]byte, []int) { type ChaCha20Poly1305Key (line 79) | type ChaCha20Poly1305Key struct method Reset (line 87) | func (x *ChaCha20Poly1305Key) Reset() { method String (line 94) | func (x *ChaCha20Poly1305Key) String() string { method ProtoMessage (line 98) | func (*ChaCha20Poly1305Key) ProtoMessage() {} method ProtoReflect (line 100) | func (x *ChaCha20Poly1305Key) ProtoReflect() protoreflect.Message { method Descriptor (line 113) | func (*ChaCha20Poly1305Key) Descriptor() ([]byte, []int) { method GetVersion (line 117) | func (x *ChaCha20Poly1305Key) GetVersion() uint32 { method GetKeyValue (line 124) | func (x *ChaCha20Poly1305Key) GetKeyValue() []byte { constant file_chacha20_poly1305_proto_rawDesc (line 133) | file_chacha20_poly1305_proto_rawDesc = "" + function file_chacha20_poly1305_proto_rawDescGZIP (line 147) | func file_chacha20_poly1305_proto_rawDescGZIP() []byte { function init (line 167) | func init() { file_chacha20_poly1305_proto_init() } function file_chacha20_poly1305_proto_init (line 168) | func file_chacha20_poly1305_proto_init() { FILE: proto/common_go_proto/common.pb.go constant _ (line 37) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 39) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type EllipticCurveType (line 42) | type EllipticCurveType method Enum (line 70) | func (x EllipticCurveType) Enum() *EllipticCurveType { method String (line 76) | func (x EllipticCurveType) String() string { method Descriptor (line 80) | func (EllipticCurveType) Descriptor() protoreflect.EnumDescriptor { method Type (line 84) | func (EllipticCurveType) Type() protoreflect.EnumType { method Number (line 88) | func (x EllipticCurveType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 93) | func (EllipticCurveType) EnumDescriptor() ([]byte, []int) { constant EllipticCurveType_UNKNOWN_CURVE (line 45) | EllipticCurveType_UNKNOWN_CURVE EllipticCurveType = 0 constant EllipticCurveType_NIST_P256 (line 46) | EllipticCurveType_NIST_P256 EllipticCurveType = 2 constant EllipticCurveType_NIST_P384 (line 47) | EllipticCurveType_NIST_P384 EllipticCurveType = 3 constant EllipticCurveType_NIST_P521 (line 48) | EllipticCurveType_NIST_P521 EllipticCurveType = 4 constant EllipticCurveType_CURVE25519 (line 49) | EllipticCurveType_CURVE25519 EllipticCurveType = 5 type EcPointFormat (line 97) | type EcPointFormat method Enum (line 124) | func (x EcPointFormat) Enum() *EcPointFormat { method String (line 130) | func (x EcPointFormat) String() string { method Descriptor (line 134) | func (EcPointFormat) Descriptor() protoreflect.EnumDescriptor { method Type (line 138) | func (EcPointFormat) Type() protoreflect.EnumType { method Number (line 142) | func (x EcPointFormat) Number() protoreflect.EnumNumber { method EnumDescriptor (line 147) | func (EcPointFormat) EnumDescriptor() ([]byte, []int) { constant EcPointFormat_UNKNOWN_FORMAT (line 100) | EcPointFormat_UNKNOWN_FORMAT EcPointFormat = 0 constant EcPointFormat_UNCOMPRESSED (line 101) | EcPointFormat_UNCOMPRESSED EcPointFormat = 1 constant EcPointFormat_COMPRESSED (line 102) | EcPointFormat_COMPRESSED EcPointFormat = 2 constant EcPointFormat_DO_NOT_USE_CRUNCHY_UNCOMPRESSED (line 105) | EcPointFormat_DO_NOT_USE_CRUNCHY_UNCOMPRESSED EcPointFormat = 3 type HashType (line 151) | type HashType method Enum (line 183) | func (x HashType) Enum() *HashType { method String (line 189) | func (x HashType) String() string { method Descriptor (line 193) | func (HashType) Descriptor() protoreflect.EnumDescriptor { method Type (line 197) | func (HashType) Type() protoreflect.EnumType { method Number (line 201) | func (x HashType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 206) | func (HashType) EnumDescriptor() ([]byte, []int) { constant HashType_UNKNOWN_HASH (line 154) | HashType_UNKNOWN_HASH HashType = 0 constant HashType_SHA1 (line 155) | HashType_SHA1 HashType = 1 constant HashType_SHA384 (line 157) | HashType_SHA384 HashType = 2 constant HashType_SHA256 (line 158) | HashType_SHA256 HashType = 3 constant HashType_SHA512 (line 159) | HashType_SHA512 HashType = 4 constant HashType_SHA224 (line 160) | HashType_SHA224 HashType = 5 constant file_common_proto_rawDesc (line 212) | file_common_proto_rawDesc = "" + function file_common_proto_rawDescGZIP (line 246) | func file_common_proto_rawDescGZIP() []byte { function init (line 267) | func init() { file_common_proto_init() } function file_common_proto_init (line 268) | func file_common_proto_init() { FILE: proto/composite_ml_dsa_go_proto/composite_ml_dsa.pb.go constant _ (line 42) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 44) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type CompositeMlDsaClassicalAlgorithm (line 48) | type CompositeMlDsaClassicalAlgorithm method Enum (line 88) | func (x CompositeMlDsaClassicalAlgorithm) Enum() *CompositeMlDsaClassi... method String (line 94) | func (x CompositeMlDsaClassicalAlgorithm) String() string { method Descriptor (line 98) | func (CompositeMlDsaClassicalAlgorithm) Descriptor() protoreflect.Enum... method Type (line 102) | func (CompositeMlDsaClassicalAlgorithm) Type() protoreflect.EnumType { method Number (line 106) | func (x CompositeMlDsaClassicalAlgorithm) Number() protoreflect.EnumNu... method EnumDescriptor (line 111) | func (CompositeMlDsaClassicalAlgorithm) EnumDescriptor() ([]byte, []in... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_UNKNOWN (line 51) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_UNKNOWN Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ED25519 (line 52) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ED25519 Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ECDSA_P256 (line 53) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ECDSA_P256 Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ECDSA_P384 (line 54) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ECDSA_P384 Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ECDSA_P521 (line 55) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_ECDSA_P521 Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA3072_PSS (line 56) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA3072_PSS Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA4096_PSS (line 57) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA4096_PSS Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA3072_PKCS1 (line 58) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA3072_PKCS1 Compo... constant CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA4096_PKCS1 (line 59) | CompositeMlDsaClassicalAlgorithm_CLASSICAL_ALGORITHM_RSA4096_PKCS1 Compo... type CompositeMlDsaKeyFormat (line 115) | type CompositeMlDsaKeyFormat struct method Reset (line 125) | func (x *CompositeMlDsaKeyFormat) Reset() { method String (line 132) | func (x *CompositeMlDsaKeyFormat) String() string { method ProtoMessage (line 136) | func (*CompositeMlDsaKeyFormat) ProtoMessage() {} method ProtoReflect (line 138) | func (x *CompositeMlDsaKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 151) | func (*CompositeMlDsaKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 155) | func (x *CompositeMlDsaKeyFormat) GetVersion() uint32 { method GetParams (line 162) | func (x *CompositeMlDsaKeyFormat) GetParams() *CompositeMlDsaParams { type CompositeMlDsaParams (line 172) | type CompositeMlDsaParams struct method Reset (line 182) | func (x *CompositeMlDsaParams) Reset() { method String (line 189) | func (x *CompositeMlDsaParams) String() string { method ProtoMessage (line 193) | func (*CompositeMlDsaParams) ProtoMessage() {} method ProtoReflect (line 195) | func (x *CompositeMlDsaParams) ProtoReflect() protoreflect.Message { method Descriptor (line 208) | func (*CompositeMlDsaParams) Descriptor() ([]byte, []int) { method GetMlDsaInstance (line 212) | func (x *CompositeMlDsaParams) GetMlDsaInstance() ml_dsa_go_proto.MlDs... method GetClassicalAlgorithm (line 219) | func (x *CompositeMlDsaParams) GetClassicalAlgorithm() CompositeMlDsaC... type CompositeMlDsaPublicKey (line 226) | type CompositeMlDsaPublicKey struct method Reset (line 242) | func (x *CompositeMlDsaPublicKey) Reset() { method String (line 249) | func (x *CompositeMlDsaPublicKey) String() string { method ProtoMessage (line 253) | func (*CompositeMlDsaPublicKey) ProtoMessage() {} method ProtoReflect (line 255) | func (x *CompositeMlDsaPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 268) | func (*CompositeMlDsaPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 272) | func (x *CompositeMlDsaPublicKey) GetVersion() uint32 { method GetMlDsaPublicKey (line 279) | func (x *CompositeMlDsaPublicKey) GetMlDsaPublicKey() *tink_go_proto.K... method GetClassicalPublicKey (line 286) | func (x *CompositeMlDsaPublicKey) GetClassicalPublicKey() *tink_go_pro... method GetParams (line 293) | func (x *CompositeMlDsaPublicKey) GetParams() *CompositeMlDsaParams { type CompositeMlDsaPrivateKey (line 300) | type CompositeMlDsaPrivateKey struct method Reset (line 316) | func (x *CompositeMlDsaPrivateKey) Reset() { method String (line 323) | func (x *CompositeMlDsaPrivateKey) String() string { method ProtoMessage (line 327) | func (*CompositeMlDsaPrivateKey) ProtoMessage() {} method ProtoReflect (line 329) | func (x *CompositeMlDsaPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 342) | func (*CompositeMlDsaPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 346) | func (x *CompositeMlDsaPrivateKey) GetVersion() uint32 { method GetMlDsaPrivateKey (line 353) | func (x *CompositeMlDsaPrivateKey) GetMlDsaPrivateKey() *tink_go_proto... method GetClassicalPrivateKey (line 360) | func (x *CompositeMlDsaPrivateKey) GetClassicalPrivateKey() *tink_go_p... method GetParams (line 367) | func (x *CompositeMlDsaPrivateKey) GetParams() *CompositeMlDsaParams { constant file_third_party_tink_proto_composite_ml_dsa_proto_rawDesc (line 376) | file_third_party_tink_proto_composite_ml_dsa_proto_rawDesc = "" + function file_third_party_tink_proto_composite_ml_dsa_proto_rawDescGZIP (line 412) | func file_third_party_tink_proto_composite_ml_dsa_proto_rawDescGZIP() []... function init (line 447) | func init() { file_third_party_tink_proto_composite_ml_dsa_proto_init() } function file_third_party_tink_proto_composite_ml_dsa_proto_init (line 448) | func file_third_party_tink_proto_composite_ml_dsa_proto_init() { FILE: proto/config_go_proto/config.pb.go constant _ (line 37) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 39) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type KeyTypeEntry (line 47) | type KeyTypeEntry struct method Reset (line 58) | func (x *KeyTypeEntry) Reset() { method String (line 65) | func (x *KeyTypeEntry) String() string { method ProtoMessage (line 69) | func (*KeyTypeEntry) ProtoMessage() {} method ProtoReflect (line 71) | func (x *KeyTypeEntry) ProtoReflect() protoreflect.Message { method Descriptor (line 84) | func (*KeyTypeEntry) Descriptor() ([]byte, []int) { method GetPrimitiveName (line 88) | func (x *KeyTypeEntry) GetPrimitiveName() string { method GetTypeUrl (line 95) | func (x *KeyTypeEntry) GetTypeUrl() string { method GetKeyManagerVersion (line 102) | func (x *KeyTypeEntry) GetKeyManagerVersion() uint32 { method GetNewKeyAllowed (line 109) | func (x *KeyTypeEntry) GetNewKeyAllowed() bool { method GetCatalogueName (line 116) | func (x *KeyTypeEntry) GetCatalogueName() string { type RegistryConfig (line 128) | type RegistryConfig struct method Reset (line 136) | func (x *RegistryConfig) Reset() { method String (line 143) | func (x *RegistryConfig) String() string { method ProtoMessage (line 147) | func (*RegistryConfig) ProtoMessage() {} method ProtoReflect (line 149) | func (x *RegistryConfig) ProtoReflect() protoreflect.Message { method Descriptor (line 162) | func (*RegistryConfig) Descriptor() ([]byte, []int) { method GetConfigName (line 166) | func (x *RegistryConfig) GetConfigName() string { method GetEntry (line 173) | func (x *RegistryConfig) GetEntry() []*KeyTypeEntry { constant file_config_proto_rawDesc (line 182) | file_config_proto_rawDesc = "" + function file_config_proto_rawDescGZIP (line 202) | func file_config_proto_rawDescGZIP() []byte { function init (line 223) | func init() { file_config_proto_init() } function file_config_proto_init (line 224) | func file_config_proto_init() { FILE: proto/ecdsa_go_proto/ecdsa.pb.go constant _ (line 38) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 40) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type EcdsaSignatureEncoding (line 43) | type EcdsaSignatureEncoding method Enum (line 75) | func (x EcdsaSignatureEncoding) Enum() *EcdsaSignatureEncoding { method String (line 81) | func (x EcdsaSignatureEncoding) String() string { method Descriptor (line 85) | func (EcdsaSignatureEncoding) Descriptor() protoreflect.EnumDescriptor { method Type (line 89) | func (EcdsaSignatureEncoding) Type() protoreflect.EnumType { method Number (line 93) | func (x EcdsaSignatureEncoding) Number() protoreflect.EnumNumber { method EnumDescriptor (line 98) | func (EcdsaSignatureEncoding) EnumDescriptor() ([]byte, []int) { constant EcdsaSignatureEncoding_UNKNOWN_ENCODING (line 46) | EcdsaSignatureEncoding_UNKNOWN_ENCODING EcdsaSignatureEncoding = 0 constant EcdsaSignatureEncoding_IEEE_P1363 (line 50) | EcdsaSignatureEncoding_IEEE_P1363 EcdsaSignatureEncoding = 1 constant EcdsaSignatureEncoding_DER (line 58) | EcdsaSignatureEncoding_DER EcdsaSignatureEncoding = 2 type EcdsaParams (line 103) | type EcdsaParams struct method Reset (line 115) | func (x *EcdsaParams) Reset() { method String (line 122) | func (x *EcdsaParams) String() string { method ProtoMessage (line 126) | func (*EcdsaParams) ProtoMessage() {} method ProtoReflect (line 128) | func (x *EcdsaParams) ProtoReflect() protoreflect.Message { method Descriptor (line 141) | func (*EcdsaParams) Descriptor() ([]byte, []int) { method GetHashType (line 145) | func (x *EcdsaParams) GetHashType() common_go_proto.HashType { method GetCurve (line 152) | func (x *EcdsaParams) GetCurve() common_go_proto.EllipticCurveType { method GetEncoding (line 159) | func (x *EcdsaParams) GetEncoding() EcdsaSignatureEncoding { type EcdsaPublicKey (line 167) | type EcdsaPublicKey struct method Reset (line 185) | func (x *EcdsaPublicKey) Reset() { method String (line 192) | func (x *EcdsaPublicKey) String() string { method ProtoMessage (line 196) | func (*EcdsaPublicKey) ProtoMessage() {} method ProtoReflect (line 198) | func (x *EcdsaPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 211) | func (*EcdsaPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 215) | func (x *EcdsaPublicKey) GetVersion() uint32 { method GetParams (line 222) | func (x *EcdsaPublicKey) GetParams() *EcdsaParams { method GetX (line 229) | func (x *EcdsaPublicKey) GetX() []byte { method GetY (line 236) | func (x *EcdsaPublicKey) GetY() []byte { type EcdsaPrivateKey (line 244) | type EcdsaPrivateKey struct method Reset (line 257) | func (x *EcdsaPrivateKey) Reset() { method String (line 264) | func (x *EcdsaPrivateKey) String() string { method ProtoMessage (line 268) | func (*EcdsaPrivateKey) ProtoMessage() {} method ProtoReflect (line 270) | func (x *EcdsaPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 283) | func (*EcdsaPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 287) | func (x *EcdsaPrivateKey) GetVersion() uint32 { method GetPublicKey (line 294) | func (x *EcdsaPrivateKey) GetPublicKey() *EcdsaPublicKey { method GetKeyValue (line 301) | func (x *EcdsaPrivateKey) GetKeyValue() []byte { type EcdsaKeyFormat (line 308) | type EcdsaKeyFormat struct method Reset (line 317) | func (x *EcdsaKeyFormat) Reset() { method String (line 324) | func (x *EcdsaKeyFormat) String() string { method ProtoMessage (line 328) | func (*EcdsaKeyFormat) ProtoMessage() {} method ProtoReflect (line 330) | func (x *EcdsaKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 343) | func (*EcdsaKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 347) | func (x *EcdsaKeyFormat) GetParams() *EcdsaParams { method GetVersion (line 354) | func (x *EcdsaKeyFormat) GetVersion() uint32 { constant file_ecdsa_proto_rawDesc (line 363) | file_ecdsa_proto_rawDesc = "" + function file_ecdsa_proto_rawDescGZIP (line 395) | func file_ecdsa_proto_rawDescGZIP() []byte { function init (line 427) | func init() { file_ecdsa_proto_init() } function file_ecdsa_proto_init (line 428) | func file_ecdsa_proto_init() { FILE: proto/ecies_aead_hkdf_go_proto/ecies_aead_hkdf.pb.go constant _ (line 39) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 41) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type EciesHkdfKemParams (line 45) | type EciesHkdfKemParams struct method Reset (line 57) | func (x *EciesHkdfKemParams) Reset() { method String (line 64) | func (x *EciesHkdfKemParams) String() string { method ProtoMessage (line 68) | func (*EciesHkdfKemParams) ProtoMessage() {} method ProtoReflect (line 70) | func (x *EciesHkdfKemParams) ProtoReflect() protoreflect.Message { method Descriptor (line 83) | func (*EciesHkdfKemParams) Descriptor() ([]byte, []int) { method GetCurveType (line 87) | func (x *EciesHkdfKemParams) GetCurveType() common_go_proto.EllipticCu... method GetHkdfHashType (line 94) | func (x *EciesHkdfKemParams) GetHkdfHashType() common_go_proto.HashType { method GetHkdfSalt (line 101) | func (x *EciesHkdfKemParams) GetHkdfSalt() []byte { type EciesAeadDemParams (line 109) | type EciesAeadDemParams struct method Reset (line 120) | func (x *EciesAeadDemParams) Reset() { method String (line 127) | func (x *EciesAeadDemParams) String() string { method ProtoMessage (line 131) | func (*EciesAeadDemParams) ProtoMessage() {} method ProtoReflect (line 133) | func (x *EciesAeadDemParams) ProtoReflect() protoreflect.Message { method Descriptor (line 146) | func (*EciesAeadDemParams) Descriptor() ([]byte, []int) { method GetAeadDem (line 150) | func (x *EciesAeadDemParams) GetAeadDem() *tink_go_proto.KeyTemplate { type EciesAeadHkdfParams (line 157) | type EciesAeadHkdfParams struct method Reset (line 172) | func (x *EciesAeadHkdfParams) Reset() { method String (line 179) | func (x *EciesAeadHkdfParams) String() string { method ProtoMessage (line 183) | func (*EciesAeadHkdfParams) ProtoMessage() {} method ProtoReflect (line 185) | func (x *EciesAeadHkdfParams) ProtoReflect() protoreflect.Message { method Descriptor (line 198) | func (*EciesAeadHkdfParams) Descriptor() ([]byte, []int) { method GetKemParams (line 202) | func (x *EciesAeadHkdfParams) GetKemParams() *EciesHkdfKemParams { method GetDemParams (line 209) | func (x *EciesAeadHkdfParams) GetDemParams() *EciesAeadDemParams { method GetEcPointFormat (line 216) | func (x *EciesAeadHkdfParams) GetEcPointFormat() common_go_proto.EcPoi... type EciesAeadHkdfPublicKey (line 225) | type EciesAeadHkdfPublicKey struct method Reset (line 241) | func (x *EciesAeadHkdfPublicKey) Reset() { method String (line 248) | func (x *EciesAeadHkdfPublicKey) String() string { method ProtoMessage (line 252) | func (*EciesAeadHkdfPublicKey) ProtoMessage() {} method ProtoReflect (line 254) | func (x *EciesAeadHkdfPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 267) | func (*EciesAeadHkdfPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 271) | func (x *EciesAeadHkdfPublicKey) GetVersion() uint32 { method GetParams (line 278) | func (x *EciesAeadHkdfPublicKey) GetParams() *EciesAeadHkdfParams { method GetX (line 285) | func (x *EciesAeadHkdfPublicKey) GetX() []byte { method GetY (line 292) | func (x *EciesAeadHkdfPublicKey) GetY() []byte { type EciesAeadHkdfPrivateKey (line 301) | type EciesAeadHkdfPrivateKey struct method Reset (line 313) | func (x *EciesAeadHkdfPrivateKey) Reset() { method String (line 320) | func (x *EciesAeadHkdfPrivateKey) String() string { method ProtoMessage (line 324) | func (*EciesAeadHkdfPrivateKey) ProtoMessage() {} method ProtoReflect (line 326) | func (x *EciesAeadHkdfPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 339) | func (*EciesAeadHkdfPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 343) | func (x *EciesAeadHkdfPrivateKey) GetVersion() uint32 { method GetPublicKey (line 350) | func (x *EciesAeadHkdfPrivateKey) GetPublicKey() *EciesAeadHkdfPublicK... method GetKeyValue (line 357) | func (x *EciesAeadHkdfPrivateKey) GetKeyValue() []byte { type EciesAeadHkdfKeyFormat (line 364) | type EciesAeadHkdfKeyFormat struct method Reset (line 372) | func (x *EciesAeadHkdfKeyFormat) Reset() { method String (line 379) | func (x *EciesAeadHkdfKeyFormat) String() string { method ProtoMessage (line 383) | func (*EciesAeadHkdfKeyFormat) ProtoMessage() {} method ProtoReflect (line 385) | func (x *EciesAeadHkdfKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 398) | func (*EciesAeadHkdfKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 402) | func (x *EciesAeadHkdfKeyFormat) GetParams() *EciesAeadHkdfParams { constant file_ecies_aead_hkdf_proto_rawDesc (line 411) | file_ecies_aead_hkdf_proto_rawDesc = "" + function file_ecies_aead_hkdf_proto_rawDescGZIP (line 446) | func file_ecies_aead_hkdf_proto_rawDescGZIP() []byte { function init (line 483) | func init() { file_ecies_aead_hkdf_proto_init() } function file_ecies_aead_hkdf_proto_init (line 484) | func file_ecies_aead_hkdf_proto_init() { FILE: proto/ed25519_go_proto/ed25519.pb.go constant _ (line 39) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 41) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Ed25519KeyFormat (line 44) | type Ed25519KeyFormat struct method Reset (line 51) | func (x *Ed25519KeyFormat) Reset() { method String (line 58) | func (x *Ed25519KeyFormat) String() string { method ProtoMessage (line 62) | func (*Ed25519KeyFormat) ProtoMessage() {} method ProtoReflect (line 64) | func (x *Ed25519KeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 77) | func (*Ed25519KeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 81) | func (x *Ed25519KeyFormat) GetVersion() uint32 { type Ed25519PublicKey (line 89) | type Ed25519PublicKey struct method Reset (line 101) | func (x *Ed25519PublicKey) Reset() { method String (line 108) | func (x *Ed25519PublicKey) String() string { method ProtoMessage (line 112) | func (*Ed25519PublicKey) ProtoMessage() {} method ProtoReflect (line 114) | func (x *Ed25519PublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 127) | func (*Ed25519PublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 131) | func (x *Ed25519PublicKey) GetVersion() uint32 { method GetKeyValue (line 138) | func (x *Ed25519PublicKey) GetKeyValue() []byte { type Ed25519PrivateKey (line 146) | type Ed25519PrivateKey struct method Reset (line 160) | func (x *Ed25519PrivateKey) Reset() { method String (line 167) | func (x *Ed25519PrivateKey) String() string { method ProtoMessage (line 171) | func (*Ed25519PrivateKey) ProtoMessage() {} method ProtoReflect (line 173) | func (x *Ed25519PrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 186) | func (*Ed25519PrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 190) | func (x *Ed25519PrivateKey) GetVersion() uint32 { method GetKeyValue (line 197) | func (x *Ed25519PrivateKey) GetKeyValue() []byte { method GetPublicKey (line 204) | func (x *Ed25519PrivateKey) GetPublicKey() *Ed25519PublicKey { constant file_ed25519_proto_rawDesc (line 213) | file_ed25519_proto_rawDesc = "" + function file_ed25519_proto_rawDescGZIP (line 233) | func file_ed25519_proto_rawDescGZIP() []byte { function init (line 255) | func init() { file_ed25519_proto_init() } function file_ed25519_proto_init (line 256) | func file_ed25519_proto_init() { FILE: proto/empty_go_proto/empty.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type Empty (line 40) | type Empty struct method Reset (line 46) | func (x *Empty) Reset() { method String (line 53) | func (x *Empty) String() string { method ProtoMessage (line 57) | func (*Empty) ProtoMessage() {} method ProtoReflect (line 59) | func (x *Empty) ProtoReflect() protoreflect.Message { method Descriptor (line 72) | func (*Empty) Descriptor() ([]byte, []int) { constant file_empty_proto_rawDesc (line 78) | file_empty_proto_rawDesc = "" + function file_empty_proto_rawDescGZIP (line 89) | func file_empty_proto_rawDescGZIP() []byte { function init (line 108) | func init() { file_empty_proto_init() } function file_empty_proto_init (line 109) | func file_empty_proto_init() { FILE: proto/hkdf_prf_go_proto/hkdf_prf.pb.go constant _ (line 36) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 38) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HkdfPrfParams (line 41) | type HkdfPrfParams struct method Reset (line 55) | func (x *HkdfPrfParams) Reset() { method String (line 62) | func (x *HkdfPrfParams) String() string { method ProtoMessage (line 66) | func (*HkdfPrfParams) ProtoMessage() {} method ProtoReflect (line 68) | func (x *HkdfPrfParams) ProtoReflect() protoreflect.Message { method Descriptor (line 81) | func (*HkdfPrfParams) Descriptor() ([]byte, []int) { method GetHash (line 85) | func (x *HkdfPrfParams) GetHash() common_go_proto.HashType { method GetSalt (line 92) | func (x *HkdfPrfParams) GetSalt() []byte { type HkdfPrfKey (line 99) | type HkdfPrfKey struct method Reset (line 108) | func (x *HkdfPrfKey) Reset() { method String (line 115) | func (x *HkdfPrfKey) String() string { method ProtoMessage (line 119) | func (*HkdfPrfKey) ProtoMessage() {} method ProtoReflect (line 121) | func (x *HkdfPrfKey) ProtoReflect() protoreflect.Message { method Descriptor (line 134) | func (*HkdfPrfKey) Descriptor() ([]byte, []int) { method GetVersion (line 138) | func (x *HkdfPrfKey) GetVersion() uint32 { method GetParams (line 145) | func (x *HkdfPrfKey) GetParams() *HkdfPrfParams { method GetKeyValue (line 152) | func (x *HkdfPrfKey) GetKeyValue() []byte { type HkdfPrfKeyFormat (line 159) | type HkdfPrfKeyFormat struct method Reset (line 168) | func (x *HkdfPrfKeyFormat) Reset() { method String (line 175) | func (x *HkdfPrfKeyFormat) String() string { method ProtoMessage (line 179) | func (*HkdfPrfKeyFormat) ProtoMessage() {} method ProtoReflect (line 181) | func (x *HkdfPrfKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 194) | func (*HkdfPrfKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 198) | func (x *HkdfPrfKeyFormat) GetParams() *HkdfPrfParams { method GetKeySize (line 205) | func (x *HkdfPrfKeyFormat) GetKeySize() uint32 { method GetVersion (line 212) | func (x *HkdfPrfKeyFormat) GetVersion() uint32 { constant file_hkdf_prf_proto_rawDesc (line 221) | file_hkdf_prf_proto_rawDesc = "" + function file_hkdf_prf_proto_rawDescGZIP (line 243) | func file_hkdf_prf_proto_rawDescGZIP() []byte { function init (line 268) | func init() { file_hkdf_prf_proto_init() } function file_hkdf_prf_proto_init (line 269) | func file_hkdf_prf_proto_init() { FILE: proto/hmac_go_proto/hmac.pb.go constant _ (line 36) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 38) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HmacParams (line 41) | type HmacParams struct method Reset (line 49) | func (x *HmacParams) Reset() { method String (line 56) | func (x *HmacParams) String() string { method ProtoMessage (line 60) | func (*HmacParams) ProtoMessage() {} method ProtoReflect (line 62) | func (x *HmacParams) ProtoReflect() protoreflect.Message { method Descriptor (line 75) | func (*HmacParams) Descriptor() ([]byte, []int) { method GetHash (line 79) | func (x *HmacParams) GetHash() common_go_proto.HashType { method GetTagSize (line 86) | func (x *HmacParams) GetTagSize() uint32 { type HmacKey (line 94) | type HmacKey struct method Reset (line 103) | func (x *HmacKey) Reset() { method String (line 110) | func (x *HmacKey) String() string { method ProtoMessage (line 114) | func (*HmacKey) ProtoMessage() {} method ProtoReflect (line 116) | func (x *HmacKey) ProtoReflect() protoreflect.Message { method Descriptor (line 129) | func (*HmacKey) Descriptor() ([]byte, []int) { method GetVersion (line 133) | func (x *HmacKey) GetVersion() uint32 { method GetParams (line 140) | func (x *HmacKey) GetParams() *HmacParams { method GetKeyValue (line 147) | func (x *HmacKey) GetKeyValue() []byte { type HmacKeyFormat (line 154) | type HmacKeyFormat struct method Reset (line 163) | func (x *HmacKeyFormat) Reset() { method String (line 170) | func (x *HmacKeyFormat) String() string { method ProtoMessage (line 174) | func (*HmacKeyFormat) ProtoMessage() {} method ProtoReflect (line 176) | func (x *HmacKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 189) | func (*HmacKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 193) | func (x *HmacKeyFormat) GetParams() *HmacParams { method GetKeySize (line 200) | func (x *HmacKeyFormat) GetKeySize() uint32 { method GetVersion (line 207) | func (x *HmacKeyFormat) GetVersion() uint32 { constant file_hmac_proto_rawDesc (line 216) | file_hmac_proto_rawDesc = "" + function file_hmac_proto_rawDescGZIP (line 239) | func file_hmac_proto_rawDescGZIP() []byte { function init (line 264) | func init() { file_hmac_proto_init() } function file_hmac_proto_init (line 265) | func file_hmac_proto_init() { FILE: proto/hmac_prf_go_proto/hmac_prf.pb.go constant _ (line 36) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 38) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HmacPrfParams (line 41) | type HmacPrfParams struct method Reset (line 48) | func (x *HmacPrfParams) Reset() { method String (line 55) | func (x *HmacPrfParams) String() string { method ProtoMessage (line 59) | func (*HmacPrfParams) ProtoMessage() {} method ProtoReflect (line 61) | func (x *HmacPrfParams) ProtoReflect() protoreflect.Message { method Descriptor (line 74) | func (*HmacPrfParams) Descriptor() ([]byte, []int) { method GetHash (line 78) | func (x *HmacPrfParams) GetHash() common_go_proto.HashType { type HmacPrfKey (line 86) | type HmacPrfKey struct method Reset (line 95) | func (x *HmacPrfKey) Reset() { method String (line 102) | func (x *HmacPrfKey) String() string { method ProtoMessage (line 106) | func (*HmacPrfKey) ProtoMessage() {} method ProtoReflect (line 108) | func (x *HmacPrfKey) ProtoReflect() protoreflect.Message { method Descriptor (line 121) | func (*HmacPrfKey) Descriptor() ([]byte, []int) { method GetVersion (line 125) | func (x *HmacPrfKey) GetVersion() uint32 { method GetParams (line 132) | func (x *HmacPrfKey) GetParams() *HmacPrfParams { method GetKeyValue (line 139) | func (x *HmacPrfKey) GetKeyValue() []byte { type HmacPrfKeyFormat (line 146) | type HmacPrfKeyFormat struct method Reset (line 155) | func (x *HmacPrfKeyFormat) Reset() { method String (line 162) | func (x *HmacPrfKeyFormat) String() string { method ProtoMessage (line 166) | func (*HmacPrfKeyFormat) ProtoMessage() {} method ProtoReflect (line 168) | func (x *HmacPrfKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 181) | func (*HmacPrfKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 185) | func (x *HmacPrfKeyFormat) GetParams() *HmacPrfParams { method GetKeySize (line 192) | func (x *HmacPrfKeyFormat) GetKeySize() uint32 { method GetVersion (line 199) | func (x *HmacPrfKeyFormat) GetVersion() uint32 { constant file_hmac_prf_proto_rawDesc (line 208) | file_hmac_prf_proto_rawDesc = "" + function file_hmac_prf_proto_rawDescGZIP (line 229) | func file_hmac_prf_proto_rawDescGZIP() []byte { function init (line 254) | func init() { file_hmac_prf_proto_init() } function file_hmac_prf_proto_init (line 255) | func file_hmac_prf_proto_init() { FILE: proto/hpke_go_proto/hpke.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type HpkeKem (line 40) | type HpkeKem method Enum (line 83) | func (x HpkeKem) Enum() *HpkeKem { method String (line 89) | func (x HpkeKem) String() string { method Descriptor (line 93) | func (HpkeKem) Descriptor() protoreflect.EnumDescriptor { method Type (line 97) | func (HpkeKem) Type() protoreflect.EnumType { method Number (line 101) | func (x HpkeKem) Number() protoreflect.EnumNumber { method EnumDescriptor (line 106) | func (HpkeKem) EnumDescriptor() ([]byte, []int) { constant HpkeKem_KEM_UNKNOWN (line 43) | HpkeKem_KEM_UNKNOWN HpkeKem = 0 constant HpkeKem_DHKEM_X25519_HKDF_SHA256 (line 44) | HpkeKem_DHKEM_X25519_HKDF_SHA256 HpkeKem = 1 constant HpkeKem_DHKEM_P256_HKDF_SHA256 (line 45) | HpkeKem_DHKEM_P256_HKDF_SHA256 HpkeKem = 2 constant HpkeKem_DHKEM_P384_HKDF_SHA384 (line 46) | HpkeKem_DHKEM_P384_HKDF_SHA384 HpkeKem = 3 constant HpkeKem_DHKEM_P521_HKDF_SHA512 (line 47) | HpkeKem_DHKEM_P521_HKDF_SHA512 HpkeKem = 4 constant HpkeKem_X_WING (line 50) | HpkeKem_X_WING HpkeKem = 5 constant HpkeKem_ML_KEM768 (line 53) | HpkeKem_ML_KEM768 HpkeKem = 6 constant HpkeKem_ML_KEM1024 (line 56) | HpkeKem_ML_KEM1024 HpkeKem = 7 type HpkeKdf (line 110) | type HpkeKdf method Enum (line 135) | func (x HpkeKdf) Enum() *HpkeKdf { method String (line 141) | func (x HpkeKdf) String() string { method Descriptor (line 145) | func (HpkeKdf) Descriptor() protoreflect.EnumDescriptor { method Type (line 149) | func (HpkeKdf) Type() protoreflect.EnumType { method Number (line 153) | func (x HpkeKdf) Number() protoreflect.EnumNumber { method EnumDescriptor (line 158) | func (HpkeKdf) EnumDescriptor() ([]byte, []int) { constant HpkeKdf_KDF_UNKNOWN (line 113) | HpkeKdf_KDF_UNKNOWN HpkeKdf = 0 constant HpkeKdf_HKDF_SHA256 (line 114) | HpkeKdf_HKDF_SHA256 HpkeKdf = 1 constant HpkeKdf_HKDF_SHA384 (line 115) | HpkeKdf_HKDF_SHA384 HpkeKdf = 2 constant HpkeKdf_HKDF_SHA512 (line 116) | HpkeKdf_HKDF_SHA512 HpkeKdf = 3 type HpkeAead (line 162) | type HpkeAead method Enum (line 187) | func (x HpkeAead) Enum() *HpkeAead { method String (line 193) | func (x HpkeAead) String() string { method Descriptor (line 197) | func (HpkeAead) Descriptor() protoreflect.EnumDescriptor { method Type (line 201) | func (HpkeAead) Type() protoreflect.EnumType { method Number (line 205) | func (x HpkeAead) Number() protoreflect.EnumNumber { method EnumDescriptor (line 210) | func (HpkeAead) EnumDescriptor() ([]byte, []int) { constant HpkeAead_AEAD_UNKNOWN (line 165) | HpkeAead_AEAD_UNKNOWN HpkeAead = 0 constant HpkeAead_AES_128_GCM (line 166) | HpkeAead_AES_128_GCM HpkeAead = 1 constant HpkeAead_AES_256_GCM (line 167) | HpkeAead_AES_256_GCM HpkeAead = 2 constant HpkeAead_CHACHA20_POLY1305 (line 168) | HpkeAead_CHACHA20_POLY1305 HpkeAead = 3 type HpkeParams (line 214) | type HpkeParams struct method Reset (line 223) | func (x *HpkeParams) Reset() { method String (line 230) | func (x *HpkeParams) String() string { method ProtoMessage (line 234) | func (*HpkeParams) ProtoMessage() {} method ProtoReflect (line 236) | func (x *HpkeParams) ProtoReflect() protoreflect.Message { method Descriptor (line 249) | func (*HpkeParams) Descriptor() ([]byte, []int) { method GetKem (line 253) | func (x *HpkeParams) GetKem() HpkeKem { method GetKdf (line 260) | func (x *HpkeParams) GetKdf() HpkeKdf { method GetAead (line 267) | func (x *HpkeParams) GetAead() HpkeAead { type HpkePublicKey (line 274) | type HpkePublicKey struct method Reset (line 290) | func (x *HpkePublicKey) Reset() { method String (line 297) | func (x *HpkePublicKey) String() string { method ProtoMessage (line 301) | func (*HpkePublicKey) ProtoMessage() {} method ProtoReflect (line 303) | func (x *HpkePublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 316) | func (*HpkePublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 320) | func (x *HpkePublicKey) GetVersion() uint32 { method GetParams (line 327) | func (x *HpkePublicKey) GetParams() *HpkeParams { method GetPublicKey (line 334) | func (x *HpkePublicKey) GetPublicKey() []byte { type HpkePrivateKey (line 341) | type HpkePrivateKey struct method Reset (line 357) | func (x *HpkePrivateKey) Reset() { method String (line 364) | func (x *HpkePrivateKey) String() string { method ProtoMessage (line 368) | func (*HpkePrivateKey) ProtoMessage() {} method ProtoReflect (line 370) | func (x *HpkePrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 383) | func (*HpkePrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 387) | func (x *HpkePrivateKey) GetVersion() uint32 { method GetPublicKey (line 394) | func (x *HpkePrivateKey) GetPublicKey() *HpkePublicKey { method GetPrivateKey (line 401) | func (x *HpkePrivateKey) GetPrivateKey() []byte { type HpkeKeyFormat (line 408) | type HpkeKeyFormat struct method Reset (line 415) | func (x *HpkeKeyFormat) Reset() { method String (line 422) | func (x *HpkeKeyFormat) String() string { method ProtoMessage (line 426) | func (*HpkeKeyFormat) ProtoMessage() {} method ProtoReflect (line 428) | func (x *HpkeKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 441) | func (*HpkeKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 445) | func (x *HpkeKeyFormat) GetParams() *HpkeParams { constant file_hpke_proto_rawDesc (line 454) | file_hpke_proto_rawDesc = "" + function file_hpke_proto_rawDescGZIP (line 504) | func file_hpke_proto_rawDescGZIP() []byte { function init (line 536) | func init() { file_hpke_proto_init() } function file_hpke_proto_init (line 537) | func file_hpke_proto_init() { FILE: proto/jwt_ecdsa_go_proto/jwt_ecdsa.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type JwtEcdsaAlgorithm (line 41) | type JwtEcdsaAlgorithm method Enum (line 66) | func (x JwtEcdsaAlgorithm) Enum() *JwtEcdsaAlgorithm { method String (line 72) | func (x JwtEcdsaAlgorithm) String() string { method Descriptor (line 76) | func (JwtEcdsaAlgorithm) Descriptor() protoreflect.EnumDescriptor { method Type (line 80) | func (JwtEcdsaAlgorithm) Type() protoreflect.EnumType { method Number (line 84) | func (x JwtEcdsaAlgorithm) Number() protoreflect.EnumNumber { method EnumDescriptor (line 89) | func (JwtEcdsaAlgorithm) EnumDescriptor() ([]byte, []int) { constant JwtEcdsaAlgorithm_ES_UNKNOWN (line 44) | JwtEcdsaAlgorithm_ES_UNKNOWN JwtEcdsaAlgorithm = 0 constant JwtEcdsaAlgorithm_ES256 (line 45) | JwtEcdsaAlgorithm_ES256 JwtEcdsaAlgorithm = 1 constant JwtEcdsaAlgorithm_ES384 (line 46) | JwtEcdsaAlgorithm_ES384 JwtEcdsaAlgorithm = 2 constant JwtEcdsaAlgorithm_ES512 (line 47) | JwtEcdsaAlgorithm_ES512 JwtEcdsaAlgorithm = 3 type JwtEcdsaPublicKey (line 94) | type JwtEcdsaPublicKey struct method Reset (line 107) | func (x *JwtEcdsaPublicKey) Reset() { method String (line 114) | func (x *JwtEcdsaPublicKey) String() string { method ProtoMessage (line 118) | func (*JwtEcdsaPublicKey) ProtoMessage() {} method ProtoReflect (line 120) | func (x *JwtEcdsaPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 133) | func (*JwtEcdsaPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 137) | func (x *JwtEcdsaPublicKey) GetVersion() uint32 { method GetAlgorithm (line 144) | func (x *JwtEcdsaPublicKey) GetAlgorithm() JwtEcdsaAlgorithm { method GetX (line 151) | func (x *JwtEcdsaPublicKey) GetX() []byte { method GetY (line 158) | func (x *JwtEcdsaPublicKey) GetY() []byte { method GetCustomKid (line 165) | func (x *JwtEcdsaPublicKey) GetCustomKid() *JwtEcdsaPublicKey_CustomKid { type JwtEcdsaPrivateKey (line 173) | type JwtEcdsaPrivateKey struct method Reset (line 183) | func (x *JwtEcdsaPrivateKey) Reset() { method String (line 190) | func (x *JwtEcdsaPrivateKey) String() string { method ProtoMessage (line 194) | func (*JwtEcdsaPrivateKey) ProtoMessage() {} method ProtoReflect (line 196) | func (x *JwtEcdsaPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 209) | func (*JwtEcdsaPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 213) | func (x *JwtEcdsaPrivateKey) GetVersion() uint32 { method GetPublicKey (line 220) | func (x *JwtEcdsaPrivateKey) GetPublicKey() *JwtEcdsaPublicKey { method GetKeyValue (line 227) | func (x *JwtEcdsaPrivateKey) GetKeyValue() []byte { type JwtEcdsaKeyFormat (line 234) | type JwtEcdsaKeyFormat struct method Reset (line 242) | func (x *JwtEcdsaKeyFormat) Reset() { method String (line 249) | func (x *JwtEcdsaKeyFormat) String() string { method ProtoMessage (line 253) | func (*JwtEcdsaKeyFormat) ProtoMessage() {} method ProtoReflect (line 255) | func (x *JwtEcdsaKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 268) | func (*JwtEcdsaKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 272) | func (x *JwtEcdsaKeyFormat) GetVersion() uint32 { method GetAlgorithm (line 279) | func (x *JwtEcdsaKeyFormat) GetAlgorithm() JwtEcdsaAlgorithm { type JwtEcdsaPublicKey_CustomKid (line 288) | type JwtEcdsaPublicKey_CustomKid struct method Reset (line 295) | func (x *JwtEcdsaPublicKey_CustomKid) Reset() { method String (line 302) | func (x *JwtEcdsaPublicKey_CustomKid) String() string { method ProtoMessage (line 306) | func (*JwtEcdsaPublicKey_CustomKid) ProtoMessage() {} method ProtoReflect (line 308) | func (x *JwtEcdsaPublicKey_CustomKid) ProtoReflect() protoreflect.Mess... method Descriptor (line 321) | func (*JwtEcdsaPublicKey_CustomKid) Descriptor() ([]byte, []int) { method GetValue (line 325) | func (x *JwtEcdsaPublicKey_CustomKid) GetValue() string { constant file_jwt_ecdsa_proto_rawDesc (line 334) | file_jwt_ecdsa_proto_rawDesc = "" + function file_jwt_ecdsa_proto_rawDescGZIP (line 367) | func file_jwt_ecdsa_proto_rawDescGZIP() []byte { function init (line 395) | func init() { file_jwt_ecdsa_proto_init() } function file_jwt_ecdsa_proto_init (line 396) | func file_jwt_ecdsa_proto_init() { FILE: proto/jwt_hmac_go_proto/jwt_hmac.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type JwtHmacAlgorithm (line 41) | type JwtHmacAlgorithm method Enum (line 66) | func (x JwtHmacAlgorithm) Enum() *JwtHmacAlgorithm { method String (line 72) | func (x JwtHmacAlgorithm) String() string { method Descriptor (line 76) | func (JwtHmacAlgorithm) Descriptor() protoreflect.EnumDescriptor { method Type (line 80) | func (JwtHmacAlgorithm) Type() protoreflect.EnumType { method Number (line 84) | func (x JwtHmacAlgorithm) Number() protoreflect.EnumNumber { method EnumDescriptor (line 89) | func (JwtHmacAlgorithm) EnumDescriptor() ([]byte, []int) { constant JwtHmacAlgorithm_HS_UNKNOWN (line 44) | JwtHmacAlgorithm_HS_UNKNOWN JwtHmacAlgorithm = 0 constant JwtHmacAlgorithm_HS256 (line 45) | JwtHmacAlgorithm_HS256 JwtHmacAlgorithm = 1 constant JwtHmacAlgorithm_HS384 (line 46) | JwtHmacAlgorithm_HS384 JwtHmacAlgorithm = 2 constant JwtHmacAlgorithm_HS512 (line 47) | JwtHmacAlgorithm_HS512 JwtHmacAlgorithm = 3 type JwtHmacKey (line 94) | type JwtHmacKey struct method Reset (line 104) | func (x *JwtHmacKey) Reset() { method String (line 111) | func (x *JwtHmacKey) String() string { method ProtoMessage (line 115) | func (*JwtHmacKey) ProtoMessage() {} method ProtoReflect (line 117) | func (x *JwtHmacKey) ProtoReflect() protoreflect.Message { method Descriptor (line 130) | func (*JwtHmacKey) Descriptor() ([]byte, []int) { method GetVersion (line 134) | func (x *JwtHmacKey) GetVersion() uint32 { method GetAlgorithm (line 141) | func (x *JwtHmacKey) GetAlgorithm() JwtHmacAlgorithm { method GetKeyValue (line 148) | func (x *JwtHmacKey) GetKeyValue() []byte { method GetCustomKid (line 155) | func (x *JwtHmacKey) GetCustomKid() *JwtHmacKey_CustomKid { type JwtHmacKeyFormat (line 162) | type JwtHmacKeyFormat struct method Reset (line 171) | func (x *JwtHmacKeyFormat) Reset() { method String (line 178) | func (x *JwtHmacKeyFormat) String() string { method ProtoMessage (line 182) | func (*JwtHmacKeyFormat) ProtoMessage() {} method ProtoReflect (line 184) | func (x *JwtHmacKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 197) | func (*JwtHmacKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 201) | func (x *JwtHmacKeyFormat) GetVersion() uint32 { method GetAlgorithm (line 208) | func (x *JwtHmacKeyFormat) GetAlgorithm() JwtHmacAlgorithm { method GetKeySize (line 215) | func (x *JwtHmacKeyFormat) GetKeySize() uint32 { type JwtHmacKey_CustomKid (line 224) | type JwtHmacKey_CustomKid struct method Reset (line 231) | func (x *JwtHmacKey_CustomKid) Reset() { method String (line 238) | func (x *JwtHmacKey_CustomKid) String() string { method ProtoMessage (line 242) | func (*JwtHmacKey_CustomKid) ProtoMessage() {} method ProtoReflect (line 244) | func (x *JwtHmacKey_CustomKid) ProtoReflect() protoreflect.Message { method Descriptor (line 257) | func (*JwtHmacKey_CustomKid) Descriptor() ([]byte, []int) { method GetValue (line 261) | func (x *JwtHmacKey_CustomKid) GetValue() string { constant file_jwt_hmac_proto_rawDesc (line 270) | file_jwt_hmac_proto_rawDesc = "" + function file_jwt_hmac_proto_rawDescGZIP (line 299) | func file_jwt_hmac_proto_rawDescGZIP() []byte { function init (line 325) | func init() { file_jwt_hmac_proto_init() } function file_jwt_hmac_proto_init (line 326) | func file_jwt_hmac_proto_init() { FILE: proto/jwt_rsa_ssa_pkcs1_go_proto/jwt_rsa_ssa_pkcs1.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type JwtRsaSsaPkcs1Algorithm (line 41) | type JwtRsaSsaPkcs1Algorithm method Enum (line 66) | func (x JwtRsaSsaPkcs1Algorithm) Enum() *JwtRsaSsaPkcs1Algorithm { method String (line 72) | func (x JwtRsaSsaPkcs1Algorithm) String() string { method Descriptor (line 76) | func (JwtRsaSsaPkcs1Algorithm) Descriptor() protoreflect.EnumDescriptor { method Type (line 80) | func (JwtRsaSsaPkcs1Algorithm) Type() protoreflect.EnumType { method Number (line 84) | func (x JwtRsaSsaPkcs1Algorithm) Number() protoreflect.EnumNumber { method EnumDescriptor (line 89) | func (JwtRsaSsaPkcs1Algorithm) EnumDescriptor() ([]byte, []int) { constant JwtRsaSsaPkcs1Algorithm_RS_UNKNOWN (line 44) | JwtRsaSsaPkcs1Algorithm_RS_UNKNOWN JwtRsaSsaPkcs1Algorithm = 0 constant JwtRsaSsaPkcs1Algorithm_RS256 (line 45) | JwtRsaSsaPkcs1Algorithm_RS256 JwtRsaSsaPkcs1Algorithm = 1 constant JwtRsaSsaPkcs1Algorithm_RS384 (line 46) | JwtRsaSsaPkcs1Algorithm_RS384 JwtRsaSsaPkcs1Algorithm = 2 constant JwtRsaSsaPkcs1Algorithm_RS512 (line 47) | JwtRsaSsaPkcs1Algorithm_RS512 JwtRsaSsaPkcs1Algorithm = 3 type JwtRsaSsaPkcs1PublicKey (line 94) | type JwtRsaSsaPkcs1PublicKey struct method Reset (line 109) | func (x *JwtRsaSsaPkcs1PublicKey) Reset() { method String (line 116) | func (x *JwtRsaSsaPkcs1PublicKey) String() string { method ProtoMessage (line 120) | func (*JwtRsaSsaPkcs1PublicKey) ProtoMessage() {} method ProtoReflect (line 122) | func (x *JwtRsaSsaPkcs1PublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 135) | func (*JwtRsaSsaPkcs1PublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 139) | func (x *JwtRsaSsaPkcs1PublicKey) GetVersion() uint32 { method GetAlgorithm (line 146) | func (x *JwtRsaSsaPkcs1PublicKey) GetAlgorithm() JwtRsaSsaPkcs1Algorit... method GetN (line 153) | func (x *JwtRsaSsaPkcs1PublicKey) GetN() []byte { method GetE (line 160) | func (x *JwtRsaSsaPkcs1PublicKey) GetE() []byte { method GetCustomKid (line 167) | func (x *JwtRsaSsaPkcs1PublicKey) GetCustomKid() *JwtRsaSsaPkcs1Public... type JwtRsaSsaPkcs1PrivateKey (line 175) | type JwtRsaSsaPkcs1PrivateKey struct method Reset (line 202) | func (x *JwtRsaSsaPkcs1PrivateKey) Reset() { method String (line 209) | func (x *JwtRsaSsaPkcs1PrivateKey) String() string { method ProtoMessage (line 213) | func (*JwtRsaSsaPkcs1PrivateKey) ProtoMessage() {} method ProtoReflect (line 215) | func (x *JwtRsaSsaPkcs1PrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 228) | func (*JwtRsaSsaPkcs1PrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 232) | func (x *JwtRsaSsaPkcs1PrivateKey) GetVersion() uint32 { method GetPublicKey (line 239) | func (x *JwtRsaSsaPkcs1PrivateKey) GetPublicKey() *JwtRsaSsaPkcs1Publi... method GetD (line 246) | func (x *JwtRsaSsaPkcs1PrivateKey) GetD() []byte { method GetP (line 253) | func (x *JwtRsaSsaPkcs1PrivateKey) GetP() []byte { method GetQ (line 260) | func (x *JwtRsaSsaPkcs1PrivateKey) GetQ() []byte { method GetDp (line 267) | func (x *JwtRsaSsaPkcs1PrivateKey) GetDp() []byte { method GetDq (line 274) | func (x *JwtRsaSsaPkcs1PrivateKey) GetDq() []byte { method GetCrt (line 281) | func (x *JwtRsaSsaPkcs1PrivateKey) GetCrt() []byte { type JwtRsaSsaPkcs1KeyFormat (line 288) | type JwtRsaSsaPkcs1KeyFormat struct method Reset (line 298) | func (x *JwtRsaSsaPkcs1KeyFormat) Reset() { method String (line 305) | func (x *JwtRsaSsaPkcs1KeyFormat) String() string { method ProtoMessage (line 309) | func (*JwtRsaSsaPkcs1KeyFormat) ProtoMessage() {} method ProtoReflect (line 311) | func (x *JwtRsaSsaPkcs1KeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 324) | func (*JwtRsaSsaPkcs1KeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 328) | func (x *JwtRsaSsaPkcs1KeyFormat) GetVersion() uint32 { method GetAlgorithm (line 335) | func (x *JwtRsaSsaPkcs1KeyFormat) GetAlgorithm() JwtRsaSsaPkcs1Algorit... method GetModulusSizeInBits (line 342) | func (x *JwtRsaSsaPkcs1KeyFormat) GetModulusSizeInBits() uint32 { method GetPublicExponent (line 349) | func (x *JwtRsaSsaPkcs1KeyFormat) GetPublicExponent() []byte { type JwtRsaSsaPkcs1PublicKey_CustomKid (line 358) | type JwtRsaSsaPkcs1PublicKey_CustomKid struct method Reset (line 365) | func (x *JwtRsaSsaPkcs1PublicKey_CustomKid) Reset() { method String (line 372) | func (x *JwtRsaSsaPkcs1PublicKey_CustomKid) String() string { method ProtoMessage (line 376) | func (*JwtRsaSsaPkcs1PublicKey_CustomKid) ProtoMessage() {} method ProtoReflect (line 378) | func (x *JwtRsaSsaPkcs1PublicKey_CustomKid) ProtoReflect() protoreflec... method Descriptor (line 391) | func (*JwtRsaSsaPkcs1PublicKey_CustomKid) Descriptor() ([]byte, []int) { method GetValue (line 395) | func (x *JwtRsaSsaPkcs1PublicKey_CustomKid) GetValue() string { constant file_jwt_rsa_ssa_pkcs1_proto_rawDesc (line 404) | file_jwt_rsa_ssa_pkcs1_proto_rawDesc = "" + function file_jwt_rsa_ssa_pkcs1_proto_rawDescGZIP (line 444) | func file_jwt_rsa_ssa_pkcs1_proto_rawDescGZIP() []byte { function init (line 472) | func init() { file_jwt_rsa_ssa_pkcs1_proto_init() } function file_jwt_rsa_ssa_pkcs1_proto_init (line 473) | func file_jwt_rsa_ssa_pkcs1_proto_init() { FILE: proto/jwt_rsa_ssa_pss_go_proto/jwt_rsa_ssa_pss.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type JwtRsaSsaPssAlgorithm (line 41) | type JwtRsaSsaPssAlgorithm method Enum (line 66) | func (x JwtRsaSsaPssAlgorithm) Enum() *JwtRsaSsaPssAlgorithm { method String (line 72) | func (x JwtRsaSsaPssAlgorithm) String() string { method Descriptor (line 76) | func (JwtRsaSsaPssAlgorithm) Descriptor() protoreflect.EnumDescriptor { method Type (line 80) | func (JwtRsaSsaPssAlgorithm) Type() protoreflect.EnumType { method Number (line 84) | func (x JwtRsaSsaPssAlgorithm) Number() protoreflect.EnumNumber { method EnumDescriptor (line 89) | func (JwtRsaSsaPssAlgorithm) EnumDescriptor() ([]byte, []int) { constant JwtRsaSsaPssAlgorithm_PS_UNKNOWN (line 44) | JwtRsaSsaPssAlgorithm_PS_UNKNOWN JwtRsaSsaPssAlgorithm = 0 constant JwtRsaSsaPssAlgorithm_PS256 (line 45) | JwtRsaSsaPssAlgorithm_PS256 JwtRsaSsaPssAlgorithm = 1 constant JwtRsaSsaPssAlgorithm_PS384 (line 46) | JwtRsaSsaPssAlgorithm_PS384 JwtRsaSsaPssAlgorithm = 2 constant JwtRsaSsaPssAlgorithm_PS512 (line 47) | JwtRsaSsaPssAlgorithm_PS512 JwtRsaSsaPssAlgorithm = 3 type JwtRsaSsaPssPublicKey (line 94) | type JwtRsaSsaPssPublicKey struct method Reset (line 109) | func (x *JwtRsaSsaPssPublicKey) Reset() { method String (line 116) | func (x *JwtRsaSsaPssPublicKey) String() string { method ProtoMessage (line 120) | func (*JwtRsaSsaPssPublicKey) ProtoMessage() {} method ProtoReflect (line 122) | func (x *JwtRsaSsaPssPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 135) | func (*JwtRsaSsaPssPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 139) | func (x *JwtRsaSsaPssPublicKey) GetVersion() uint32 { method GetAlgorithm (line 146) | func (x *JwtRsaSsaPssPublicKey) GetAlgorithm() JwtRsaSsaPssAlgorithm { method GetN (line 153) | func (x *JwtRsaSsaPssPublicKey) GetN() []byte { method GetE (line 160) | func (x *JwtRsaSsaPssPublicKey) GetE() []byte { method GetCustomKid (line 167) | func (x *JwtRsaSsaPssPublicKey) GetCustomKid() *JwtRsaSsaPssPublicKey_... type JwtRsaSsaPssPrivateKey (line 175) | type JwtRsaSsaPssPrivateKey struct method Reset (line 202) | func (x *JwtRsaSsaPssPrivateKey) Reset() { method String (line 209) | func (x *JwtRsaSsaPssPrivateKey) String() string { method ProtoMessage (line 213) | func (*JwtRsaSsaPssPrivateKey) ProtoMessage() {} method ProtoReflect (line 215) | func (x *JwtRsaSsaPssPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 228) | func (*JwtRsaSsaPssPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 232) | func (x *JwtRsaSsaPssPrivateKey) GetVersion() uint32 { method GetPublicKey (line 239) | func (x *JwtRsaSsaPssPrivateKey) GetPublicKey() *JwtRsaSsaPssPublicKey { method GetD (line 246) | func (x *JwtRsaSsaPssPrivateKey) GetD() []byte { method GetP (line 253) | func (x *JwtRsaSsaPssPrivateKey) GetP() []byte { method GetQ (line 260) | func (x *JwtRsaSsaPssPrivateKey) GetQ() []byte { method GetDp (line 267) | func (x *JwtRsaSsaPssPrivateKey) GetDp() []byte { method GetDq (line 274) | func (x *JwtRsaSsaPssPrivateKey) GetDq() []byte { method GetCrt (line 281) | func (x *JwtRsaSsaPssPrivateKey) GetCrt() []byte { type JwtRsaSsaPssKeyFormat (line 288) | type JwtRsaSsaPssKeyFormat struct method Reset (line 298) | func (x *JwtRsaSsaPssKeyFormat) Reset() { method String (line 305) | func (x *JwtRsaSsaPssKeyFormat) String() string { method ProtoMessage (line 309) | func (*JwtRsaSsaPssKeyFormat) ProtoMessage() {} method ProtoReflect (line 311) | func (x *JwtRsaSsaPssKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 324) | func (*JwtRsaSsaPssKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 328) | func (x *JwtRsaSsaPssKeyFormat) GetVersion() uint32 { method GetAlgorithm (line 335) | func (x *JwtRsaSsaPssKeyFormat) GetAlgorithm() JwtRsaSsaPssAlgorithm { method GetModulusSizeInBits (line 342) | func (x *JwtRsaSsaPssKeyFormat) GetModulusSizeInBits() uint32 { method GetPublicExponent (line 349) | func (x *JwtRsaSsaPssKeyFormat) GetPublicExponent() []byte { type JwtRsaSsaPssPublicKey_CustomKid (line 358) | type JwtRsaSsaPssPublicKey_CustomKid struct method Reset (line 365) | func (x *JwtRsaSsaPssPublicKey_CustomKid) Reset() { method String (line 372) | func (x *JwtRsaSsaPssPublicKey_CustomKid) String() string { method ProtoMessage (line 376) | func (*JwtRsaSsaPssPublicKey_CustomKid) ProtoMessage() {} method ProtoReflect (line 378) | func (x *JwtRsaSsaPssPublicKey_CustomKid) ProtoReflect() protoreflect.... method Descriptor (line 391) | func (*JwtRsaSsaPssPublicKey_CustomKid) Descriptor() ([]byte, []int) { method GetValue (line 395) | func (x *JwtRsaSsaPssPublicKey_CustomKid) GetValue() string { constant file_jwt_rsa_ssa_pss_proto_rawDesc (line 404) | file_jwt_rsa_ssa_pss_proto_rawDesc = "" + function file_jwt_rsa_ssa_pss_proto_rawDescGZIP (line 444) | func file_jwt_rsa_ssa_pss_proto_rawDescGZIP() []byte { function init (line 472) | func init() { file_jwt_rsa_ssa_pss_proto_init() } function file_jwt_rsa_ssa_pss_proto_init (line 473) | func file_jwt_rsa_ssa_pss_proto_init() { FILE: proto/kms_aead_go_proto/kms_aead.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type KmsAeadKeyFormat (line 40) | type KmsAeadKeyFormat struct method Reset (line 53) | func (x *KmsAeadKeyFormat) Reset() { method String (line 60) | func (x *KmsAeadKeyFormat) String() string { method ProtoMessage (line 64) | func (*KmsAeadKeyFormat) ProtoMessage() {} method ProtoReflect (line 66) | func (x *KmsAeadKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 79) | func (*KmsAeadKeyFormat) Descriptor() ([]byte, []int) { method GetKeyUri (line 83) | func (x *KmsAeadKeyFormat) GetKeyUri() string { type KmsAeadKey (line 91) | type KmsAeadKey struct method Reset (line 100) | func (x *KmsAeadKey) Reset() { method String (line 107) | func (x *KmsAeadKey) String() string { method ProtoMessage (line 111) | func (*KmsAeadKey) ProtoMessage() {} method ProtoReflect (line 113) | func (x *KmsAeadKey) ProtoReflect() protoreflect.Message { method Descriptor (line 126) | func (*KmsAeadKey) Descriptor() ([]byte, []int) { method GetVersion (line 130) | func (x *KmsAeadKey) GetVersion() uint32 { method GetParams (line 137) | func (x *KmsAeadKey) GetParams() *KmsAeadKeyFormat { constant file_kms_aead_proto_rawDesc (line 146) | file_kms_aead_proto_rawDesc = "" + function file_kms_aead_proto_rawDescGZIP (line 162) | func file_kms_aead_proto_rawDescGZIP() []byte { function init (line 183) | func init() { file_kms_aead_proto_init() } function file_kms_aead_proto_init (line 184) | func file_kms_aead_proto_init() { FILE: proto/kms_envelope_go_proto/kms_envelope.pb.go constant _ (line 36) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 38) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type KmsEnvelopeAeadKeyFormat (line 41) | type KmsEnvelopeAeadKeyFormat struct method Reset (line 57) | func (x *KmsEnvelopeAeadKeyFormat) Reset() { method String (line 64) | func (x *KmsEnvelopeAeadKeyFormat) String() string { method ProtoMessage (line 68) | func (*KmsEnvelopeAeadKeyFormat) ProtoMessage() {} method ProtoReflect (line 70) | func (x *KmsEnvelopeAeadKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 83) | func (*KmsEnvelopeAeadKeyFormat) Descriptor() ([]byte, []int) { method GetKekUri (line 87) | func (x *KmsEnvelopeAeadKeyFormat) GetKekUri() string { method GetDekTemplate (line 94) | func (x *KmsEnvelopeAeadKeyFormat) GetDekTemplate() *tink_go_proto.Key... type KmsEnvelopeAeadKey (line 102) | type KmsEnvelopeAeadKey struct method Reset (line 111) | func (x *KmsEnvelopeAeadKey) Reset() { method String (line 118) | func (x *KmsEnvelopeAeadKey) String() string { method ProtoMessage (line 122) | func (*KmsEnvelopeAeadKey) ProtoMessage() {} method ProtoReflect (line 124) | func (x *KmsEnvelopeAeadKey) ProtoReflect() protoreflect.Message { method Descriptor (line 137) | func (*KmsEnvelopeAeadKey) Descriptor() ([]byte, []int) { method GetVersion (line 141) | func (x *KmsEnvelopeAeadKey) GetVersion() uint32 { method GetParams (line 148) | func (x *KmsEnvelopeAeadKey) GetParams() *KmsEnvelopeAeadKeyFormat { constant file_kms_envelope_proto_rawDesc (line 157) | file_kms_envelope_proto_rawDesc = "" + function file_kms_envelope_proto_rawDescGZIP (line 173) | func file_kms_envelope_proto_rawDescGZIP() []byte { function init (line 196) | func init() { file_kms_envelope_proto_init() } function file_kms_envelope_proto_init (line 197) | func file_kms_envelope_proto_init() { FILE: proto/ml_dsa_go_proto/ml_dsa.pb.go constant _ (line 38) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 40) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type MlDsaInstance (line 44) | type MlDsaInstance method Enum (line 69) | func (x MlDsaInstance) Enum() *MlDsaInstance { method String (line 75) | func (x MlDsaInstance) String() string { method Descriptor (line 79) | func (MlDsaInstance) Descriptor() protoreflect.EnumDescriptor { method Type (line 83) | func (MlDsaInstance) Type() protoreflect.EnumType { method Number (line 87) | func (x MlDsaInstance) Number() protoreflect.EnumNumber { method EnumDescriptor (line 92) | func (MlDsaInstance) EnumDescriptor() ([]byte, []int) { constant MlDsaInstance_ML_DSA_UNKNOWN_INSTANCE (line 47) | MlDsaInstance_ML_DSA_UNKNOWN_INSTANCE MlDsaInstance = 0 constant MlDsaInstance_ML_DSA_65 (line 48) | MlDsaInstance_ML_DSA_65 MlDsaInstance = 1 constant MlDsaInstance_ML_DSA_87 (line 49) | MlDsaInstance_ML_DSA_87 MlDsaInstance = 2 constant MlDsaInstance_ML_DSA_44 (line 50) | MlDsaInstance_ML_DSA_44 MlDsaInstance = 3 type MlDsaParams (line 96) | type MlDsaParams struct method Reset (line 104) | func (x *MlDsaParams) Reset() { method String (line 111) | func (x *MlDsaParams) String() string { method ProtoMessage (line 115) | func (*MlDsaParams) ProtoMessage() {} method ProtoReflect (line 117) | func (x *MlDsaParams) ProtoReflect() protoreflect.Message { method Descriptor (line 130) | func (*MlDsaParams) Descriptor() ([]byte, []int) { method GetMlDsaInstance (line 134) | func (x *MlDsaParams) GetMlDsaInstance() MlDsaInstance { type MlDsaKeyFormat (line 141) | type MlDsaKeyFormat struct method Reset (line 151) | func (x *MlDsaKeyFormat) Reset() { method String (line 158) | func (x *MlDsaKeyFormat) String() string { method ProtoMessage (line 162) | func (*MlDsaKeyFormat) ProtoMessage() {} method ProtoReflect (line 164) | func (x *MlDsaKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 177) | func (*MlDsaKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 181) | func (x *MlDsaKeyFormat) GetVersion() uint32 { method GetParams (line 188) | func (x *MlDsaKeyFormat) GetParams() *MlDsaParams { type MlDsaPublicKey (line 196) | type MlDsaPublicKey struct method Reset (line 208) | func (x *MlDsaPublicKey) Reset() { method String (line 215) | func (x *MlDsaPublicKey) String() string { method ProtoMessage (line 219) | func (*MlDsaPublicKey) ProtoMessage() {} method ProtoReflect (line 221) | func (x *MlDsaPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 234) | func (*MlDsaPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 238) | func (x *MlDsaPublicKey) GetVersion() uint32 { method GetKeyValue (line 245) | func (x *MlDsaPublicKey) GetKeyValue() []byte { method GetParams (line 252) | func (x *MlDsaPublicKey) GetParams() *MlDsaParams { type MlDsaPrivateKey (line 260) | type MlDsaPrivateKey struct method Reset (line 273) | func (x *MlDsaPrivateKey) Reset() { method String (line 280) | func (x *MlDsaPrivateKey) String() string { method ProtoMessage (line 284) | func (*MlDsaPrivateKey) ProtoMessage() {} method ProtoReflect (line 286) | func (x *MlDsaPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 299) | func (*MlDsaPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 303) | func (x *MlDsaPrivateKey) GetVersion() uint32 { method GetKeyValue (line 310) | func (x *MlDsaPrivateKey) GetKeyValue() []byte { method GetPublicKey (line 317) | func (x *MlDsaPrivateKey) GetPublicKey() *MlDsaPublicKey { constant file_ml_dsa_proto_rawDesc (line 326) | file_ml_dsa_proto_rawDesc = "" + function file_ml_dsa_proto_rawDescGZIP (line 355) | func file_ml_dsa_proto_rawDescGZIP() []byte { function init (line 383) | func init() { file_ml_dsa_proto_init() } function file_ml_dsa_proto_init (line 384) | func file_ml_dsa_proto_init() { FILE: proto/prf_based_deriver_go_proto/prf_based_deriver.pb.go constant _ (line 36) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 38) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type PrfBasedDeriverParams (line 41) | type PrfBasedDeriverParams struct method Reset (line 48) | func (x *PrfBasedDeriverParams) Reset() { method String (line 55) | func (x *PrfBasedDeriverParams) String() string { method ProtoMessage (line 59) | func (*PrfBasedDeriverParams) ProtoMessage() {} method ProtoReflect (line 61) | func (x *PrfBasedDeriverParams) ProtoReflect() protoreflect.Message { method Descriptor (line 74) | func (*PrfBasedDeriverParams) Descriptor() ([]byte, []int) { method GetDerivedKeyTemplate (line 78) | func (x *PrfBasedDeriverParams) GetDerivedKeyTemplate() *tink_go_proto... type PrfBasedDeriverKeyFormat (line 85) | type PrfBasedDeriverKeyFormat struct method Reset (line 93) | func (x *PrfBasedDeriverKeyFormat) Reset() { method String (line 100) | func (x *PrfBasedDeriverKeyFormat) String() string { method ProtoMessage (line 104) | func (*PrfBasedDeriverKeyFormat) ProtoMessage() {} method ProtoReflect (line 106) | func (x *PrfBasedDeriverKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 119) | func (*PrfBasedDeriverKeyFormat) Descriptor() ([]byte, []int) { method GetPrfKeyTemplate (line 123) | func (x *PrfBasedDeriverKeyFormat) GetPrfKeyTemplate() *tink_go_proto.... method GetParams (line 130) | func (x *PrfBasedDeriverKeyFormat) GetParams() *PrfBasedDeriverParams { type PrfBasedDeriverKey (line 138) | type PrfBasedDeriverKey struct method Reset (line 147) | func (x *PrfBasedDeriverKey) Reset() { method String (line 154) | func (x *PrfBasedDeriverKey) String() string { method ProtoMessage (line 158) | func (*PrfBasedDeriverKey) ProtoMessage() {} method ProtoReflect (line 160) | func (x *PrfBasedDeriverKey) ProtoReflect() protoreflect.Message { method Descriptor (line 173) | func (*PrfBasedDeriverKey) Descriptor() ([]byte, []int) { method GetVersion (line 177) | func (x *PrfBasedDeriverKey) GetVersion() uint32 { method GetPrfKey (line 184) | func (x *PrfBasedDeriverKey) GetPrfKey() *tink_go_proto.KeyData { method GetParams (line 191) | func (x *PrfBasedDeriverKey) GetParams() *PrfBasedDeriverParams { constant file_prf_based_deriver_proto_rawDesc (line 200) | file_prf_based_deriver_proto_rawDesc = "" + function file_prf_based_deriver_proto_rawDescGZIP (line 219) | func file_prf_based_deriver_proto_rawDescGZIP() []byte { function init (line 247) | func init() { file_prf_based_deriver_proto_init() } function file_prf_based_deriver_proto_init (line 248) | func file_prf_based_deriver_proto_init() { FILE: proto/rsa_ssa_pkcs1_go_proto/rsa_ssa_pkcs1.pb.go constant _ (line 39) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 41) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type RsaSsaPkcs1Params (line 44) | type RsaSsaPkcs1Params struct method Reset (line 54) | func (x *RsaSsaPkcs1Params) Reset() { method String (line 61) | func (x *RsaSsaPkcs1Params) String() string { method ProtoMessage (line 65) | func (*RsaSsaPkcs1Params) ProtoMessage() {} method ProtoReflect (line 67) | func (x *RsaSsaPkcs1Params) ProtoReflect() protoreflect.Message { method Descriptor (line 80) | func (*RsaSsaPkcs1Params) Descriptor() ([]byte, []int) { method GetHashType (line 84) | func (x *RsaSsaPkcs1Params) GetHashType() common_go_proto.HashType { type RsaSsaPkcs1PublicKey (line 92) | type RsaSsaPkcs1PublicKey struct method Reset (line 108) | func (x *RsaSsaPkcs1PublicKey) Reset() { method String (line 115) | func (x *RsaSsaPkcs1PublicKey) String() string { method ProtoMessage (line 119) | func (*RsaSsaPkcs1PublicKey) ProtoMessage() {} method ProtoReflect (line 121) | func (x *RsaSsaPkcs1PublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 134) | func (*RsaSsaPkcs1PublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 138) | func (x *RsaSsaPkcs1PublicKey) GetVersion() uint32 { method GetParams (line 145) | func (x *RsaSsaPkcs1PublicKey) GetParams() *RsaSsaPkcs1Params { method GetN (line 152) | func (x *RsaSsaPkcs1PublicKey) GetN() []byte { method GetE (line 159) | func (x *RsaSsaPkcs1PublicKey) GetE() []byte { type RsaSsaPkcs1PrivateKey (line 167) | type RsaSsaPkcs1PrivateKey struct method Reset (line 202) | func (x *RsaSsaPkcs1PrivateKey) Reset() { method String (line 209) | func (x *RsaSsaPkcs1PrivateKey) String() string { method ProtoMessage (line 213) | func (*RsaSsaPkcs1PrivateKey) ProtoMessage() {} method ProtoReflect (line 215) | func (x *RsaSsaPkcs1PrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 228) | func (*RsaSsaPkcs1PrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 232) | func (x *RsaSsaPkcs1PrivateKey) GetVersion() uint32 { method GetPublicKey (line 239) | func (x *RsaSsaPkcs1PrivateKey) GetPublicKey() *RsaSsaPkcs1PublicKey { method GetD (line 246) | func (x *RsaSsaPkcs1PrivateKey) GetD() []byte { method GetP (line 253) | func (x *RsaSsaPkcs1PrivateKey) GetP() []byte { method GetQ (line 260) | func (x *RsaSsaPkcs1PrivateKey) GetQ() []byte { method GetDp (line 267) | func (x *RsaSsaPkcs1PrivateKey) GetDp() []byte { method GetDq (line 274) | func (x *RsaSsaPkcs1PrivateKey) GetDq() []byte { method GetCrt (line 281) | func (x *RsaSsaPkcs1PrivateKey) GetCrt() []byte { type RsaSsaPkcs1KeyFormat (line 288) | type RsaSsaPkcs1KeyFormat struct method Reset (line 300) | func (x *RsaSsaPkcs1KeyFormat) Reset() { method String (line 307) | func (x *RsaSsaPkcs1KeyFormat) String() string { method ProtoMessage (line 311) | func (*RsaSsaPkcs1KeyFormat) ProtoMessage() {} method ProtoReflect (line 313) | func (x *RsaSsaPkcs1KeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 326) | func (*RsaSsaPkcs1KeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 330) | func (x *RsaSsaPkcs1KeyFormat) GetParams() *RsaSsaPkcs1Params { method GetModulusSizeInBits (line 337) | func (x *RsaSsaPkcs1KeyFormat) GetModulusSizeInBits() uint32 { method GetPublicExponent (line 344) | func (x *RsaSsaPkcs1KeyFormat) GetPublicExponent() []byte { constant file_rsa_ssa_pkcs1_proto_rawDesc (line 353) | file_rsa_ssa_pkcs1_proto_rawDesc = "" + function file_rsa_ssa_pkcs1_proto_rawDescGZIP (line 384) | func file_rsa_ssa_pkcs1_proto_rawDescGZIP() []byte { function init (line 411) | func init() { file_rsa_ssa_pkcs1_proto_init() } function file_rsa_ssa_pkcs1_proto_init (line 412) | func file_rsa_ssa_pkcs1_proto_init() { FILE: proto/rsa_ssa_pss_go_proto/rsa_ssa_pss.pb.go constant _ (line 40) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 42) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type RsaSsaPssParams (line 45) | type RsaSsaPssParams struct method Reset (line 62) | func (x *RsaSsaPssParams) Reset() { method String (line 69) | func (x *RsaSsaPssParams) String() string { method ProtoMessage (line 73) | func (*RsaSsaPssParams) ProtoMessage() {} method ProtoReflect (line 75) | func (x *RsaSsaPssParams) ProtoReflect() protoreflect.Message { method Descriptor (line 88) | func (*RsaSsaPssParams) Descriptor() ([]byte, []int) { method GetSigHash (line 92) | func (x *RsaSsaPssParams) GetSigHash() common_go_proto.HashType { method GetMgf1Hash (line 99) | func (x *RsaSsaPssParams) GetMgf1Hash() common_go_proto.HashType { method GetSaltLength (line 106) | func (x *RsaSsaPssParams) GetSaltLength() int32 { type RsaSsaPssPublicKey (line 114) | type RsaSsaPssPublicKey struct method Reset (line 130) | func (x *RsaSsaPssPublicKey) Reset() { method String (line 137) | func (x *RsaSsaPssPublicKey) String() string { method ProtoMessage (line 141) | func (*RsaSsaPssPublicKey) ProtoMessage() {} method ProtoReflect (line 143) | func (x *RsaSsaPssPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 156) | func (*RsaSsaPssPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 160) | func (x *RsaSsaPssPublicKey) GetVersion() uint32 { method GetParams (line 167) | func (x *RsaSsaPssPublicKey) GetParams() *RsaSsaPssParams { method GetN (line 174) | func (x *RsaSsaPssPublicKey) GetN() []byte { method GetE (line 181) | func (x *RsaSsaPssPublicKey) GetE() []byte { type RsaSsaPssPrivateKey (line 189) | type RsaSsaPssPrivateKey struct method Reset (line 224) | func (x *RsaSsaPssPrivateKey) Reset() { method String (line 231) | func (x *RsaSsaPssPrivateKey) String() string { method ProtoMessage (line 235) | func (*RsaSsaPssPrivateKey) ProtoMessage() {} method ProtoReflect (line 237) | func (x *RsaSsaPssPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 250) | func (*RsaSsaPssPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 254) | func (x *RsaSsaPssPrivateKey) GetVersion() uint32 { method GetPublicKey (line 261) | func (x *RsaSsaPssPrivateKey) GetPublicKey() *RsaSsaPssPublicKey { method GetD (line 268) | func (x *RsaSsaPssPrivateKey) GetD() []byte { method GetP (line 275) | func (x *RsaSsaPssPrivateKey) GetP() []byte { method GetQ (line 282) | func (x *RsaSsaPssPrivateKey) GetQ() []byte { method GetDp (line 289) | func (x *RsaSsaPssPrivateKey) GetDp() []byte { method GetDq (line 296) | func (x *RsaSsaPssPrivateKey) GetDq() []byte { method GetCrt (line 303) | func (x *RsaSsaPssPrivateKey) GetCrt() []byte { type RsaSsaPssKeyFormat (line 310) | type RsaSsaPssKeyFormat struct method Reset (line 322) | func (x *RsaSsaPssKeyFormat) Reset() { method String (line 329) | func (x *RsaSsaPssKeyFormat) String() string { method ProtoMessage (line 333) | func (*RsaSsaPssKeyFormat) ProtoMessage() {} method ProtoReflect (line 335) | func (x *RsaSsaPssKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 348) | func (*RsaSsaPssKeyFormat) Descriptor() ([]byte, []int) { method GetParams (line 352) | func (x *RsaSsaPssKeyFormat) GetParams() *RsaSsaPssParams { method GetModulusSizeInBits (line 359) | func (x *RsaSsaPssKeyFormat) GetModulusSizeInBits() uint32 { method GetPublicExponent (line 366) | func (x *RsaSsaPssKeyFormat) GetPublicExponent() []byte { constant file_rsa_ssa_pss_proto_rawDesc (line 375) | file_rsa_ssa_pss_proto_rawDesc = "" + function file_rsa_ssa_pss_proto_rawDescGZIP (line 409) | func file_rsa_ssa_pss_proto_rawDescGZIP() []byte { function init (line 437) | func init() { file_rsa_ssa_pss_proto_init() } function file_rsa_ssa_pss_proto_init (line 438) | func file_rsa_ssa_pss_proto_init() { FILE: proto/slh_dsa_go_proto/slh_dsa.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type SlhDsaHashType (line 40) | type SlhDsaHashType method Enum (line 62) | func (x SlhDsaHashType) Enum() *SlhDsaHashType { method String (line 68) | func (x SlhDsaHashType) String() string { method Descriptor (line 72) | func (SlhDsaHashType) Descriptor() protoreflect.EnumDescriptor { method Type (line 76) | func (SlhDsaHashType) Type() protoreflect.EnumType { method Number (line 80) | func (x SlhDsaHashType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 85) | func (SlhDsaHashType) EnumDescriptor() ([]byte, []int) { constant SlhDsaHashType_SLH_DSA_HASH_TYPE_UNSPECIFIED (line 43) | SlhDsaHashType_SLH_DSA_HASH_TYPE_UNSPECIFIED SlhDsaHashType = 0 constant SlhDsaHashType_SHA2 (line 44) | SlhDsaHashType_SHA2 SlhDsaHashType = 1 constant SlhDsaHashType_SHAKE (line 45) | SlhDsaHashType_SHAKE SlhDsaHashType = 2 type SlhDsaSignatureType (line 89) | type SlhDsaSignatureType method Enum (line 111) | func (x SlhDsaSignatureType) Enum() *SlhDsaSignatureType { method String (line 117) | func (x SlhDsaSignatureType) String() string { method Descriptor (line 121) | func (SlhDsaSignatureType) Descriptor() protoreflect.EnumDescriptor { method Type (line 125) | func (SlhDsaSignatureType) Type() protoreflect.EnumType { method Number (line 129) | func (x SlhDsaSignatureType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 134) | func (SlhDsaSignatureType) EnumDescriptor() ([]byte, []int) { constant SlhDsaSignatureType_SLH_DSA_SIGNATURE_TYPE_UNSPECIFIED (line 92) | SlhDsaSignatureType_SLH_DSA_SIGNATURE_TYPE_UNSPECIFIED SlhDsaSignatureTy... constant SlhDsaSignatureType_FAST_SIGNING (line 93) | SlhDsaSignatureType_FAST_SIGNING SlhDsaSignatureTy... constant SlhDsaSignatureType_SMALL_SIGNATURE (line 94) | SlhDsaSignatureType_SMALL_SIGNATURE SlhDsaSignatureTy... type SlhDsaParams (line 140) | type SlhDsaParams struct method Reset (line 152) | func (x *SlhDsaParams) Reset() { method String (line 159) | func (x *SlhDsaParams) String() string { method ProtoMessage (line 163) | func (*SlhDsaParams) ProtoMessage() {} method ProtoReflect (line 165) | func (x *SlhDsaParams) ProtoReflect() protoreflect.Message { method Descriptor (line 178) | func (*SlhDsaParams) Descriptor() ([]byte, []int) { method GetKeySize (line 182) | func (x *SlhDsaParams) GetKeySize() int32 { method GetHashType (line 189) | func (x *SlhDsaParams) GetHashType() SlhDsaHashType { method GetSigType (line 196) | func (x *SlhDsaParams) GetSigType() SlhDsaSignatureType { type SlhDsaKeyFormat (line 203) | type SlhDsaKeyFormat struct method Reset (line 212) | func (x *SlhDsaKeyFormat) Reset() { method String (line 219) | func (x *SlhDsaKeyFormat) String() string { method ProtoMessage (line 223) | func (*SlhDsaKeyFormat) ProtoMessage() {} method ProtoReflect (line 225) | func (x *SlhDsaKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 238) | func (*SlhDsaKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 242) | func (x *SlhDsaKeyFormat) GetVersion() uint32 { method GetParams (line 249) | func (x *SlhDsaKeyFormat) GetParams() *SlhDsaParams { type SlhDsaPublicKey (line 257) | type SlhDsaPublicKey struct method Reset (line 269) | func (x *SlhDsaPublicKey) Reset() { method String (line 276) | func (x *SlhDsaPublicKey) String() string { method ProtoMessage (line 280) | func (*SlhDsaPublicKey) ProtoMessage() {} method ProtoReflect (line 282) | func (x *SlhDsaPublicKey) ProtoReflect() protoreflect.Message { method Descriptor (line 295) | func (*SlhDsaPublicKey) Descriptor() ([]byte, []int) { method GetVersion (line 299) | func (x *SlhDsaPublicKey) GetVersion() uint32 { method GetKeyValue (line 306) | func (x *SlhDsaPublicKey) GetKeyValue() []byte { method GetParams (line 313) | func (x *SlhDsaPublicKey) GetParams() *SlhDsaParams { type SlhDsaPrivateKey (line 321) | type SlhDsaPrivateKey struct method Reset (line 333) | func (x *SlhDsaPrivateKey) Reset() { method String (line 340) | func (x *SlhDsaPrivateKey) String() string { method ProtoMessage (line 344) | func (*SlhDsaPrivateKey) ProtoMessage() {} method ProtoReflect (line 346) | func (x *SlhDsaPrivateKey) ProtoReflect() protoreflect.Message { method Descriptor (line 359) | func (*SlhDsaPrivateKey) Descriptor() ([]byte, []int) { method GetVersion (line 363) | func (x *SlhDsaPrivateKey) GetVersion() uint32 { method GetKeyValue (line 370) | func (x *SlhDsaPrivateKey) GetKeyValue() []byte { method GetPublicKey (line 377) | func (x *SlhDsaPrivateKey) GetPublicKey() *SlhDsaPublicKey { constant file_slh_dsa_proto_rawDesc (line 386) | file_slh_dsa_proto_rawDesc = "" + function file_slh_dsa_proto_rawDescGZIP (line 420) | func file_slh_dsa_proto_rawDescGZIP() []byte { function init (line 450) | func init() { file_slh_dsa_proto_init() } function file_slh_dsa_proto_init (line 451) | func file_slh_dsa_proto_init() { FILE: proto/tink_go_proto/tink.pb.go constant _ (line 37) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 39) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type KeyStatusType (line 42) | type KeyStatusType method Enum (line 67) | func (x KeyStatusType) Enum() *KeyStatusType { method String (line 73) | func (x KeyStatusType) String() string { method Descriptor (line 77) | func (KeyStatusType) Descriptor() protoreflect.EnumDescriptor { method Type (line 81) | func (KeyStatusType) Type() protoreflect.EnumType { method Number (line 85) | func (x KeyStatusType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 90) | func (KeyStatusType) EnumDescriptor() ([]byte, []int) { constant KeyStatusType_UNKNOWN_STATUS (line 45) | KeyStatusType_UNKNOWN_STATUS KeyStatusType = 0 constant KeyStatusType_ENABLED (line 46) | KeyStatusType_ENABLED KeyStatusType = 1 constant KeyStatusType_DISABLED (line 47) | KeyStatusType_DISABLED KeyStatusType = 2 constant KeyStatusType_DESTROYED (line 48) | KeyStatusType_DESTROYED KeyStatusType = 3 type OutputPrefixType (line 113) | type OutputPrefixType method Enum (line 144) | func (x OutputPrefixType) Enum() *OutputPrefixType { method String (line 150) | func (x OutputPrefixType) String() string { method Descriptor (line 154) | func (OutputPrefixType) Descriptor() protoreflect.EnumDescriptor { method Type (line 158) | func (OutputPrefixType) Type() protoreflect.EnumType { method Number (line 162) | func (x OutputPrefixType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 167) | func (OutputPrefixType) EnumDescriptor() ([]byte, []int) { constant OutputPrefixType_UNKNOWN_PREFIX (line 116) | OutputPrefixType_UNKNOWN_PREFIX OutputPrefixType = 0 constant OutputPrefixType_TINK (line 117) | OutputPrefixType_TINK OutputPrefixType = 1 constant OutputPrefixType_LEGACY (line 118) | OutputPrefixType_LEGACY OutputPrefixType = 2 constant OutputPrefixType_RAW (line 119) | OutputPrefixType_RAW OutputPrefixType = 3 constant OutputPrefixType_CRUNCHY (line 120) | OutputPrefixType_CRUNCHY OutputPrefixType = 4 constant OutputPrefixType_WITH_ID_REQUIREMENT (line 121) | OutputPrefixType_WITH_ID_REQUIREMENT OutputPrefixType = 5 type KeyData_KeyMaterialType (line 171) | type KeyData_KeyMaterialType method Enum (line 199) | func (x KeyData_KeyMaterialType) Enum() *KeyData_KeyMaterialType { method String (line 205) | func (x KeyData_KeyMaterialType) String() string { method Descriptor (line 209) | func (KeyData_KeyMaterialType) Descriptor() protoreflect.EnumDescriptor { method Type (line 213) | func (KeyData_KeyMaterialType) Type() protoreflect.EnumType { method Number (line 217) | func (x KeyData_KeyMaterialType) Number() protoreflect.EnumNumber { method EnumDescriptor (line 222) | func (KeyData_KeyMaterialType) EnumDescriptor() ([]byte, []int) { constant KeyData_UNKNOWN_KEYMATERIAL (line 174) | KeyData_UNKNOWN_KEYMATERIAL KeyData_KeyMaterialType = 0 constant KeyData_SYMMETRIC (line 175) | KeyData_SYMMETRIC KeyData_KeyMaterialType = 1 constant KeyData_ASYMMETRIC_PRIVATE (line 176) | KeyData_ASYMMETRIC_PRIVATE KeyData_KeyMaterialType = 2 constant KeyData_ASYMMETRIC_PUBLIC (line 177) | KeyData_ASYMMETRIC_PUBLIC KeyData_KeyMaterialType = 3 constant KeyData_REMOTE (line 178) | KeyData_REMOTE KeyData_KeyMaterialType = 4 type KeyTemplate (line 226) | type KeyTemplate struct method Reset (line 242) | func (x *KeyTemplate) Reset() { method String (line 249) | func (x *KeyTemplate) String() string { method ProtoMessage (line 253) | func (*KeyTemplate) ProtoMessage() {} method ProtoReflect (line 255) | func (x *KeyTemplate) ProtoReflect() protoreflect.Message { method Descriptor (line 268) | func (*KeyTemplate) Descriptor() ([]byte, []int) { method GetTypeUrl (line 272) | func (x *KeyTemplate) GetTypeUrl() string { method GetValue (line 279) | func (x *KeyTemplate) GetValue() []byte { method GetOutputPrefixType (line 286) | func (x *KeyTemplate) GetOutputPrefixType() OutputPrefixType { type KeyData (line 297) | type KeyData struct method Reset (line 310) | func (x *KeyData) Reset() { method String (line 317) | func (x *KeyData) String() string { method ProtoMessage (line 321) | func (*KeyData) ProtoMessage() {} method ProtoReflect (line 323) | func (x *KeyData) ProtoReflect() protoreflect.Message { method Descriptor (line 336) | func (*KeyData) Descriptor() ([]byte, []int) { method GetTypeUrl (line 340) | func (x *KeyData) GetTypeUrl() string { method GetValue (line 347) | func (x *KeyData) GetValue() []byte { method GetKeyMaterialType (line 354) | func (x *KeyData) GetKeyMaterialType() KeyData_KeyMaterialType { type Keyset (line 365) | type Keyset struct method Reset (line 377) | func (x *Keyset) Reset() { method String (line 384) | func (x *Keyset) String() string { method ProtoMessage (line 388) | func (*Keyset) ProtoMessage() {} method ProtoReflect (line 390) | func (x *Keyset) ProtoReflect() protoreflect.Message { method Descriptor (line 403) | func (*Keyset) Descriptor() ([]byte, []int) { method GetPrimaryKeyId (line 407) | func (x *Keyset) GetPrimaryKeyId() uint32 { method GetKey (line 414) | func (x *Keyset) GetKey() []*Keyset_Key { type KeysetInfo (line 424) | type KeysetInfo struct method Reset (line 435) | func (x *KeysetInfo) Reset() { method String (line 442) | func (x *KeysetInfo) String() string { method ProtoMessage (line 446) | func (*KeysetInfo) ProtoMessage() {} method ProtoReflect (line 448) | func (x *KeysetInfo) ProtoReflect() protoreflect.Message { method Descriptor (line 461) | func (*KeysetInfo) Descriptor() ([]byte, []int) { method GetPrimaryKeyId (line 465) | func (x *KeysetInfo) GetPrimaryKeyId() uint32 { method GetKeyInfo (line 472) | func (x *KeysetInfo) GetKeyInfo() []*KeysetInfo_KeyInfo { type EncryptedKeyset (line 480) | type EncryptedKeyset struct method Reset (line 490) | func (x *EncryptedKeyset) Reset() { method String (line 497) | func (x *EncryptedKeyset) String() string { method ProtoMessage (line 501) | func (*EncryptedKeyset) ProtoMessage() {} method ProtoReflect (line 503) | func (x *EncryptedKeyset) ProtoReflect() protoreflect.Message { method Descriptor (line 516) | func (*EncryptedKeyset) Descriptor() ([]byte, []int) { method GetEncryptedKeyset (line 520) | func (x *EncryptedKeyset) GetEncryptedKeyset() []byte { method GetKeysetInfo (line 527) | func (x *EncryptedKeyset) GetKeysetInfo() *KeysetInfo { type Keyset_Key (line 534) | type Keyset_Key struct method Reset (line 550) | func (x *Keyset_Key) Reset() { method String (line 557) | func (x *Keyset_Key) String() string { method ProtoMessage (line 561) | func (*Keyset_Key) ProtoMessage() {} method ProtoReflect (line 563) | func (x *Keyset_Key) ProtoReflect() protoreflect.Message { method Descriptor (line 576) | func (*Keyset_Key) Descriptor() ([]byte, []int) { method GetKeyData (line 580) | func (x *Keyset_Key) GetKeyData() *KeyData { method GetStatus (line 587) | func (x *Keyset_Key) GetStatus() KeyStatusType { method GetKeyId (line 594) | func (x *Keyset_Key) GetKeyId() uint32 { method GetOutputPrefixType (line 601) | func (x *Keyset_Key) GetOutputPrefixType() OutputPrefixType { type KeysetInfo_KeyInfo (line 608) | type KeysetInfo_KeyInfo struct method Reset (line 623) | func (x *KeysetInfo_KeyInfo) Reset() { method String (line 630) | func (x *KeysetInfo_KeyInfo) String() string { method ProtoMessage (line 634) | func (*KeysetInfo_KeyInfo) ProtoMessage() {} method ProtoReflect (line 636) | func (x *KeysetInfo_KeyInfo) ProtoReflect() protoreflect.Message { method Descriptor (line 649) | func (*KeysetInfo_KeyInfo) Descriptor() ([]byte, []int) { method GetTypeUrl (line 653) | func (x *KeysetInfo_KeyInfo) GetTypeUrl() string { method GetStatus (line 660) | func (x *KeysetInfo_KeyInfo) GetStatus() KeyStatusType { method GetKeyId (line 667) | func (x *KeysetInfo_KeyInfo) GetKeyId() uint32 { method GetOutputPrefixType (line 674) | func (x *KeysetInfo_KeyInfo) GetOutputPrefixType() OutputPrefixType { constant file_tink_proto_rawDesc (line 683) | file_tink_proto_rawDesc = "" + function file_tink_proto_rawDescGZIP (line 743) | func file_tink_proto_rawDescGZIP() []byte { function init (line 782) | func init() { file_tink_proto_init() } function file_tink_proto_init (line 783) | func file_tink_proto_init() { FILE: proto/x_aes_gcm_go_proto/x_aes_gcm.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type XAesGcmParams (line 40) | type XAesGcmParams struct method Reset (line 48) | func (x *XAesGcmParams) Reset() { method String (line 55) | func (x *XAesGcmParams) String() string { method ProtoMessage (line 59) | func (*XAesGcmParams) ProtoMessage() {} method ProtoReflect (line 61) | func (x *XAesGcmParams) ProtoReflect() protoreflect.Message { method Descriptor (line 74) | func (*XAesGcmParams) Descriptor() ([]byte, []int) { method GetSaltSize (line 78) | func (x *XAesGcmParams) GetSaltSize() uint32 { type XAesGcmKeyFormat (line 85) | type XAesGcmKeyFormat struct method Reset (line 93) | func (x *XAesGcmKeyFormat) Reset() { method String (line 100) | func (x *XAesGcmKeyFormat) String() string { method ProtoMessage (line 104) | func (*XAesGcmKeyFormat) ProtoMessage() {} method ProtoReflect (line 106) | func (x *XAesGcmKeyFormat) ProtoReflect() protoreflect.Message { method Descriptor (line 119) | func (*XAesGcmKeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 123) | func (x *XAesGcmKeyFormat) GetVersion() uint32 { method GetParams (line 130) | func (x *XAesGcmKeyFormat) GetParams() *XAesGcmParams { type XAesGcmKey (line 138) | type XAesGcmKey struct method Reset (line 147) | func (x *XAesGcmKey) Reset() { method String (line 154) | func (x *XAesGcmKey) String() string { method ProtoMessage (line 158) | func (*XAesGcmKey) ProtoMessage() {} method ProtoReflect (line 160) | func (x *XAesGcmKey) ProtoReflect() protoreflect.Message { method Descriptor (line 173) | func (*XAesGcmKey) Descriptor() ([]byte, []int) { method GetVersion (line 177) | func (x *XAesGcmKey) GetVersion() uint32 { method GetParams (line 184) | func (x *XAesGcmKey) GetParams() *XAesGcmParams { method GetKeyValue (line 191) | func (x *XAesGcmKey) GetKeyValue() []byte { constant file_x_aes_gcm_proto_rawDesc (line 200) | file_x_aes_gcm_proto_rawDesc = "" + function file_x_aes_gcm_proto_rawDescGZIP (line 220) | func file_x_aes_gcm_proto_rawDescGZIP() []byte { function init (line 243) | func init() { file_x_aes_gcm_proto_init() } function file_x_aes_gcm_proto_init (line 244) | func file_x_aes_gcm_proto_init() { FILE: proto/xchacha20_poly1305_go_proto/xchacha20_poly1305.pb.go constant _ (line 35) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) constant _ (line 37) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) type XChaCha20Poly1305KeyFormat (line 40) | type XChaCha20Poly1305KeyFormat struct method Reset (line 47) | func (x *XChaCha20Poly1305KeyFormat) Reset() { method String (line 54) | func (x *XChaCha20Poly1305KeyFormat) String() string { method ProtoMessage (line 58) | func (*XChaCha20Poly1305KeyFormat) ProtoMessage() {} method ProtoReflect (line 60) | func (x *XChaCha20Poly1305KeyFormat) ProtoReflect() protoreflect.Messa... method Descriptor (line 73) | func (*XChaCha20Poly1305KeyFormat) Descriptor() ([]byte, []int) { method GetVersion (line 77) | func (x *XChaCha20Poly1305KeyFormat) GetVersion() uint32 { type XChaCha20Poly1305Key (line 85) | type XChaCha20Poly1305Key struct method Reset (line 93) | func (x *XChaCha20Poly1305Key) Reset() { method String (line 100) | func (x *XChaCha20Poly1305Key) String() string { method ProtoMessage (line 104) | func (*XChaCha20Poly1305Key) ProtoMessage() {} method ProtoReflect (line 106) | func (x *XChaCha20Poly1305Key) ProtoReflect() protoreflect.Message { method Descriptor (line 119) | func (*XChaCha20Poly1305Key) Descriptor() ([]byte, []int) { method GetVersion (line 123) | func (x *XChaCha20Poly1305Key) GetVersion() uint32 { method GetKeyValue (line 130) | func (x *XChaCha20Poly1305Key) GetKeyValue() []byte { constant file_xchacha20_poly1305_proto_rawDesc (line 139) | file_xchacha20_poly1305_proto_rawDesc = "" + function file_xchacha20_poly1305_proto_rawDescGZIP (line 154) | func file_xchacha20_poly1305_proto_rawDescGZIP() []byte { function init (line 174) | func init() { file_xchacha20_poly1305_proto_init() } function file_xchacha20_poly1305_proto_init (line 175) | func file_xchacha20_poly1305_proto_init() { FILE: secretdata/example_test.go type Key (line 25) | type Key struct method Key (line 37) | func (k *Key) Key() secretdata.Bytes { return k.keyMaterial } function NewKey (line 29) | func NewKey() (*Key, error) { function ExampleBytes (line 39) | func ExampleBytes() { FILE: secretdata/secretdata.go type Bytes (line 39) | type Bytes struct method Data (line 64) | func (b Bytes) Data(token insecuresecretdataaccess.Token) []byte { ret... method Len (line 67) | func (b Bytes) Len() int { return len(b.data) } method Equal (line 74) | func (b Bytes) Equal(other Bytes) bool { function NewBytesFromRand (line 45) | func NewBytesFromRand(size uint32) (Bytes, error) { function NewBytesFromData (line 57) | func NewBytesFromData(data []byte, token insecuresecretdataaccess.Token)... FILE: secretdata/secretdata_test.go function TestBytesWithStructLiteralAndBuiltInNewHaveZeroLen (line 25) | func TestBytesWithStructLiteralAndBuiltInNewHaveZeroLen(t *testing.T) { function TestNewBytesLen (line 36) | func TestNewBytesLen(t *testing.T) { function TestNewBytesFromDataLen (line 48) | func TestNewBytesFromDataLen(t *testing.T) { function TestBytesWithNilBytesHasZeroLen (line 56) | func TestBytesWithNilBytesHasZeroLen(t *testing.T) { function TestBytesData (line 63) | func TestBytesData(t *testing.T) { function TestBytesEqual (line 72) | func TestBytesEqual(t *testing.T) { function TestBytesEqualEmpty (line 85) | func TestBytesEqualEmpty(t *testing.T) { FILE: signature/compositemldsa/compositemldsa.go function init (line 27) | func init() { FILE: signature/compositemldsa/key.go constant f4 (line 30) | f4 = 65537 type Variant (line 39) | type Variant constant VariantUnknown (line 43) | VariantUnknown Variant = iota constant VariantTink (line 45) | VariantTink constant VariantNoPrefix (line 47) | VariantNoPrefix type MLDSAInstance (line 51) | type MLDSAInstance constant UnknownInstance (line 55) | UnknownInstance MLDSAInstance = iota constant MLDSA65 (line 57) | MLDSA65 constant MLDSA87 (line 59) | MLDSA87 type ClassicalAlgorithm (line 69) | type ClassicalAlgorithm constant UnknownAlgorithm (line 73) | UnknownAlgorithm ClassicalAlgorithm = iota constant Ed25519 (line 75) | Ed25519 constant ECDSAP256 (line 77) | ECDSAP256 constant ECDSAP384 (line 79) | ECDSAP384 constant ECDSAP521 (line 81) | ECDSAP521 constant RSA3072PSS (line 83) | RSA3072PSS constant RSA4096PSS (line 85) | RSA4096PSS constant RSA3072PKCS1 (line 87) | RSA3072PKCS1 constant RSA4096PKCS1 (line 89) | RSA4096PKCS1 type Parameters (line 93) | type Parameters struct method ClassicalAlgorithm (line 137) | func (p *Parameters) ClassicalAlgorithm() ClassicalAlgorithm { return ... method HasIDRequirement (line 140) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Variant (line 143) | func (p *Parameters) Variant() Variant { return p.variant } method Equal (line 146) | func (p *Parameters) Equal(other key.Parameters) bool { method MLDSAInstance (line 154) | func (p *Parameters) MLDSAInstance() MLDSAInstance { return p.mlDSAIns... type mlDSAAndClassicalInstance (line 99) | type mlDSAAndClassicalInstance struct function NewParameters (line 123) | func NewParameters(classicalAlgorithm ClassicalAlgorithm, mlDSAInstance ... type PublicKey (line 163) | type PublicKey struct method Parameters (line 174) | func (k *PublicKey) Parameters() key.Parameters { return k.params } method IDRequirement (line 178) | func (k *PublicKey) IDRequirement() (uint32, bool) { method OutputPrefix (line 183) | func (k *PublicKey) OutputPrefix() []byte { method ClassicalPublicKey (line 188) | func (k *PublicKey) ClassicalPublicKey() key.Key { method MLDSAPublicKey (line 193) | func (k *PublicKey) MLDSAPublicKey() *mldsa.PublicKey { method Equal (line 198) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 209) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { function instanceFromMlDsaInstance (line 220) | func instanceFromMlDsaInstance(mlDSAInstance mldsa.Instance) (MLDSAInsta... function variantFromMlDsaVariant (line 231) | func variantFromMlDsaVariant(mlDSAVariant mldsa.Variant) (Variant, error) { function parametersForClassicalAlgorithm (line 243) | func parametersForClassicalAlgorithm(classicalAlgorithm ClassicalAlgorit... function parametersForMLDSA (line 248) | func parametersForMLDSA(mlDSAInstance MLDSAInstance) (*mldsa.Parameters,... function NewPublicKey (line 259) | func NewPublicKey(mlDSAPublicKey *mldsa.PublicKey, classicalPublicKey ke... type PrivateKey (line 292) | type PrivateKey struct method MLDSAPrivateKey (line 301) | func (k *PrivateKey) MLDSAPrivateKey() *mldsa.PrivateKey { method ClassicalPrivateKey (line 306) | func (k *PrivateKey) ClassicalPrivateKey() key.Key { method PublicKey (line 313) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 316) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 320) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 323) | func (k *PrivateKey) OutputPrefix() []byte { return bytes.Clone(k.publ... method Equal (line 326) | func (k *PrivateKey) Equal(other key.Key) bool { function NewPrivateKey (line 343) | func NewPrivateKey(mlDSAPrivateKey *mldsa.PrivateKey, classicalPrivateKe... function createPrivateKey (line 370) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: signature/compositemldsa/key_test.go constant f4 (line 33) | f4 = 65537 function TestNewParametersSupported (line 36) | func TestNewParametersSupported(t *testing.T) { function TestNewParametersUnsupported (line 57) | func TestNewParametersUnsupported(t *testing.T) { function TestParametersEqual (line 83) | func TestParametersEqual(t *testing.T) { function TestNewPublicKeySuccess (line 134) | func TestNewPublicKeySuccess(t *testing.T) { function TestNewPublicKeyEquals (line 176) | func TestNewPublicKeyEquals(t *testing.T) { function TestNewPublicKeyMismatchClassicalParameters (line 201) | func TestNewPublicKeyMismatchClassicalParameters(t *testing.T) { function TestNewPublicKeyRSAPSSInvalidPublicExponent (line 268) | func TestNewPublicKeyRSAPSSInvalidPublicExponent(t *testing.T) { function TestNewPrivateKeySuccess (line 305) | func TestNewPrivateKeySuccess(t *testing.T) { function TestPrivateKeyEqual (line 346) | func TestPrivateKeyEqual(t *testing.T) { function TestNewPrivateKeyFailsOnMistypedClassicalKey (line 382) | func TestNewPrivateKeyFailsOnMistypedClassicalKey(t *testing.T) { function TestPrivateKeyNotEqual (line 403) | func TestPrivateKeyNotEqual(t *testing.T) { function mustNewED25519Parameters (line 468) | func mustNewED25519Parameters(t *testing.T) key.Parameters { function mustNewECDSAParameters (line 477) | func mustNewECDSAParameters(t *testing.T, curve ecdsa.CurveType, hashTyp... function mustNewRSAPSSParameters (line 486) | func mustNewRSAPSSParameters(t *testing.T, modulusSizeBits int, sigHashT... function mustNewRSAPKCS1Parameters (line 501) | func mustNewRSAPKCS1Parameters(t *testing.T, modulusSizeBits int, hashTy... FILE: signature/compositemldsa/protoserialization.go constant publicKeyProtoVersion (line 39) | publicKeyProtoVersion = 0 constant privateKeyProtoVersion (line 44) | privateKeyProtoVersion = 0 constant signerTypeURL (line 46) | signerTypeURL = "type.googleapis.com/google.crypto.tink.CompositeMlDsa... constant verifierTypeURL (line 47) | verifierTypeURL = "type.googleapis.com/google.crypto.tink.CompositeMlDsa... type publicKeySerializer (line 50) | type publicKeySerializer struct method SerializeKey (line 139) | func (s *publicKeySerializer) SerializeKey(k key.Key) (*protoserializa... function protoOutputPrefixTypeFromVariant (line 54) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function protoMlDsaInstanceFromInstance (line 65) | func protoMlDsaInstanceFromInstance(instance MLDSAInstance) (mldsapb.MlD... function protoCompositeMlDsaClassicalAlgorithmFromCompositeMlDsaClassicalAlgorithm (line 76) | func protoCompositeMlDsaClassicalAlgorithmFromCompositeMlDsaClassicalAlg... function typeURLForClassicalAlgorithm (line 99) | func typeURLForClassicalAlgorithm(algorithm ClassicalAlgorithm, private ... function serializeClassicalKey (line 126) | func serializeClassicalKey(k key.Key) ([]byte, error) { type privateKeySerializer (line 203) | type privateKeySerializer struct method SerializeKey (line 207) | func (s *privateKeySerializer) SerializeKey(k key.Key) (*protoserializ... type publicKeyParser (line 274) | type publicKeyParser struct method ParseKey (line 375) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function variantFromProto (line 278) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... function instanceFromProto (line 289) | func instanceFromProto(instanceType mldsapb.MlDsaInstance) (MLDSAInstanc... function classicalAlgorithmFromProto (line 300) | func classicalAlgorithmFromProto(algorithmType compositemldsapb.Composit... function parseClassicalPublicKey (line 323) | func parseClassicalPublicKey(classicalPublicKeyData *tinkpb.KeyData) (ke... function parseMLDSAPublicKey (line 339) | func parseMLDSAPublicKey(mldsaPublicKeyData *tinkpb.KeyData) (*mldsa.Pub... function parseClassicalPrivateKey (line 359) | func parseClassicalPrivateKey(classicalPrivateKeyData *tinkpb.KeyData) (... type privateKeyParser (line 424) | type privateKeyParser struct method ParseKey (line 428) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... type parametersSerializer (line 493) | type parametersSerializer struct method Serialize (line 497) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 532) | type parametersParser struct method Parse (line 536) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: signature/compositemldsa/protoserialization_test.go function mustCreateKeySerialization (line 37) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function mustMarshal (line 46) | func mustMarshal(t *testing.T, message proto.Message) []byte { function mustSerializeKey (line 55) | func mustSerializeKey(t *testing.T, k key.Key) []byte { function mustCreateMLDSAKey (line 67) | func mustCreateMLDSAKey(t *testing.T, instance MLDSAInstance, alg Classi... function mustCreateECDSAKey (line 73) | func mustCreateECDSAKey(t *testing.T, instance MLDSAInstance, alg Classi... function mustMarshalECDSAPublicKey (line 82) | func mustMarshalECDSAPublicKey(t *testing.T, instance MLDSAInstance, alg... function mustCreateSerializedPublicKey (line 87) | func mustCreateSerializedPublicKey(t *testing.T, instance mldsapb.MlDsaI... function mustCreateCompositePublicKey (line 109) | func mustCreateCompositePublicKey(t *testing.T, mlDSAPubKey *mldsa.Publi... function mustCreateMLDSAPrivateKey (line 118) | func mustCreateMLDSAPrivateKey(t *testing.T, instance MLDSAInstance, alg... function mustCreateECDSAPrivateKey (line 124) | func mustCreateECDSAPrivateKey(t *testing.T, instance MLDSAInstance, alg... function mustMarshalMLDSAPrivateKey (line 133) | func mustMarshalMLDSAPrivateKey(t *testing.T, instance MLDSAInstance, al... function mustMarshalECDSAPrivateKey (line 138) | func mustMarshalECDSAPrivateKey(t *testing.T, instance MLDSAInstance, al... function mustCreateSerializedPrivateKey (line 143) | func mustCreateSerializedPrivateKey(t *testing.T, instance mldsapb.MlDsa... function mustCreateCompositePrivateKey (line 165) | func mustCreateCompositePrivateKey(t *testing.T, mlDSAPrivKey *mldsa.Pri... function protoInstanceEnum (line 174) | func protoInstanceEnum(instance MLDSAInstance) mldsapb.MlDsaInstance { function protoClassicalEnum (line 185) | func protoClassicalEnum(alg ClassicalAlgorithm) compositemldsapb.Composi... function TestParsePublicKey (line 208) | func TestParsePublicKey(t *testing.T) { function TestSerializePublicKey (line 269) | func TestSerializePublicKey(t *testing.T) { type stubKey (line 330) | type stubKey struct method Parameters (line 332) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 333) | func (k *stubKey) Equal(other key.Key) bool { return false } method IDRequirement (line 334) | func (k *stubKey) IDRequirement() (uint32, bool) { return 0, false } function TestSerializePublicKeyFails (line 336) | func TestSerializePublicKeyFails(t *testing.T) { function TestParsePublicKeyFails (line 371) | func TestParsePublicKeyFails(t *testing.T) { function TestParsePrivateKey (line 469) | func TestParsePrivateKey(t *testing.T) { function TestSerializePrivateKey (line 530) | func TestSerializePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 591) | func TestSerializePrivateKeyFails(t *testing.T) { function TestParsePrivateKeyFails (line 625) | func TestParsePrivateKeyFails(t *testing.T) { type parametersTestCase (line 741) | type parametersTestCase struct function parametersTestCases (line 747) | func parametersTestCases(t *testing.T) []parametersTestCase { function TestParseParameters (line 784) | func TestParseParameters(t *testing.T) { function TestSerializeParameters (line 807) | func TestSerializeParameters(t *testing.T) { function TestParseParametersFails (line 821) | func TestParseParametersFails(t *testing.T) { function TestSerializeParametersFails (line 909) | func TestSerializeParametersFails(t *testing.T) { FILE: signature/compositemldsa/signer.go type signer (line 34) | type signer struct method Sign (line 125) | func (e *signer) Sign(data []byte) ([]byte, error) { function mldsaSecretKeyFromPrivateKey (line 44) | func mldsaSecretKeyFromPrivateKey(privateKey *mldsa.PrivateKey) (*intern... function newClassicalSigner (line 66) | func newClassicalSigner(classicalPrivateKey key.Key) (tink.Signer, error) { function NewSigner (line 84) | func NewSigner(privateKey *PrivateKey, _ internalapi.Token) (tink.Signer... function signerConstructor (line 139) | func signerConstructor(key key.Key) (any, error) { function toInternalMLDSAInstance (line 147) | func toInternalMLDSAInstance(instance MLDSAInstance) (internalcompmldsa.... function toInternalClassicalAlgorithm (line 158) | func toInternalClassicalAlgorithm(alg ClassicalAlgorithm) (internalcompm... FILE: signature/compositemldsa/signer_verifier_test.go constant hexMessage (line 33) | hexMessage = "54686520717569636b2062726f776e20666f78206a756d7073206f7665... constant hexMlDsa65Ed25519Signature (line 35) | hexMlDsa65Ed25519Signature = "17187f0325bebc35043816918d982f85c801256c59... constant hexMlDsa65EcdsaP256Signature (line 36) | hexMlDsa65EcdsaP256Signature = "6767174a6c9e63e2c1eac618ddf3ca6118e18ac6... constant hexMlDsa65EcdsaP384Signature (line 37) | hexMlDsa65EcdsaP384Signature = "87fd58c8184f842c7f6d65c3636edc2cde19448d... constant hexMlDsa65Rsa3072PssSignature (line 38) | hexMlDsa65Rsa3072PssSignature = "bffd036dcc6eafd90a99866adb32175464b75b0... constant hexMlDsa65Rsa4096PssSignature (line 39) | hexMlDsa65Rsa4096PssSignature = "7ac5bb765d468f803e44f83623974a19792e020... constant hexMlDsa65Rsa3072Pkcs1Signature (line 40) | hexMlDsa65Rsa3072Pkcs1Signature = "5848ef06b5553ad2bfdc07be94281983bd468... constant hexMlDsa65Rsa4096Pkcs1Signature (line 41) | hexMlDsa65Rsa4096Pkcs1Signature = "cadb0e5e77eaa1c9570f441cc782d86eadfd3... constant hexMlDsa87EcdsaP384Signature (line 42) | hexMlDsa87EcdsaP384Signature = "c7cb5af53216efe01bc23f0e2295ba73624283b6... constant hexMlDsa87EcdsaP521Signature (line 43) | hexMlDsa87EcdsaP521Signature = "1ab3b068a06a054be404a946d2a96ef9f1d7bfc2... constant hexMlDsa87Rsa3072PssSignature (line 44) | hexMlDsa87Rsa3072PssSignature = "f455dabc38c6a71417bd19530761102d2fc0d14... constant hexMlDsa87Rsa4096PssSignature (line 45) | hexMlDsa87Rsa4096PssSignature = "dce794d81727d475190b70d6b6c2443b1e55f2a... function expectedSignature (line 47) | func expectedSignature(classicalAlgorithm tinkcompositemldsa.ClassicalAl... function TestSignVerifyCorrectnessRandom (line 90) | func TestSignVerifyCorrectnessRandom(t *testing.T) { function TestSignVerifyCorrectnessDeterministic (line 134) | func TestSignVerifyCorrectnessDeterministic(t *testing.T) { function TestVerifyFails (line 203) | func TestVerifyFails(t *testing.T) { FILE: signature/compositemldsa/verifier.go constant mlDsa65SignatureLength (line 33) | mlDsa65SignatureLength = 3309 constant mlDsa87SignatureLength (line 34) | mlDsa87SignatureLength = 4627 type verifier (line 38) | type verifier struct method Verify (line 118) | func (v *verifier) Verify(signature, data []byte) error { function mlDsaPublicKeyFromPublicKey (line 48) | func mlDsaPublicKeyFromPublicKey(publicKey *PublicKey) (*internalmldsa.P... function newClassicalVerifier (line 60) | func newClassicalVerifier(classicalPublicKey key.Key) (tink.Verifier, er... function NewVerifier (line 78) | func NewVerifier(publicKey *PublicKey, _ internalapi.Token) (tink.Verifi... function verifierConstructor (line 151) | func verifierConstructor(key key.Key) (any, error) { FILE: signature/ecdsa/ecdsa.go function init (line 35) | func init() { function RegisterPrimitiveConstructor (line 87) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: signature/ecdsa/ecdsa_test.go function TestCreateKeysetHandleFromParameters (line 24) | func TestCreateKeysetHandleFromParameters(t *testing.T) { FILE: signature/ecdsa/key.go type Variant (line 38) | type Variant method String (line 54) | func (variant Variant) String() string { constant VariantUnknown (line 42) | VariantUnknown Variant = iota constant VariantTink (line 44) | VariantTink constant VariantCrunchy (line 46) | VariantCrunchy constant VariantLegacy (line 49) | VariantLegacy constant VariantNoPrefix (line 51) | VariantNoPrefix type CurveType (line 70) | type CurveType method String (line 83) | func (ct CurveType) String() string { constant UnknownCurveType (line 74) | UnknownCurveType CurveType = iota constant NistP256 (line 76) | NistP256 constant NistP384 (line 78) | NistP384 constant NistP521 (line 80) | NistP521 type HashType (line 97) | type HashType method String (line 110) | func (ht HashType) String() string { constant UnknownHashType (line 101) | UnknownHashType HashType = iota constant SHA256 (line 103) | SHA256 constant SHA384 (line 105) | SHA384 constant SHA512 (line 107) | SHA512 type SignatureEncoding (line 124) | type SignatureEncoding method String (line 135) | func (encoding SignatureEncoding) String() string { constant UnknownSignatureEncoding (line 128) | UnknownSignatureEncoding SignatureEncoding = iota constant DER (line 130) | DER constant IEEEP1363 (line 132) | IEEEP1363 type Parameters (line 147) | type Parameters struct method CurveType (line 157) | func (p *Parameters) CurveType() CurveType { return p.curveType } method HashType (line 160) | func (p *Parameters) HashType() HashType { return p.hashType } method SignatureEncoding (line 163) | func (p *Parameters) SignatureEncoding() SignatureEncoding { return p.... method Variant (line 166) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 249) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 252) | func (p *Parameters) Equal(other key.Parameters) bool { function checkValidHashForCurve (line 168) | func checkValidHashForCurve(curveType CurveType, hashType HashType) error { function checkValidHash (line 188) | func checkValidHash(hashType HashType) error { function checkValidSignatureEncoding (line 197) | func checkValidSignatureEncoding(signatureEncoding SignatureEncoding) er... function checkValidVariant (line 206) | func checkValidVariant(variant Variant) error { function validateParameters (line 215) | func validateParameters(p *Parameters) error { function NewParameters (line 235) | func NewParameters(curveType CurveType, hashType HashType, encoding Sign... function calculateOutputPrefix (line 261) | func calculateOutputPrefix(variant Variant, idRequirement uint32) ([]byt... function ecdhCurveFromCurveType (line 275) | func ecdhCurveFromCurveType(ct CurveType) (ecdh.Curve, error) { type PublicKey (line 289) | type PublicKey struct method PublicPoint (line 336) | func (k *PublicKey) PublicPoint() []byte { return bytes.Clone(k.public... method Parameters (line 339) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 342) | func (k *PublicKey) IDRequirement() (uint32, bool) { method OutputPrefix (line 347) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Equal (line 350) | func (k *PublicKey) Equal(other key.Key) bool { function NewPublicKey (line 304) | func NewPublicKey(publicPoint []byte, idRequirement uint32, parameters *... type PrivateKey (line 359) | type PrivateKey struct method PrivateKeyValue (line 458) | func (k *PrivateKey) PrivateKeyValue() secretdata.Bytes { return k.pri... method PublicKey (line 461) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 464) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 467) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 470) | func (k *PrivateKey) OutputPrefix() []byte { return k.publicKey.Output... method Equal (line 473) | func (k *PrivateKey) Equal(other key.Key) bool { function NewPrivateKey (line 373) | func NewPrivateKey(privateKeyValue secretdata.Bytes, idRequirement uint3... function validatePrivateKey (line 403) | func validatePrivateKey(publicKey *PublicKey, privateKeyValue secretdata... function NewPrivateKeyFromPublicKey (line 430) | func NewPrivateKeyFromPublicKey(publicKey *PublicKey, privateKeyValue se... function createPrivateKey (line 479) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: signature/ecdsa/key_test.go function TestNewParametersInvalidValues (line 32) | func TestNewParametersInvalidValues(t *testing.T) { function TestNewParameters (line 169) | func TestNewParameters(t *testing.T) { constant pubKeyXP256Hex (line 271) | pubKeyXP256Hex = "60FED4BA255A9D31C961EB74C6356D68C049B8923B61FA6CE... constant pubKeyYP256Hex (line 272) | pubKeyYP256Hex = "7903FE1008B8BC99A41AE9E95628BC64F2F1B20C2D7E9F517... constant privKeyValueP256Hex (line 273) | privKeyValueP256Hex = "C9AFA9D845BA75166B5C215767B1D6934E50C3DB36E89B127... constant pubKeyUncompressedP256Hex (line 277) | pubKeyUncompressedP256Hex = "04" + pubKeyXP256Hex + pubKeyYP256Hex constant pubKeyUncompressedP256InvalidHex (line 278) | pubKeyUncompressedP256InvalidHex = "04" + pubKeyXP256Hex + "08c8049879c6... constant pubKeyXP384Hex (line 281) | pubKeyXP384Hex = "EC3A4E415B4E19A4568618029F427FA5DA9A8BC4AE9... constant pubKeyYP384Hex (line 282) | pubKeyYP384Hex = "8015D9B72D7D57244EA8EF9AC0C621896708A59367F... constant privKeyValueP384Hex (line 283) | privKeyValueP384Hex = "6B9D3DAD2E1B8C1C05B19875B6659F4DE23C3B667BF... constant pubKeyUncompressedP384Hex (line 284) | pubKeyUncompressedP384Hex = "04" + pubKeyXP384Hex + pubKeyYP384Hex constant pubKeyXP521Hex (line 287) | pubKeyXP521Hex = "01894550D0785932E00EAA23B694F213F8C3121F86D... constant pubKeyYP521Hex (line 288) | pubKeyYP521Hex = "00493101C962CD4D2FDDF782285E64584139C2F91B4... constant privKeyValueP521Hex (line 289) | privKeyValueP521Hex = "00FAD06DAA62BA3B25D2FB40133DA757205DE67F5BB... constant pubKeyUncompressedP521Hex (line 290) | pubKeyUncompressedP521Hex = "04" + pubKeyXP521Hex + pubKeyYP521Hex constant pubKeyXP224Hex (line 293) | pubKeyXP224Hex = "00CF08DA5AD719E42707FA431292DEA11244D64FC51... constant pubKeyYP224Hex (line 294) | pubKeyYP224Hex = "EEAB6F3DEBE455E3DBF85416F7030CBD94F34F2D6F2... constant pubKeyUncompressedP224Hex (line 295) | pubKeyUncompressedP224Hex = "04" + pubKeyXP224Hex + pubKeyYP224Hex function bytesFromHex (line 298) | func bytesFromHex(t *testing.T, hexStr string) []byte { function TestNewPublicKeyInvalidValues (line 307) | func TestNewPublicKeyInvalidValues(t *testing.T) { type testCase (line 402) | type testCase struct function TestNewPublicKey (line 544) | func TestNewPublicKey(t *testing.T) { function TestPublicKeyOutputPrefix (line 578) | func TestPublicKeyOutputPrefix(t *testing.T) { type stubKey (line 627) | type stubKey struct method Parameters (line 631) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 632) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 633) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestPublicKey_Equal_FalseIfDifferentType (line 635) | func TestPublicKey_Equal_FalseIfDifferentType(t *testing.T) { function mustCreateParameters (line 644) | func mustCreateParameters(t *testing.T, curveType ecdsa.CurveType, hashT... function mustCreatePublicKey (line 653) | func mustCreatePublicKey(t *testing.T, point []byte, id uint32, params *... function TestNewPrivateKeyInvalidValues (line 662) | func TestNewPrivateKeyInvalidValues(t *testing.T) { function TestPrivateKey_Equal_FalseIfDifferentType (line 709) | func TestPrivateKey_Equal_FalseIfDifferentType(t *testing.T) { function TestNewPrivateKey (line 725) | func TestNewPrivateKey(t *testing.T) { function TestNewPrivateKeyFromPublicKeyInvalidValues (line 773) | func TestNewPrivateKeyFromPublicKeyInvalidValues(t *testing.T) { function TestNewPrivateKeyFromPublicKey (line 826) | func TestNewPrivateKeyFromPublicKey(t *testing.T) { function TestKeyCreator (line 874) | func TestKeyCreator(t *testing.T) { FILE: signature/ecdsa/proto.go function paramNames (line 24) | func paramNames(params *ecdsapb.EcdsaParams) (string, string, string) { FILE: signature/ecdsa/protoserialization.go constant signerKeyVersion (line 33) | signerKeyVersion = 0 constant signerTypeURL (line 34) | signerTypeURL = "type.googleapis.com/google.crypto.tink.EcdsaPrivat... constant verifierKeyVersion (line 35) | verifierKeyVersion = 0 constant verifierTypeURL (line 36) | verifierTypeURL = "type.googleapis.com/google.crypto.tink.EcdsaPublic... type publicKeySerializer (line 39) | type publicKeySerializer struct method SerializeKey (line 164) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function protoOutputPrefixTypeFromVariant (line 41) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function protoCurveFromCurveType (line 56) | func protoCurveFromCurveType(curveType CurveType) (commonpb.EllipticCurv... function protoHashTypeFromHashType (line 69) | func protoHashTypeFromHashType(hashType HashType) (commonpb.HashType, er... function protoEcdsaSignatureEncodingFromSignatureEncoding (line 82) | func protoEcdsaSignatureEncodingFromSignatureEncoding(encoding Signature... function createProtoECDSAParams (line 93) | func createProtoECDSAParams(p *Parameters) (*ecdsapb.EcdsaParams, error) { function validateEncodingAndGetCoordinates (line 120) | func validateEncodingAndGetCoordinates(publicPoint []byte, curveType Cur... function createProtoECDSAPublicKey (line 145) | func createProtoECDSAPublicKey(k *PublicKey, p *Parameters) (*ecdsapb.Ec... type publicKeyParser (line 204) | type publicKeyParser struct method ParseKey (line 349) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function variantFromProto (line 206) | func variantFromProto(outputPrefixType tinkpb.OutputPrefixType) (Variant... function curveTypeFromProto (line 221) | func curveTypeFromProto(curveType commonpb.EllipticCurveType) (CurveType... function hashTypeFromProto (line 234) | func hashTypeFromProto(hashType commonpb.HashType) (HashType, error) { function signatureEncodingFromProto (line 247) | func signatureEncodingFromProto(encoding ecdsapb.EcdsaSignatureEncoding)... function coordinateSizeForCurve (line 258) | func coordinateSizeForCurve(curveType CurveType) (int, error) { function encodePoint (line 281) | func encodePoint(x, y []byte, coordinateSize int) []byte { function parseParameters (line 295) | func parseParameters(protoParameters *ecdsapb.EcdsaParams, outputPrefixT... function newPublicKeyFromProto (line 315) | func newPublicKeyFromProto(protoECDSAKey *ecdsapb.EcdsaPublicKey, output... type privateKeySerializer (line 369) | type privateKeySerializer struct method SerializeKey (line 373) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type privateKeyParser (line 422) | type privateKeyParser struct method ParseKey (line 451) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... function privateKeyValue (line 426) | func privateKeyValue(curveType CurveType, keyBytes []byte) (secretdata.B... type parametersSerializer (line 485) | type parametersSerializer struct method Serialize (line 489) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 516) | type parametersParser struct method Parse (line 520) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: signature/ecdsa/protoserialization_test.go function mustCreateKeySerialization (line 35) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... constant pubKeyXP256Hex (line 46) | pubKeyXP256Hex = "60FED4BA255A9D31C961EB74C6356D68C049B8923B61FA6CE... constant pubKeyYP256Hex (line 47) | pubKeyYP256Hex = "7903FE1008B8BC99A41AE9E95628BC64F2F1B20C2D7E9F517... constant privKeyValueP256Hex (line 48) | privKeyValueP256Hex = "C9AFA9D845BA75166B5C215767B1D6934E50C3DB36E89B127... constant uncompressedP256Hex (line 49) | uncompressedP256Hex = "04" + pubKeyXP256Hex + pubKeyYP256Hex constant pubKeyXP384Hex (line 52) | pubKeyXP384Hex = "EC3A4E415B4E19A4568618029F427FA5DA9A8BC4AE92E02E0... constant pubKeyYP384Hex (line 53) | pubKeyYP384Hex = "8015D9B72D7D57244EA8EF9AC0C621896708A59367F9DFB9F... constant privKeyValueP384Hex (line 54) | privKeyValueP384Hex = "6B9D3DAD2E1B8C1C05B19875B6659F4DE23C3B667BF297BA9... constant uncompressedP384Hex (line 55) | uncompressedP384Hex = "04" + pubKeyXP384Hex + pubKeyYP384Hex constant pubKeyXP521Hex (line 58) | pubKeyXP521Hex = "01894550D0785932E00EAA23B694F213F8C3121F86DC97A04... constant pubKeyYP521Hex (line 59) | pubKeyYP521Hex = "00493101C962CD4D2FDDF782285E64584139C2F91B47F87FF... constant privKeyValueP521Hex (line 60) | privKeyValueP521Hex = "00FAD06DAA62BA3B25D2FB40133DA757205DE67F5BB0018FE... constant uncompressedP521Hex (line 61) | uncompressedP521Hex = "04" + pubKeyXP521Hex + pubKeyYP521Hex function mustDecodeHex (line 64) | func mustDecodeHex(t *testing.T, hexStr string) []byte { function marshalKey (line 73) | func marshalKey(t *testing.T, message proto.Message) []byte { type testParams (line 81) | type testParams struct method HasIDRequirement (line 83) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 85) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 87) | type testKey struct method Parameters (line 89) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 91) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 93) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 95) | func TestSerializePublicKeyFails(t *testing.T) { function TestSerializePublicKey (line 122) | func TestSerializePublicKey(t *testing.T) { function TestParsePublicKeyFails (line 144) | func TestParsePublicKeyFails(t *testing.T) { function mustCreatePublicKey (line 331) | func mustCreatePublicKey(t *testing.T, uncompressedPoint []byte, idRequi... function mustCreatePrivateKey (line 345) | func mustCreatePrivateKey(t *testing.T, privateKeyValue secretdata.Bytes... type testCase (line 354) | type testCase struct function testCases (line 362) | func testCases(t *testing.T) []testCase { function TestParsePublicKey (line 609) | func TestParsePublicKey(t *testing.T) { function TestParsePrivateKeyFails (line 664) | func TestParsePrivateKeyFails(t *testing.T) { function TestParsePrivateKey (line 806) | func TestParsePrivateKey(t *testing.T) { function TestSerializePrivateKey (line 872) | func TestSerializePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 895) | func TestSerializePrivateKeyFails(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 922) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 949) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersParsingTestValue (line 962) | type parametersParsingTestValue struct function mustCreateParameters (line 968) | func mustCreateParameters(t *testing.T, curveType CurveType, hashType Ha... function mustCreateParametersParsingTestValues (line 977) | func mustCreateParametersParsingTestValues(t *testing.T) []*parametersPa... function TestSerializeParameters (line 1226) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 1240) | func TestParseParameters(t *testing.T) { function TestParseParametersFails (line 1254) | func TestParseParametersFails(t *testing.T) { FILE: signature/ecdsa/signer.go type signer (line 33) | type signer struct method Sign (line 82) | func (e *signer) Sign(data []byte) ([]byte, error) { function NewSigner (line 47) | func NewSigner(k *PrivateKey, _ internalapi.Token) (tink.Signer, error) { function signerConstructor (line 112) | func signerConstructor(key key.Key) (any, error) { FILE: signature/ecdsa/signer_key_manager_test.go type ecdsaParams (line 36) | type ecdsaParams struct function TestSignerKeyManagerGetPrimitiveBasic (line 41) | func TestSignerKeyManagerGetPrimitiveBasic(t *testing.T) { function TestSignerKeyManagerGetPrimitiveWithInvalidInput_InvalidParams (line 81) | func TestSignerKeyManagerGetPrimitiveWithInvalidInput_InvalidParams(t *t... function TestSignerKeyManagerGetPrimitiveWithInvalidInput_InvalidVersion (line 110) | func TestSignerKeyManagerGetPrimitiveWithInvalidInput_InvalidVersion(t *... function TestSignerKeyManagerGetPrimitiveWithInvalidInput_NilInputAndParams (line 127) | func TestSignerKeyManagerGetPrimitiveWithInvalidInput_NilInputAndParams(... function TestSignerKeyManagerNewKeyBasic (line 152) | func TestSignerKeyManagerNewKeyBasic(t *testing.T) { function TestSignerKeyManagerNewKeyWithInvalidInput_HashAndCurveType (line 174) | func TestSignerKeyManagerNewKeyWithInvalidInput_HashAndCurveType(t *test... function TestSignerKeyManagerNewKeyWithInvalidInput_InvalidEncoding (line 192) | func TestSignerKeyManagerNewKeyWithInvalidInput_InvalidEncoding(t *testi... function TestSignerKeyManagerNewKeyWithInvalidInput_NilInputOrParameters (line 212) | func TestSignerKeyManagerNewKeyWithInvalidInput_NilInputOrParameters(t *... function TestSignerKeyManagerPrivateKeyManagerGetPublicKeyErrors (line 235) | func TestSignerKeyManagerPrivateKeyManagerGetPublicKeyErrors(t *testing.... function TestSignerKeyManagerNewKeyMultipleTimes (line 274) | func TestSignerKeyManagerNewKeyMultipleTimes(t *testing.T) { function TestSignerKeyManagerNewKeyDataBasic (line 314) | func TestSignerKeyManagerNewKeyDataBasic(t *testing.T) { function TestSignerKeyManagerNewKeyDataWithInvalidInput (line 348) | func TestSignerKeyManagerNewKeyDataWithInvalidInput(t *testing.T) { function TestPublicKeyDataBasic (line 372) | func TestPublicKeyDataBasic(t *testing.T) { function TestPublicKeyDataWithInvalidInput (line 406) | func TestPublicKeyDataWithInvalidInput(t *testing.T) { function validateECDSAPrivateKey (line 434) | func validateECDSAPrivateKey(t *testing.T, key *ecdsapb.EcdsaPrivateKey,... function genValidECDSAParams (line 488) | func genValidECDSAParams() []ecdsaParams { function genUnkownECDSAParams (line 509) | func genUnkownECDSAParams() []ecdsaParams { function genInvalidECDSAParams (line 522) | func genInvalidECDSAParams() []ecdsaParams { function mustMarshal (line 551) | func mustMarshal(t *testing.T, msg proto.Message) []byte { FILE: signature/ecdsa/signer_verifier_test.go type primitiveTestCase (line 37) | type primitiveTestCase struct function mustCreatePrivateKey (line 46) | func mustCreatePrivateKey(t *testing.T, keyValue []byte, id uint32, para... function primitiveTestVectors (line 58) | func primitiveTestVectors(t *testing.T) []primitiveTestCase { function TestSignVerify (line 180) | func TestSignVerify(t *testing.T) { function TestVerifyWorks (line 206) | func TestVerifyWorks(t *testing.T) { function TestVerifyFails (line 243) | func TestVerifyFails(t *testing.T) { type wycheproofSuite (line 346) | type wycheproofSuite struct type wycheproofGroup (line 351) | type wycheproofGroup struct type wycheproofCase (line 362) | type wycheproofCase struct type wycheproofKey (line 368) | type wycheproofKey struct type wycheproofJWK (line 375) | type wycheproofJWK struct function hash (line 384) | func hash(sha string) ecdsa.HashType { function curve (line 397) | func curve(sha string) ecdsa.CurveType { function encoding (line 410) | func encoding(encoding string) ecdsa.SignatureEncoding { function TestWycheproof (line 421) | func TestWycheproof(t *testing.T) { FILE: signature/ecdsa/verifier.go type verifier (line 36) | type verifier struct method Verify (line 104) | func (e *verifier) Verify(signatureBytes, data []byte) error { function curveFromTinkECDSACurveType (line 45) | func curveFromTinkECDSACurveType(curveType CurveType) (elliptic.Curve, e... function hashFunctionFromEnum (line 59) | func hashFunctionFromEnum(hash HashType) (func() hash.Hash, error) { function NewVerifier (line 75) | func NewVerifier(publicKey *PublicKey, _ internalapi.Token) (tink.Verifi... function verifierConstructor (line 137) | func verifierConstructor(key key.Key) (any, error) { FILE: signature/ecdsa/verifier_key_manager_test.go function TestVerifierKeyManagerGetPrimitiveBasic (line 29) | func TestVerifierKeyManagerGetPrimitiveBasic(t *testing.T) { function TestVerifierKeyManagerWithInvalidPublicKeyFailsCreatingPrimitive (line 59) | func TestVerifierKeyManagerWithInvalidPublicKeyFailsCreatingPrimitive(t ... function TestVerifierKeyManagerGetPrimitiveWithInvalidInput_InvalidParams (line 76) | func TestVerifierKeyManagerGetPrimitiveWithInvalidInput_InvalidParams(t ... function TestVerifierKeyManagerGetPrimitiveWithInvalidInput_InvalidVersion (line 105) | func TestVerifierKeyManagerGetPrimitiveWithInvalidInput_InvalidVersion(t... function TestVerifierKeyManagerGetPrimitiveWithInvalidInput_NilInputAndParams (line 121) | func TestVerifierKeyManagerGetPrimitiveWithInvalidInput_NilInputAndParam... FILE: signature/ed25519/ed25519.go function init (line 35) | func init() { function RegisterPrimitiveConstructor (line 87) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: signature/ed25519/ed25519_test.go function TestCreateKeysetHandleFromParameters (line 24) | func TestCreateKeysetHandleFromParameters(t *testing.T) { FILE: signature/ed25519/key.go type Variant (line 38) | type Variant method String (line 54) | func (variant Variant) String() string { constant VariantUnknown (line 42) | VariantUnknown Variant = iota constant VariantTink (line 44) | VariantTink constant VariantCrunchy (line 46) | VariantCrunchy constant VariantLegacy (line 49) | VariantLegacy constant VariantNoPrefix (line 51) | VariantNoPrefix type Parameters (line 70) | type Parameters struct method Variant (line 85) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 88) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 91) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 77) | func NewParameters(variant Variant) (Parameters, error) { type PublicKey (line 100) | type PublicKey struct method KeyBytes (line 146) | func (k *PublicKey) KeyBytes() []byte { return bytes.Clone(k.keyBytes) } method OutputPrefix (line 149) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Parameters (line 152) | func (k *PublicKey) Parameters() key.Parameters { return &k.params } method IDRequirement (line 156) | func (k *PublicKey) IDRequirement() (uint32, bool) { method Equal (line 161) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 109) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { function NewPublicKey (line 126) | func NewPublicKey(keyBytes []byte, idRequirement uint32, params Paramete... type PrivateKey (line 172) | type PrivateKey struct method PrivateKeyBytes (line 218) | func (k *PrivateKey) PrivateKeyBytes() secretdata.Bytes { return k.key... method PublicKey (line 223) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 226) | func (k *PrivateKey) Parameters() key.Parameters { return &k.publicKey... method IDRequirement (line 230) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 233) | func (k *PrivateKey) OutputPrefix() []byte { return bytes.Clone(k.publ... method Equal (line 236) | func (k *PrivateKey) Equal(other key.Key) bool { function NewPrivateKey (line 181) | func NewPrivateKey(privateKeyBytes secretdata.Bytes, idRequirement uint3... function NewPrivateKeyWithPublicKey (line 199) | func NewPrivateKeyWithPublicKey(privateKeyBytes secretdata.Bytes, pubKey... function createPrivateKey (line 244) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: signature/ed25519/key_test.go function TestNewParameters (line 30) | func TestNewParameters(t *testing.T) { function TestParametersHasIDRequirement (line 69) | func TestParametersHasIDRequirement(t *testing.T) { function TestParametersEqual (line 108) | func TestParametersEqual(t *testing.T) { function TestNewPublicKeyFails (line 177) | func TestNewPublicKeyFails(t *testing.T) { function TestPublicKey (line 226) | func TestPublicKey(t *testing.T) { type TestPublicKeyParams (line 295) | type TestPublicKeyParams struct function TestPublicKeyEqualSelf (line 301) | func TestPublicKeyEqualSelf(t *testing.T) { function TestPublicKeyEqualFalse (line 316) | func TestPublicKeyEqualFalse(t *testing.T) { function TestPublicKeyKeyBytes (line 386) | func TestPublicKeyKeyBytes(t *testing.T) { constant privKeyHex (line 414) | privKeyHex = "c5aa8df43f9f837bedb7442f31dcb7b166d38535076f094b85ce3a2e0b... constant pubKeyHex (line 415) | pubKeyHex = "fc51cd8e6218a1a38da47ed00230f0580816ed13ba3303ac5deb911548... function TestPrivateKeyNewPrivateKeyWithPublicKey (line 460) | func TestPrivateKeyNewPrivateKeyWithPublicKey(t *testing.T) { function TestPrivateKeyNewPrivateKey (line 522) | func TestPrivateKeyNewPrivateKey(t *testing.T) { function TestNewPrivateKeyFails (line 580) | func TestNewPrivateKeyFails(t *testing.T) { function getTestKeyPair (line 628) | func getTestKeyPair(t *testing.T) ([]byte, []byte) { function TestNewPrivateKeyWithPublicKeyFails (line 641) | func TestNewPrivateKeyWithPublicKeyFails(t *testing.T) { function TestPrivateKeyEqualSelf (line 690) | func TestPrivateKeyEqualSelf(t *testing.T) { function TestPrivateKeyEqualFalse (line 710) | func TestPrivateKeyEqualFalse(t *testing.T) { function TestPrivateKeyKeyBytes (line 772) | func TestPrivateKeyKeyBytes(t *testing.T) { function TestKeyCreator (line 792) | func TestKeyCreator(t *testing.T) { FILE: signature/ed25519/protoserialization.go constant publicKeyProtoVersion (line 34) | publicKeyProtoVersion = 0 constant privateKeyProtoVersion (line 39) | privateKeyProtoVersion = 0 constant signerTypeURL (line 41) | signerTypeURL = "type.googleapis.com/google.crypto.tink.Ed25519Private... constant verifierTypeURL (line 42) | verifierTypeURL = "type.googleapis.com/google.crypto.tink.Ed25519PublicKey" type publicKeySerializer (line 45) | type publicKeySerializer struct method SerializeKey (line 64) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function protoOutputPrefixTypeFromVariant (line 49) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... type privateKeySerializer (line 91) | type privateKeySerializer struct method SerializeKey (line 95) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type publicKeyParser (line 130) | type publicKeyParser struct method ParseKey (line 149) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function variantFromProto (line 134) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... type privateKeyParser (line 180) | type privateKeyParser struct method ParseKey (line 184) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... type parametersSerializer (line 223) | type parametersSerializer struct method Serialize (line 227) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 250) | type parametersParser struct method Parse (line 254) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: signature/ed25519/protoserialization_test.go function mustCreateKeySerialization (line 32) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParsePublicKeyFails (line 41) | func TestParsePublicKeyFails(t *testing.T) { function TestParsePublicKey (line 100) | func TestParsePublicKey(t *testing.T) { type testParams (line 183) | type testParams struct method HasIDRequirement (line 185) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 187) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 189) | type testKey struct method Parameters (line 191) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 193) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 195) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 197) | func TestSerializePublicKeyFails(t *testing.T) { function mustCreatePublicKey (line 224) | func mustCreatePublicKey(t *testing.T, keyBytes []byte, idRequirement ui... function TestSerializePublicKey (line 237) | func TestSerializePublicKey(t *testing.T) { constant privKeyHex (line 304) | privKeyHex = "9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031c... constant pubKeyHex (line 305) | pubKeyHex = "d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f7... function getTestKeyPair (line 308) | func getTestKeyPair(t *testing.T) ([]byte, []byte) { function TestParsePrivateKeyFails (line 321) | func TestParsePrivateKeyFails(t *testing.T) { function TestParsePrivateKey (line 441) | func TestParsePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 531) | func TestSerializePrivateKeyFails(t *testing.T) { function mustCreatePrivateKey (line 558) | func mustCreatePrivateKey(t *testing.T, keyBytes secretdata.Bytes, idReq... function TestSerializePrivateKey (line 571) | func TestSerializePrivateKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 642) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function TestSerializeParameters (line 669) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 731) | func TestParseParameters(t *testing.T) { function mustMarshal (line 793) | func mustMarshal(t *testing.T, message proto.Message) []byte { function TestParseParametersFails (line 802) | func TestParseParametersFails(t *testing.T) { FILE: signature/ed25519/signer.go type signer (line 29) | type signer struct method Sign (line 52) | func (e *signer) Sign(data []byte) ([]byte, error) { function NewSigner (line 40) | func NewSigner(privateKey *PrivateKey, _ internalapi.Token) (tink.Signer... function signerConstructor (line 64) | func signerConstructor(key key.Key) (any, error) { FILE: signature/ed25519/signer_key_manager_test.go function TestSignerKeyManagerGetPrimitiveBasic (line 37) | func TestSignerKeyManagerGetPrimitiveBasic(t *testing.T) { function TestSignerKeyManagerGetPrimitiveWithInvalidInput (line 82) | func TestSignerKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestSignerKeyManagerNewKeyBasic (line 108) | func TestSignerKeyManagerNewKeyBasic(t *testing.T) { function TestSignerKeyManagerPublicKeyDataBasic (line 127) | func TestSignerKeyManagerPublicKeyDataBasic(t *testing.T) { function TestSignerKeyManagerPublicKeyDataWithInvalidInput (line 159) | func TestSignerKeyManagerPublicKeyDataWithInvalidInput(t *testing.T) { function validateED25519PrivateKey (line 184) | func validateED25519PrivateKey(key *ed25519pb.Ed25519PrivateKey) error { FILE: signature/ed25519/signer_verifier_test.go function TestSignVerifyCorrectness (line 38) | func TestSignVerifyCorrectness(t *testing.T) { function TestVerifyFails (line 162) | func TestVerifyFails(t *testing.T) { function TestSignVerify (line 243) | func TestSignVerify(t *testing.T) { type ed25519Suite (line 269) | type ed25519Suite struct type ed25519Group (line 274) | type ed25519Group struct type ed25519Case (line 283) | type ed25519Case struct type ed25519TestKey (line 289) | type ed25519TestKey struct function TestWycheproof (line 293) | func TestWycheproof(t *testing.T) { function keyPair (line 335) | func keyPair(t *testing.T, public, priv []byte, variant tinked25519.Vari... FILE: signature/ed25519/verifier.go type verifier (line 29) | type verifier struct method Verify (line 52) | func (e *verifier) Verify(signature, data []byte) error { function NewVerifier (line 40) | func NewVerifier(publicKey *PublicKey, _ internalapi.Token) (tink.Verifi... function verifierConstructor (line 70) | func verifierConstructor(key key.Key) (any, error) { FILE: signature/ed25519/verifier_key_manager_test.go function TestVerifierKeyManagerGetPrimitiveBasic (line 29) | func TestVerifierKeyManagerGetPrimitiveBasic(t *testing.T) { function TestVerifierKeyManagerGetPrimitiveWithInvalidInput (line 68) | func TestVerifierKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { FILE: signature/mldsa/key.go type Variant (line 34) | type Variant method String (line 45) | func (variant Variant) String() string { constant VariantUnknown (line 38) | VariantUnknown Variant = iota constant VariantTink (line 40) | VariantTink constant VariantNoPrefix (line 42) | VariantNoPrefix type Instance (line 57) | type Instance method String (line 70) | func (instance Instance) String() string { constant UnknownInstance (line 61) | UnknownInstance Instance = iota constant MLDSA44 (line 63) | MLDSA44 constant MLDSA65 (line 65) | MLDSA65 constant MLDSA87 (line 67) | MLDSA87 type Parameters (line 84) | type Parameters struct method Instance (line 106) | func (p *Parameters) Instance() Instance { return p.instance } method Variant (line 109) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 112) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 115) | func (p *Parameters) Equal(other key.Parameters) bool { function NewParameters (line 92) | func NewParameters(instance Instance, variant Variant) (*Parameters, err... type PublicKey (line 122) | type PublicKey struct method KeyBytes (line 189) | func (k *PublicKey) KeyBytes() []byte { return bytes.Clone(k.keyBytes) } method OutputPrefix (line 192) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Parameters (line 195) | func (k *PublicKey) Parameters() key.Parameters { return k.params } method IDRequirement (line 199) | func (k *PublicKey) IDRequirement() (uint32, bool) { method Equal (line 204) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 131) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { function checkPublicKeyLengthForInstance (line 142) | func checkPublicKeyLengthForInstance(length int, instance Instance) error { function NewPublicKey (line 169) | func NewPublicKey(keyBytes []byte, idRequirement uint32, params *Paramet... type PrivateKey (line 215) | type PrivateKey struct method PrivateKeyBytes (line 302) | func (k *PrivateKey) PrivateKeyBytes() secretdata.Bytes { return k.key... method PublicKey (line 307) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 310) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 314) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 317) | func (k *PrivateKey) OutputPrefix() []byte { return bytes.Clone(k.publ... method Equal (line 320) | func (k *PrivateKey) Equal(other key.Key) bool { function keyGenForInstance (line 228) | func keyGenForInstance(seed secretdata.Bytes, instance Instance) ([]byte... function NewPrivateKey (line 252) | func NewPrivateKey(privateKeyBytes secretdata.Bytes, idRequirement uint3... function NewPrivateKeyWithPublicKey (line 276) | func NewPrivateKeyWithPublicKey(privateKeyBytes secretdata.Bytes, pubKey... function createPrivateKey (line 330) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: signature/mldsa/key_test.go function TestNewParameters (line 32) | func TestNewParameters(t *testing.T) { function TestParametersHasIDRequirement (line 92) | func TestParametersHasIDRequirement(t *testing.T) { function TestParametersEqual (line 148) | func TestParametersEqual(t *testing.T) { constant privKey44Hex (line 178) | privKey44Hex = "dddaccfaa05b0332b3fd7269c7d42de6cbe370735431f735346ccb6b... constant pubKey44Hex (line 179) | pubKey44Hex = "6e17b61b6c7881ab6d39ee703ab4ab4888d2134e54bb0195bfd0573c... constant privKey65Hex (line 213) | privKey65Hex = "7C9935A0B07694AA0C6D10E4DB6B1ADD2FD81A25CCB148032DCD7399... constant pubKey65Hex (line 214) | pubKey65Hex = "1483236FC9F943D98417809E95405384530ED83E151E8465D34E4638... constant msg65Hex (line 269) | msg65Hex = "D81C4D8D734FCBFBEADE3D3F8A039FAA2A2C9957E835AD55B22E75BF57BB... constant sig44Hex (line 270) | sig44Hex = "4dd0ca0f6bed11fe96e3193684b260366782ee503a9caa9fac56011b858d... constant sig65Hex (line 331) | sig65Hex = "BD0D51DB2F225AC6D3DA8F0C2439B0BCDA26EFF7EFA67CFD3C2B98EFA084... constant privKey87Hex (line 424) | privKey87Hex = "7C9935A0B07694AA0C6D10E4DB6B1ADD2FD81A25CCB148032DCD7399... constant pubKey87Hex (line 425) | pubKey87Hex = "903EFBF16CD1F779825106F76DE12DF49CA4371B57117480702A1D94... constant msg87Hex (line 497) | msg87Hex = "D81C4D8D734FCBFBEADE3D3F8A039FAA2A2C9957E835AD55B22E75BF57BB... constant sig87Hex (line 498) | sig87Hex = "A8DF889472D431F08DC5A3A28166AA9DD9AC5A9CF18B7D3D91B27B68E26D... function TestNewPublicKeyFails (line 629) | func TestNewPublicKeyFails(t *testing.T) { function TestPublicKey (line 701) | func TestPublicKey(t *testing.T) { function TestPublicKeyEqualSelf (line 794) | func TestPublicKeyEqualSelf(t *testing.T) { type stubKey (line 836) | type stubKey struct method Parameters (line 840) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 841) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 842) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestPublicKeyEqual_FalseIfDifferentType (line 844) | func TestPublicKeyEqual_FalseIfDifferentType(t *testing.T) { type TestPublicKeyParams (line 886) | type TestPublicKeyParams struct function TestPublicKeyEqualFalse (line 894) | func TestPublicKeyEqualFalse(t *testing.T) { function TestPublicKeyKeyBytes (line 985) | func TestPublicKeyKeyBytes(t *testing.T) { function TestPrivateKeyNewPrivateKeyWithPublicKey (line 1080) | func TestPrivateKeyNewPrivateKeyWithPublicKey(t *testing.T) { function TestPrivateKeyNewPrivateKey (line 1142) | func TestPrivateKeyNewPrivateKey(t *testing.T) { function TestNewPrivateKeyFails (line 1200) | func TestNewPrivateKeyFails(t *testing.T) { function TestNewPrivateKeyWithPublicKeyFails (line 1255) | func TestNewPrivateKeyWithPublicKeyFails(t *testing.T) { function TestPrivateKeyEqualSelf (line 1312) | func TestPrivateKeyEqualSelf(t *testing.T) { function TestPrivateKeyEqual_FalseIfDifferentType (line 1339) | func TestPrivateKeyEqual_FalseIfDifferentType(t *testing.T) { function TestPrivateKeyEqualFalse (line 1366) | func TestPrivateKeyEqualFalse(t *testing.T) { function TestPrivateKeyKeyBytes (line 1435) | func TestPrivateKeyKeyBytes(t *testing.T) { function getTestKeyPair (line 1463) | func getTestKeyPair(t *testing.T, instance mldsa.Instance) ([]byte, []by... function TestKeyCreator (line 1502) | func TestKeyCreator(t *testing.T) { function TestPrivateKeyCreator_Fails (line 1525) | func TestPrivateKeyCreator_Fails(t *testing.T) { FILE: signature/mldsa/mldsa.go function init (line 35) | func init() { function RegisterPrimitiveConstructor (line 87) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: signature/mldsa/mldsa_test.go function TestCreateKeysetHandleFromParameters (line 24) | func TestCreateKeysetHandleFromParameters(t *testing.T) { FILE: signature/mldsa/protoserialization.go constant publicKeyProtoVersion (line 34) | publicKeyProtoVersion = 0 constant privateKeyProtoVersion (line 39) | privateKeyProtoVersion = 0 constant signerTypeURL (line 41) | signerTypeURL = "type.googleapis.com/google.crypto.tink.MlDsaPrivateKey" constant verifierTypeURL (line 42) | verifierTypeURL = "type.googleapis.com/google.crypto.tink.MlDsaPublicKey" type publicKeySerializer (line 45) | type publicKeySerializer struct method SerializeKey (line 73) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function protoOutputPrefixTypeFromVariant (line 49) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function protoMlDsaInstanceFromInstance (line 60) | func protoMlDsaInstanceFromInstance(instance Instance) (mldsapb.MlDsaIns... type privateKeySerializer (line 110) | type privateKeySerializer struct method SerializeKey (line 114) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type publicKeyParser (line 159) | type publicKeyParser struct method ParseKey (line 187) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function variantFromProto (line 163) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... function instanceFromProto (line 174) | func instanceFromProto(instanceType mldsapb.MlDsaInstance) (Instance, er... type privateKeyParser (line 222) | type privateKeyParser struct method ParseKey (line 226) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... type parametersSerializer (line 269) | type parametersSerializer struct method Serialize (line 273) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 303) | type parametersParser struct method Parse (line 307) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: signature/mldsa/protoserialization_test.go constant privKeyHex (line 35) | privKeyHex = "84d1e8cb37e37dc5a172706588fd367a85e9b10669a791bff7a1d77c06... constant pubKeyHex (line 36) | pubKeyHex = "51a09ab1023acc98a397a0a019307fd3a3f43a8d3064197725e7fdc06d... constant privKeyHex44 (line 91) | privKeyHex44 = "dddaccfaa05b0332b3fd7269c7d42de6cbe370735431f735346ccb6b... constant pubKeyHex44 (line 92) | pubKeyHex44 = "6e17b61b6c7881ab6d39ee703ab4ab4888d2134e54bb0195bfd0573c... function mustCreateKeySerialization (line 128) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParsePublicKeyFails (line 137) | func TestParsePublicKeyFails(t *testing.T) { function TestParsePublicKey (line 206) | func TestParsePublicKey(t *testing.T) { type testParams (line 322) | type testParams struct method HasIDRequirement (line 324) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 326) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 328) | type testKey struct method Parameters (line 330) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 332) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 334) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 336) | func TestSerializePublicKeyFails(t *testing.T) { function mustCreatePublicKey (line 363) | func mustCreatePublicKey(t *testing.T, instance Instance, keyBytes []byt... function TestSerializePublicKey (line 376) | func TestSerializePublicKey(t *testing.T) { function getTestKeyPair (line 464) | func getTestKeyPair(t *testing.T) ([]byte, []byte) { function TestParsePrivateKeyFails (line 477) | func TestParsePrivateKeyFails(t *testing.T) { function TestParsePrivateKey (line 611) | func TestParsePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 686) | func TestSerializePrivateKeyFails(t *testing.T) { function mustCreatePrivateKey (line 713) | func mustCreatePrivateKey(t *testing.T, instance Instance, keyBytes secr... function TestSerializePrivateKey (line 726) | func TestSerializePrivateKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 826) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function TestSerializeParameters (line 853) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 942) | func TestParseParameters(t *testing.T) { function mustMarshal (line 1031) | func mustMarshal(t *testing.T, format proto.Message) []byte { function TestParseParametersFails (line 1040) | func TestParseParametersFails(t *testing.T) { FILE: signature/mldsa/signer.go type signer (line 29) | type signer struct method Sign (line 69) | func (e *signer) Sign(data []byte) ([]byte, error) { function mldsaSecretKeyFromPrivateKey (line 37) | func mldsaSecretKeyFromPrivateKey(privateKey *PrivateKey) (*mldsa.Secret... function NewSigner (line 53) | func NewSigner(privateKey *PrivateKey, _ internalapi.Token) (tink.Signer... function signerConstructor (line 77) | func signerConstructor(key key.Key) (any, error) { FILE: signature/mldsa/signer_key_manager_test.go function TestSignerKeyManagerGetPrimitiveBasic (line 35) | func TestSignerKeyManagerGetPrimitiveBasic(t *testing.T) { function TestSignerKeyManagerGetPrimitiveWithInvalidInput (line 107) | func TestSignerKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestSignerKeyManagerNewKeyDataBasic (line 152) | func TestSignerKeyManagerNewKeyDataBasic(t *testing.T) { function TestSignerKeyManagerPublicKeyDataBasic (line 200) | func TestSignerKeyManagerPublicKeyDataBasic(t *testing.T) { function TestSignerKeyManagerPublicKeyDataWithInvalidInput (line 252) | func TestSignerKeyManagerPublicKeyDataWithInvalidInput(t *testing.T) { function newMLDSAPrivateKey (line 297) | func newMLDSAPrivateKey(instance mldsapb.MlDsaInstance) *mldsapb.MlDsaPr... function validateMLDSAPrivateKey (line 349) | func validateMLDSAPrivateKey(instance mldsapb.MlDsaInstance, key *mldsap... FILE: signature/mldsa/signer_verifier_test.go function TestSignVerifyManager (line 33) | func TestSignVerifyManager(t *testing.T) { function TestVerifyFails (line 149) | func TestVerifyFails(t *testing.T) { function TestSignVerifyCorrectness (line 254) | func TestSignVerifyCorrectness(t *testing.T) { function TestWycheproof (line 328) | func TestWycheproof(t *testing.T) { FILE: signature/mldsa/verifier.go type verifier (line 28) | type verifier struct method Verify (line 68) | func (v *verifier) Verify(signature, data []byte) error { function mldsaPublicKeyFromPublicKey (line 36) | func mldsaPublicKeyFromPublicKey(publicKey *PublicKey) (*mldsa.PublicKey... function NewVerifier (line 52) | func NewVerifier(publicKey *PublicKey, _ internalapi.Token) (tink.Verifi... function verifierConstructor (line 75) | func verifierConstructor(key key.Key) (any, error) { FILE: signature/mldsa/verifier_key_manager_test.go function TestVerifierKeyManagerGetPrimitiveBasic (line 29) | func TestVerifierKeyManagerGetPrimitiveBasic(t *testing.T) { function TestVerifierKeyManagerGetPrimitiveWithInvalidInput (line 91) | func TestVerifierKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function newMLDSAPublicKey (line 137) | func newMLDSAPublicKey(instance mldsapb.MlDsaInstance) *mldsapb.MlDsaPub... function mustDecodeString (line 141) | func mustDecodeString(t *testing.T, s string) []byte { FILE: signature/rsassapkcs1/key.go type Variant (line 42) | type Variant method String (line 58) | func (variant Variant) String() string { constant VariantUnknown (line 46) | VariantUnknown Variant = iota constant VariantTink (line 48) | VariantTink constant VariantCrunchy (line 50) | VariantCrunchy constant VariantLegacy (line 53) | VariantLegacy constant VariantNoPrefix (line 55) | VariantNoPrefix type HashType (line 74) | type HashType method String (line 87) | func (ht HashType) String() string { constant UnknownHashType (line 78) | UnknownHashType HashType = iota constant SHA256 (line 80) | SHA256 constant SHA384 (line 82) | SHA384 constant SHA512 (line 84) | SHA512 constant f4 (line 102) | f4 = 65537 constant maxExponent (line 103) | maxExponent = 1<<31 - 1 type Parameters (line 107) | type Parameters struct method HashType (line 117) | func (p *Parameters) HashType() HashType { return p.hashType } method PublicExponent (line 120) | func (p *Parameters) PublicExponent() int { return p.publicExponent } method ModulusSizeBits (line 123) | func (p *Parameters) ModulusSizeBits() int { return p.modulusSizeBits } method Variant (line 126) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 167) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 170) | func (p *Parameters) Equal(other key.Parameters) bool { function checkValidHash (line 128) | func checkValidHash(hashType HashType) error { function NewParameters (line 136) | func NewParameters(modulusSizeBits int, hashType HashType, publicExponen... type PublicKey (line 181) | type PublicKey struct method Modulus (line 233) | func (k *PublicKey) Modulus() []byte { return bytes.Clone(k.modulus) } method Parameters (line 236) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 239) | func (k *PublicKey) IDRequirement() (uint32, bool) { method OutputPrefix (line 244) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Equal (line 247) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 190) | func calculateOutputPrefix(variant Variant, idRequirement uint32) ([]byt... function NewPublicKey (line 208) | func NewPublicKey(modulus []byte, idRequirement uint32, parameters *Para... type PrivateKey (line 256) | type PrivateKey struct method P (line 324) | func (k *PrivateKey) P() secretdata.Bytes { method Q (line 329) | func (k *PrivateKey) Q() secretdata.Bytes { method D (line 334) | func (k *PrivateKey) D() secretdata.Bytes { method DP (line 339) | func (k *PrivateKey) DP() secretdata.Bytes { method DQ (line 344) | func (k *PrivateKey) DQ() secretdata.Bytes { method QInv (line 349) | func (k *PrivateKey) QInv() secretdata.Bytes { method PublicKey (line 354) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 357) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 360) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 363) | func (k *PrivateKey) OutputPrefix() []byte { return k.publicKey.Output... method Equal (line 366) | func (k *PrivateKey) Equal(other key.Key) bool { type PrivateKeyValues (line 262) | type PrivateKeyValues struct function privateKeySelfCheck (line 273) | func privateKeySelfCheck(privateKey *PrivateKey) error { function NewPrivateKey (line 294) | func NewPrivateKey(publicKey *PublicKey, opts PrivateKeyValues) (*Privat... function createPrivateKey (line 371) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: signature/rsassapkcs1/key_test.go constant f4 (line 35) | f4 = 65537 function TestNewParametersInvalidValues (line 38) | func TestNewParametersInvalidValues(t *testing.T) { function TestNewParameters (line 100) | func TestNewParameters(t *testing.T) { type testParams (line 139) | type testParams struct function TestNewParametersDifferentParameters (line 146) | func TestNewParametersDifferentParameters(t *testing.T) { constant n2048Base64 (line 232) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 233) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 234) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 235) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 236) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 237) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 238) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... constant n2048BigInt16 (line 242) | n2048BigInt16 = "b3795dceabcbd81fc437fd1bef3f441fb3e795e0def5dcb6c84d... constant d2048BigInt10 (line 243) | d2048BigInt10 = "3221514782158521239046688407258406330028553231891834... constant p2048BigInt10 (line 244) | p2048BigInt10 = "1587749433534901134897530121352781110985412793687876... constant q2048BigInt10 (line 245) | q2048BigInt10 = "1426957184172900756514355138048761096234366854769167... constant dp2048BigInt10 (line 246) | dp2048BigInt10 = "5475733203649211201451695348095817426872194327316383... constant dq2048BigInt10 (line 247) | dq2048BigInt10 = "4123864239778253555759629875435789731400416288406247... constant qInv2048BigInt10 (line 248) | qInv2048BigInt10 = "4336928407136170912565699396923159384239288452243762... constant n3072Base64 (line 252) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJ... constant d3072Base64 (line 253) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuas... constant p3072Base64 (line 254) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_... constant q3072Base64 (line 255) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0... constant dp3072Base64 (line 256) | dp3072Base64 = "8b-0DNVlc5cay162WwzSv0UCIo8s7KWkXDdmEVHL_bCgooIztgD-cn... constant dq3072Base64 (line 257) | dq3072Base64 = "Pjwq6NNi3JKU4txx0gUPfd_Z6lTVwwKDZq9nvhoJzeev5y4nclPELa... constant qInv3072Base64 (line 258) | qInv3072Base64 = "GMyXHpGG-GwUTRQM6rvJriLJTo2FdTVvtqSgM5ke8hC6-jmkzRq_qZ... constant n4096Base64 (line 262) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUv... constant d4096Base64 (line 263) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1... constant p4096Base64 (line 264) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSO... constant q4096Base64 (line 265) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i... constant dp4096Base64 (line 266) | dp4096Base64 = "gVSGqrCgiWv5fxPj6x9_XEkZW0nMO2J3QSo2iHmLGPRkIt9HnLlBs7... constant dq4096Base64 (line 267) | dq4096Base64 = "th2E_5NKTkN7Fu4bS5_fSuEzcLU4W956VGShI8A0PfV1-eEo7535RC... constant qInv4096Base64 (line 268) | qInv4096Base64 = "IvuOX82bdnEE5xJE21MFjBgGHhsNH2O3Pi1ZqV4qEM2HQmoz2hPCh8... function mustDecodeBase64 (line 271) | func mustDecodeBase64(t *testing.T, value string) []byte { function TestNewPublicKeyInvalidValues (line 280) | func TestNewPublicKeyInvalidValues(t *testing.T) { type testCase (line 348) | type testCase struct function testCases (line 358) | func testCases(t *testing.T) []testCase { function TestNewPublicKey (line 395) | func TestNewPublicKey(t *testing.T) { function TestNewPublicKeyMinMaxValues (line 433) | func TestNewPublicKeyMinMaxValues(t *testing.T) { function mustCreateParameters (line 485) | func mustCreateParameters(t *testing.T, modulusSizeBits int, hashType rs... function mustCreatePublicKey (line 494) | func mustCreatePublicKey(t *testing.T, modulus []byte, idRequirement uin... function TestNewPublicKeyEqualFailsIfDifferentKeys (line 503) | func TestNewPublicKeyEqualFailsIfDifferentKeys(t *testing.T) { function TestPublicKeyOutputPrefix (line 547) | func TestPublicKeyOutputPrefix(t *testing.T) { function TestNewPrivateKeyInvalidValues (line 596) | func TestNewPrivateKeyInvalidValues(t *testing.T) { type privateKeyTestCase (line 687) | type privateKeyTestCase struct function setStringToBigInt (line 696) | func setStringToBigInt(t *testing.T, s string, base int) *big.Int { function privateKeyTestCases (line 705) | func privateKeyTestCases(t *testing.T) []privateKeyTestCase { function TestNewPrivateKey (line 791) | func TestNewPrivateKey(t *testing.T) { function TestNewPrivateKeyEqualFailsIfKeysAreDifferent (line 845) | func TestNewPrivateKeyEqualFailsIfKeysAreDifferent(t *testing.T) { function TestPrivateKeyCreator (line 957) | func TestPrivateKeyCreator(t *testing.T) { function TestPrivateKeyCreator_FailsWithInvalidParameters (line 1001) | func TestPrivateKeyCreator_FailsWithInvalidParameters(t *testing.T) { FILE: signature/rsassapkcs1/protoserialization.go constant publicKeyProtoVersion (line 37) | publicKeyProtoVersion = 0 constant privateKeyProtoVersion (line 42) | privateKeyProtoVersion = 0 constant signerTypeURL (line 44) | signerTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPkcs1Pri... constant verifierTypeURL (line 45) | verifierTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPkcs1Pub... type publicKeySerializer (line 48) | type publicKeySerializer struct method SerializeKey (line 80) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function protoOutputPrefixTypeFromVariant (line 52) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function protoHashValueFromHashType (line 67) | func protoHashValueFromHashType(hashType HashType) (commonpb.HashType, e... type publicKeyParser (line 118) | type publicKeyParser struct method ParseKey (line 163) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function variantFromProto (line 122) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... function hashTypeFromProto (line 137) | func hashTypeFromProto(hashType commonpb.HashType) (HashType, error) { function parseParameters (line 150) | func parseParameters(protoHashType commonpb.HashType, outputPrefixType t... type privateKeyParser (line 190) | type privateKeyParser struct method ParseKey (line 198) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... function removeLeadingZeros (line 194) | func removeLeadingZeros(keyBytes []byte) []byte { type privateKeySerializer (line 264) | type privateKeySerializer struct method SerializeKey (line 268) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type parametersSerializer (line 331) | type parametersSerializer struct method Serialize (line 335) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 366) | type parametersParser struct method Parse (line 370) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: signature/rsassapkcs1/protoserialization_test.go constant n2048Base64 (line 38) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 39) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 40) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 41) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 42) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 43) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 44) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... constant n3072Base64 (line 48) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJ... constant d3072Base64 (line 49) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuas... constant p3072Base64 (line 50) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_... constant q3072Base64 (line 51) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0... constant dp3072Base64 (line 52) | dp3072Base64 = "8b-0DNVlc5cay162WwzSv0UCIo8s7KWkXDdmEVHL_bCgooIztgD-cn... constant dq3072Base64 (line 53) | dq3072Base64 = "Pjwq6NNi3JKU4txx0gUPfd_Z6lTVwwKDZq9nvhoJzeev5y4nclPELa... constant qInv3072Base64 (line 54) | qInv3072Base64 = "GMyXHpGG-GwUTRQM6rvJriLJTo2FdTVvtqSgM5ke8hC6-jmkzRq_qZ... constant n4096Base64 (line 58) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUv... constant d4096Base64 (line 59) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1... constant p4096Base64 (line 60) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSO... constant q4096Base64 (line 61) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i... constant dp4096Base64 (line 62) | dp4096Base64 = "gVSGqrCgiWv5fxPj6x9_XEkZW0nMO2J3QSo2iHmLGPRkIt9HnLlBs7... constant dq4096Base64 (line 63) | dq4096Base64 = "th2E_5NKTkN7Fu4bS5_fSuEzcLU4W956VGShI8A0PfV1-eEo7535RC... constant qInv4096Base64 (line 64) | qInv4096Base64 = "IvuOX82bdnEE5xJE21MFjBgGHhsNH2O3Pi1ZqV4qEM2HQmoz2hPCh8... constant n2048Base64Short (line 67) | n2048Base64Short = "s3tBtRJT0gQfXrSWzicHNV-oWlaZ-Zw59s_NoZU1H1f5zuZKO... constant d2048Base64Short (line 68) | d2048Base64Short = "ofOWVs0y1U7i_5H0ghC1cHPgdaOvTIyrwQnBgwwf4yh_QTKLx... constant p2048Base64Short (line 69) | p2048Base64Short = "8ZDa2uxtQRFgV0hdz_y_bW86ufU0kQaS39hy6e_NjWy42gaDs... constant q2048Base64Short (line 70) | q2048Base64Short = "vjS4PXyXl4cyPaCzjZTxJttM6xO2cuIglNvm2PGu_ZtX78U1s... constant dp2048Base64Short (line 71) | dp2048Base64Short = "S-eZbWsXFXgRTrvVhpJD0G5ABMiw4NUw95d63FlWvJaqKxAa-... constant dq2048Base64Short (line 72) | dq2048Base64Short = "DetVwEop3dDrAE-OVEIeE7XgvyNGKsoZkEs3bZDiOXTwzn8kG... constant qInv2048Base64Short (line 73) | qInv2048Base64Short = "12-Ru9ZuczoydYqX5L1mDyE47bMy9SoXw-aBKRd9i0lYCX0nA... function mustDecodeBase64 (line 76) | func mustDecodeBase64(t *testing.T, value string) []byte { function mustCreateKeySerialization (line 85) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParsePublicKeyFails (line 94) | func TestParsePublicKeyFails(t *testing.T) { function mustCreateParameters (line 183) | func mustCreateParameters(t *testing.T, modulusSizeBits int, hashType Ha... function mustCreatePublicKey (line 192) | func mustCreatePublicKey(t *testing.T, modulus []byte, idRequirement uin... function TestParsePublicKeyWithZeroPaddingModulus (line 201) | func TestParsePublicKeyWithZeroPaddingModulus(t *testing.T) { function TestParseAndSerializePublicKey (line 232) | func TestParseAndSerializePublicKey(t *testing.T) { type testParams (line 443) | type testParams struct method HasIDRequirement (line 445) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 447) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 449) | type testKey struct method Parameters (line 451) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 453) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 455) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 457) | func TestSerializePublicKeyFails(t *testing.T) { function mustMarshalProto (line 484) | func mustMarshalProto(t *testing.T, message proto.Message) []byte { function TestParsePrivateKeyFails (line 493) | func TestParsePrivateKeyFails(t *testing.T) { function mustCreatePrivateKey (line 683) | func mustCreatePrivateKey(t *testing.T, publicKey *PublicKey, privateKey... function TestParsePrivateKeyWithZeroPaddingValues (line 692) | func TestParsePrivateKeyWithZeroPaddingValues(t *testing.T) { function TestParseAndSerializePrivateKey (line 737) | func TestParseAndSerializePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 1051) | func TestSerializePrivateKeyFails(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 1078) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 1105) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersParserTest (line 1115) | type parametersParserTest struct function mustCreateParametersParserTests (line 1121) | func mustCreateParametersParserTests(t *testing.T) []parametersParserTest { function TestSerializeParameters (line 1703) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 1717) | func TestParseParameters(t *testing.T) { function TestParseParametersFails (line 1731) | func TestParseParametersFails(t *testing.T) { FILE: signature/rsassapkcs1/rsassapkcs1.go function init (line 34) | func init() { function RegisterPrimitiveConstructor (line 86) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: signature/rsassapkcs1/rsassapkcs1_test.go function TestCreateKeysetHandleFromParameters (line 25) | func TestCreateKeysetHandleFromParameters(t *testing.T) { FILE: signature/rsassapkcs1/signer.go type signer (line 28) | type signer struct method Sign (line 51) | func (s *signer) Sign(data []byte) ([]byte, error) { function NewSigner (line 38) | func NewSigner(privateKey *PrivateKey, _ internalapi.Token) (tink.Signer... function signerConstructor (line 63) | func signerConstructor(key key.Key) (any, error) { FILE: signature/rsassapkcs1/signer_key_manager_test.go constant privateKeyTypeURL (line 37) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPkcs1P... function TestSignerKeyManagerDoesSupport (line 39) | func TestSignerKeyManagerDoesSupport(t *testing.T) { function TestTypeURL (line 52) | func TestTypeURL(t *testing.T) { function TestSignerKeyManagerPublicKeyData (line 62) | func TestSignerKeyManagerPublicKeyData(t *testing.T) { function TestSignerKeyManagerPrimitiveSignVerify (line 94) | func TestSignerKeyManagerPrimitiveSignVerify(t *testing.T) { function TestSignerKeyManagerPrimitiveWithInvalidInputFails (line 159) | func TestSignerKeyManagerPrimitiveWithInvalidInputFails(t *testing.T) { function TestSignerKeyManagerPrimitiveWithNilOrEmptyKeyFails (line 370) | func TestSignerKeyManagerPrimitiveWithNilOrEmptyKeyFails(t *testing.T) { function TestSignerKeyManagerPrimitiveWithCorruptedKeyFails (line 382) | func TestSignerKeyManagerPrimitiveWithCorruptedKeyFails(t *testing.T) { function TestSignerKeyManagerPrimitiveNewKey (line 402) | func TestSignerKeyManagerPrimitiveNewKey(t *testing.T) { function TestSignerKeyManagerPrimitiveNewKeyWithInvalidInputFails (line 447) | func TestSignerKeyManagerPrimitiveNewKeyWithInvalidInputFails(t *testing... function TestSignerKeyManagerPrimitiveNewKeyData (line 504) | func TestSignerKeyManagerPrimitiveNewKeyData(t *testing.T) { function TestSignerKeyManagerPrimitiveNISTTestVectors (line 535) | func TestSignerKeyManagerPrimitiveNISTTestVectors(t *testing.T) { FILE: signature/rsassapkcs1/signer_verifier_test.go function TestVerifyWorks (line 28) | func TestVerifyWorks(t *testing.T) { function TestSignVerify (line 188) | func TestSignVerify(t *testing.T) { function TestVerifyFails (line 221) | func TestVerifyFails(t *testing.T) { FILE: signature/rsassapkcs1/verifier.go type verifier (line 31) | type verifier struct method Verify (line 57) | func (v *verifier) Verify(sig, data []byte) error { function NewVerifier (line 41) | func NewVerifier(pubKey *PublicKey, _ internalapi.Token) (tink.Verifier,... function verifierConstructor (line 69) | func verifierConstructor(key key.Key) (any, error) { FILE: signature/rsassapkcs1/verifier_key_manager_test.go constant publicKeyTypeURL (line 34) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPkcs1Pu... function makeValidRSAPKCS1Key (line 36) | func makeValidRSAPKCS1Key() (*rsassapkcs1pb.RsaSsaPkcs1PrivateKey, error) { function TestVerifierKeyManagerDoesSupport (line 60) | func TestVerifierKeyManagerDoesSupport(t *testing.T) { function TestVerifierKeyManagerTypeURL (line 73) | func TestVerifierKeyManagerTypeURL(t *testing.T) { function TestVerifierKeyManagerNotImplemented (line 83) | func TestVerifierKeyManagerNotImplemented(t *testing.T) { function TestVerifierKeyManagerPrimitive (line 106) | func TestVerifierKeyManagerPrimitive(t *testing.T) { function TestVerifierKeyManagerPrimitiveWithInvalidInput (line 150) | func TestVerifierKeyManagerPrimitiveWithInvalidInput(t *testing.T) { type nistRSATestKey (line 241) | type nistRSATestKey struct type nistRSAPKCS1TestVector (line 294) | type nistRSAPKCS1TestVector struct method ToProtoKey (line 302) | func (t *nistRSAPKCS1TestVector) ToProtoKey() (*rsassapkcs1pb.RsaSsaPk... function TestVerifierKeyManagerPrimitiveNISTTestVectors (line 424) | func TestVerifierKeyManagerPrimitiveNISTTestVectors(t *testing.T) { FILE: signature/rsassapss/key.go type Variant (line 42) | type Variant method String (line 58) | func (variant Variant) String() string { constant VariantUnknown (line 46) | VariantUnknown Variant = iota constant VariantTink (line 48) | VariantTink constant VariantCrunchy (line 50) | VariantCrunchy constant VariantLegacy (line 53) | VariantLegacy constant VariantNoPrefix (line 55) | VariantNoPrefix type HashType (line 74) | type HashType method String (line 87) | func (ht HashType) String() string { constant UnknownHashType (line 78) | UnknownHashType HashType = iota constant SHA256 (line 80) | SHA256 constant SHA384 (line 82) | SHA384 constant SHA512 (line 84) | SHA512 constant f4 (line 102) | f4 = 65537 constant maxExponent (line 103) | maxExponent = 1<<31 - 1 type Parameters (line 107) | type Parameters struct method SigHashType (line 119) | func (p *Parameters) SigHashType() HashType { return p.sigHashType } method MGF1HashType (line 122) | func (p *Parameters) MGF1HashType() HashType { return p.mgf1HashType } method PublicExponent (line 125) | func (p *Parameters) PublicExponent() int { return p.publicExponent } method SaltLengthBytes (line 128) | func (p *Parameters) SaltLengthBytes() int { return p.saltLengthBytes } method ModulusSizeBits (line 131) | func (p *Parameters) ModulusSizeBits() int { return p.modulusSizeBits } method Variant (line 134) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 192) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 195) | func (p *Parameters) Equal(other key.Parameters) bool { function checkValidHash (line 136) | func checkValidHash(hashType HashType) error { type ParametersValues (line 144) | type ParametersValues struct function NewParameters (line 153) | func NewParameters(values ParametersValues, variant Variant) (*Parameter... type PublicKey (line 208) | type PublicKey struct method Modulus (line 260) | func (k *PublicKey) Modulus() []byte { return bytes.Clone(k.modulus) } method Parameters (line 263) | func (k *PublicKey) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 266) | func (k *PublicKey) IDRequirement() (uint32, bool) { method OutputPrefix (line 271) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Equal (line 274) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 217) | func calculateOutputPrefix(variant Variant, idRequirement uint32) ([]byt... function NewPublicKey (line 235) | func NewPublicKey(modulus []byte, idRequirement uint32, parameters *Para... type PrivateKey (line 283) | type PrivateKey struct method P (line 351) | func (k *PrivateKey) P() secretdata.Bytes { method Q (line 356) | func (k *PrivateKey) Q() secretdata.Bytes { method D (line 361) | func (k *PrivateKey) D() secretdata.Bytes { method DP (line 366) | func (k *PrivateKey) DP() secretdata.Bytes { method DQ (line 371) | func (k *PrivateKey) DQ() secretdata.Bytes { method QInv (line 376) | func (k *PrivateKey) QInv() secretdata.Bytes { method PublicKey (line 381) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 384) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 387) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 390) | func (k *PrivateKey) OutputPrefix() []byte { return k.publicKey.Output... method Equal (line 393) | func (k *PrivateKey) Equal(other key.Key) bool { type PrivateKeyValues (line 289) | type PrivateKeyValues struct function privateKeySelfCheck (line 300) | func privateKeySelfCheck(privateKey *PrivateKey) error { function NewPrivateKey (line 321) | func NewPrivateKey(publicKey *PublicKey, opts PrivateKeyValues) (*Privat... function createPrivateKey (line 398) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: signature/rsassapss/key_test.go constant f4 (line 35) | f4 = 65537 function TestNewParametersInvalidValues (line 38) | func TestNewParametersInvalidValues(t *testing.T) { function TestNewParameters (line 159) | func TestNewParameters(t *testing.T) { type testParams (line 211) | type testParams struct function TestNewParametersDifferentParameters (line 216) | func TestNewParametersDifferentParameters(t *testing.T) { constant n2048Base64 (line 357) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 358) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 359) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 360) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 361) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 362) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 363) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... constant n2048BigInt16 (line 367) | n2048BigInt16 = "b3795dceabcbd81fc437fd1bef3f441fb3e795e0def5dcb6c84d... constant d2048BigInt10 (line 368) | d2048BigInt10 = "3221514782158521239046688407258406330028553231891834... constant p2048BigInt10 (line 369) | p2048BigInt10 = "1587749433534901134897530121352781110985412793687876... constant q2048BigInt10 (line 370) | q2048BigInt10 = "1426957184172900756514355138048761096234366854769167... constant dp2048BigInt10 (line 371) | dp2048BigInt10 = "5475733203649211201451695348095817426872194327316383... constant dq2048BigInt10 (line 372) | dq2048BigInt10 = "4123864239778253555759629875435789731400416288406247... constant qInv2048BigInt10 (line 373) | qInv2048BigInt10 = "4336928407136170912565699396923159384239288452243762... constant n3072Base64 (line 377) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJ... constant d3072Base64 (line 378) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuas... constant p3072Base64 (line 379) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_... constant q3072Base64 (line 380) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0... constant dp3072Base64 (line 381) | dp3072Base64 = "8b-0DNVlc5cay162WwzSv0UCIo8s7KWkXDdmEVHL_bCgooIztgD-cn... constant dq3072Base64 (line 382) | dq3072Base64 = "Pjwq6NNi3JKU4txx0gUPfd_Z6lTVwwKDZq9nvhoJzeev5y4nclPELa... constant qInv3072Base64 (line 383) | qInv3072Base64 = "GMyXHpGG-GwUTRQM6rvJriLJTo2FdTVvtqSgM5ke8hC6-jmkzRq_qZ... constant n4096Base64 (line 387) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUv... constant d4096Base64 (line 388) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1... constant p4096Base64 (line 389) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSO... constant q4096Base64 (line 390) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i... constant dp4096Base64 (line 391) | dp4096Base64 = "gVSGqrCgiWv5fxPj6x9_XEkZW0nMO2J3QSo2iHmLGPRkIt9HnLlBs7... constant dq4096Base64 (line 392) | dq4096Base64 = "th2E_5NKTkN7Fu4bS5_fSuEzcLU4W956VGShI8A0PfV1-eEo7535RC... constant qInv4096Base64 (line 393) | qInv4096Base64 = "IvuOX82bdnEE5xJE21MFjBgGHhsNH2O3Pi1ZqV4qEM2HQmoz2hPCh8... function mustDecodeBase64 (line 396) | func mustDecodeBase64(t *testing.T, value string) []byte { function TestNewPublicKeyInvalidValues (line 405) | func TestNewPublicKeyInvalidValues(t *testing.T) { type testCase (line 480) | type testCase struct function testCases (line 488) | func testCases(t *testing.T) []testCase { function TestNewPublicKey (line 528) | func TestNewPublicKey(t *testing.T) { function TestNewPublicKeyMinMaxValues (line 566) | func TestNewPublicKeyMinMaxValues(t *testing.T) { function mustCreateParameters (line 654) | func mustCreateParameters(t *testing.T, parametersValues rsassapss.Param... function mustCreatePublicKey (line 663) | func mustCreatePublicKey(t *testing.T, modulus []byte, idRequirement uin... function TestNewPublicKeyEqualFailsIfDifferentKeys (line 672) | func TestNewPublicKeyEqualFailsIfDifferentKeys(t *testing.T) { function TestPublicKeyOutputPrefix (line 763) | func TestPublicKeyOutputPrefix(t *testing.T) { function TestNewPrivateKeyInvalidValues (line 818) | func TestNewPrivateKeyInvalidValues(t *testing.T) { type privateKeyTestCase (line 916) | type privateKeyTestCase struct function setStringToBigInt (line 925) | func setStringToBigInt(t *testing.T, s string, base int) *big.Int { function privateKeyTestCases (line 934) | func privateKeyTestCases(t *testing.T) []privateKeyTestCase { function TestNewPrivateKey (line 1028) | func TestNewPrivateKey(t *testing.T) { function TestNewPrivateKeyEqualFailsIfKeysAreDifferent (line 1082) | func TestNewPrivateKeyEqualFailsIfKeysAreDifferent(t *testing.T) { function TestPrivateKeyCreator (line 1230) | func TestPrivateKeyCreator(t *testing.T) { function TestPrivateKeyCreator_FailsWithInvalidParameters (line 1280) | func TestPrivateKeyCreator_FailsWithInvalidParameters(t *testing.T) { FILE: signature/rsassapss/protoserialization.go constant publicKeyProtoVersion (line 37) | publicKeyProtoVersion = 0 constant privateKeyProtoVersion (line 42) | privateKeyProtoVersion = 0 constant signerTypeURL (line 44) | signerTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPssPriva... constant verifierTypeURL (line 45) | verifierTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPssPubli... type publicKeySerializer (line 48) | type publicKeySerializer struct method SerializeKey (line 80) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function protoOutputPrefixTypeFromVariant (line 52) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function protoHashValueFromHashType (line 67) | func protoHashValueFromHashType(hashType HashType) (commonpb.HashType, e... type publicKeyParser (line 124) | type publicKeyParser struct method ParseKey (line 179) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function variantFromProto (line 128) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... function hashTypeFromProto (line 143) | func hashTypeFromProto(hashType commonpb.HashType) (HashType, error) { function parseParameters (line 156) | func parseParameters(protoHashType, protoMGF1HashType commonpb.HashType,... type privateKeyParser (line 209) | type privateKeyParser struct method ParseKey (line 217) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... function removeLeadingZeros (line 213) | func removeLeadingZeros(keyBytes []byte) []byte { type privateKeySerializer (line 293) | type privateKeySerializer struct method SerializeKey (line 297) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type parametersSerializer (line 366) | type parametersSerializer struct method Serialize (line 370) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 407) | type parametersParser struct method Parse (line 411) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: signature/rsassapss/protoserialization_test.go constant n2048Base64 (line 38) | n2048Base64 = "s1EKK81M5kTFtZSuUFnhKy8FS2WNXaWVmi_fGHG4CLw98-Yo0nkuUa... constant d2048Base64 (line 39) | d2048Base64 = "GlAtDupse2niHVg5EB9wVFbtDvhS-0f-IQcfVMXzPIzrBmxi1yfjLS... constant p2048Base64 (line 40) | p2048Base64 = "7BJc834xCi_0YmO5suBinWOQAF7IiRPU-3G9TdhWEkSYquupg9e6K9... constant q2048Base64 (line 41) | q2048Base64 = "wnQqvNmJe9SwtnH5c_yCqPhKv1cF_4jdQZSGI6_p3KYNxlQzkHZ_6u... constant dp2048Base64 (line 42) | dp2048Base64 = "lql5jSUCY0ALtidzQogWJ-B87N-RGHsBuJ_0cxQYinwg-ySAAVbSyF... constant dq2048Base64 (line 43) | dq2048Base64 = "BVT0GwuH9opFcis74M9KseFlA0wakQAquPKenvni2rb-57JFW6-0ID... constant qInv2048Base64 (line 44) | qInv2048Base64 = "HGQBidm_6MYjgzIQp2xCDG9E5ddg4lmRbOwq4rFWRWlg_ZXidHZgw4... constant n3072Base64 (line 48) | n3072Base64 = "3I94gGcvDPnWNheopYvdJxoQm63aD6gm-UuKeVUmtqSagFZMyrqKlJ... constant d3072Base64 (line 49) | d3072Base64 = "BQEgW9F7iNDWYm3Q_siYoP1_aPjd3MMU900WfEBJW5WKh-TtYyAuas... constant p3072Base64 (line 50) | p3072Base64 = "_sahC_xJtYoshQ6v69uZdkmpVXWgwXYxsBHLINejICMqgVua9gQNe_... constant q3072Base64 (line 51) | q3072Base64 = "3Z7BzubYqXGxZpAsRKTwLvN6YgU7QSiKHYc9OZy8nnvTBu2QZIfaL0... constant dp3072Base64 (line 52) | dp3072Base64 = "8b-0DNVlc5cay162WwzSv0UCIo8s7KWkXDdmEVHL_bCgooIztgD-cn... constant dq3072Base64 (line 53) | dq3072Base64 = "Pjwq6NNi3JKU4txx0gUPfd_Z6lTVwwKDZq9nvhoJzeev5y4nclPELa... constant qInv3072Base64 (line 54) | qInv3072Base64 = "GMyXHpGG-GwUTRQM6rvJriLJTo2FdTVvtqSgM5ke8hC6-jmkzRq_qZ... constant n4096Base64 (line 58) | n4096Base64 = "9gG-DczQSqQLEvPxka4XwfnIwLaOenfhS-JcPHkHyx0zpu9BjvQYUv... constant d4096Base64 (line 59) | d4096Base64 = "01Gb2G7fXb6cZKN4FxPdBJt0f1ZR_ZGMzoqbgLbWovtqqzNKtWmom1... constant p4096Base64 (line 60) | p4096Base64 = "_CG4VcWtTKK2lwUWQG9xxuee_EEm5lmHctseCC3msN3aqiopUfBBSO... constant q4096Base64 (line 61) | q4096Base64 = "-cf3SKUF0j7O-ahfgJfIz31wKO9skOIqM2URWC0sw2NuNOrTcgTb0i... constant dp4096Base64 (line 62) | dp4096Base64 = "gVSGqrCgiWv5fxPj6x9_XEkZW0nMO2J3QSo2iHmLGPRkIt9HnLlBs7... constant dq4096Base64 (line 63) | dq4096Base64 = "th2E_5NKTkN7Fu4bS5_fSuEzcLU4W956VGShI8A0PfV1-eEo7535RC... constant qInv4096Base64 (line 64) | qInv4096Base64 = "IvuOX82bdnEE5xJE21MFjBgGHhsNH2O3Pi1ZqV4qEM2HQmoz2hPCh8... constant n2048Base64Short (line 67) | n2048Base64Short = "s3tBtRJT0gQfXrSWzicHNV-oWlaZ-Zw59s_NoZU1H1f5zuZKO... constant d2048Base64Short (line 68) | d2048Base64Short = "ofOWVs0y1U7i_5H0ghC1cHPgdaOvTIyrwQnBgwwf4yh_QTKLx... constant p2048Base64Short (line 69) | p2048Base64Short = "8ZDa2uxtQRFgV0hdz_y_bW86ufU0kQaS39hy6e_NjWy42gaDs... constant q2048Base64Short (line 70) | q2048Base64Short = "vjS4PXyXl4cyPaCzjZTxJttM6xO2cuIglNvm2PGu_ZtX78U1s... constant dp2048Base64Short (line 71) | dp2048Base64Short = "S-eZbWsXFXgRTrvVhpJD0G5ABMiw4NUw95d63FlWvJaqKxAa-... constant dq2048Base64Short (line 72) | dq2048Base64Short = "DetVwEop3dDrAE-OVEIeE7XgvyNGKsoZkEs3bZDiOXTwzn8kG... constant qInv2048Base64Short (line 73) | qInv2048Base64Short = "12-Ru9ZuczoydYqX5L1mDyE47bMy9SoXw-aBKRd9i0lYCX0nA... function mustDecodeBase64 (line 76) | func mustDecodeBase64(t *testing.T, value string) []byte { function mustCreateKeySerialization (line 85) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function mustMarshalProto (line 94) | func mustMarshalProto(t *testing.T, message proto.Message) []byte { function TestParsePublicKeyFails (line 103) | func TestParsePublicKeyFails(t *testing.T) { function mustCreateParameters (line 254) | func mustCreateParameters(t *testing.T, modulusSizeBits int, hashType Ha... function mustCreatePublicKey (line 270) | func mustCreatePublicKey(t *testing.T, modulus []byte, idRequirement uin... function TestParsePublicKeyWithZeroPaddingModulus (line 279) | func TestParsePublicKeyWithZeroPaddingModulus(t *testing.T) { function TestParseAndSerializePublicKey (line 312) | func TestParseAndSerializePublicKey(t *testing.T) { type testParams (line 531) | type testParams struct method HasIDRequirement (line 533) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 535) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 537) | type testKey struct method Parameters (line 539) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 541) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 543) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 545) | func TestSerializePublicKeyFails(t *testing.T) { function TestParsePrivateKeyFails (line 572) | func TestParsePrivateKeyFails(t *testing.T) { function mustCreatePrivateKey (line 818) | func mustCreatePrivateKey(t *testing.T, publicKey *PublicKey, privateKey... function TestParsePrivateKeyWithZeroPaddingValues (line 827) | func TestParsePrivateKeyWithZeroPaddingValues(t *testing.T) { function TestParseAndSerializePrivateKey (line 874) | func TestParseAndSerializePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 1196) | func TestSerializePrivateKeyFails(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 1223) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function mustCreateKeyTemplate (line 1250) | func mustCreateKeyTemplate(t *testing.T, outputPrefixType tinkpb.OutputP... type parametersParserTest (line 1260) | type parametersParserTest struct function mustCreateParametersParserTests (line 1266) | func mustCreateParametersParserTests(t *testing.T) []parametersParserTest { function TestSerializeParameters (line 1741) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 1755) | func TestParseParameters(t *testing.T) { function TestParseParametersFails (line 1769) | func TestParseParametersFails(t *testing.T) { FILE: signature/rsassapss/rsassapss.go function init (line 34) | func init() { function RegisterPrimitiveConstructor (line 86) | func RegisterPrimitiveConstructor(c *config.Builder, t internalapi.Token... FILE: signature/rsassapss/rsassapss_test.go function TestCreateKeysetHandleFromParameters (line 25) | func TestCreateKeysetHandleFromParameters(t *testing.T) { FILE: signature/rsassapss/signer.go type signer (line 28) | type signer struct method Sign (line 52) | func (s *signer) Sign(data []byte) ([]byte, error) { function NewSigner (line 38) | func NewSigner(privateKey *PrivateKey, _ internalapi.Token) (tink.Signer... function signerConstructor (line 64) | func signerConstructor(key key.Key) (any, error) { FILE: signature/rsassapss/signer_key_manager_test.go constant privateKeyTypeURL (line 40) | privateKeyTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPssPri... constant privateKeyVersion (line 41) | privateKeyVersion = 0 function TestSignerKeyManagerKeyManagerDoesSupport (line 44) | func TestSignerKeyManagerKeyManagerDoesSupport(t *testing.T) { function TestSignerKeyManagerKeyManagerTypeURL (line 57) | func TestSignerKeyManagerKeyManagerTypeURL(t *testing.T) { function TestSignerKeyManagerGetPrimitive (line 67) | func TestSignerKeyManagerGetPrimitive(t *testing.T) { function mergePrivPub (line 133) | func mergePrivPub(priv *rsppb.RsaSsaPssPrivateKey, pub *rsppb.RsaSsaPssP... function TestSignerKeyManagerGetPrimitiveWithInvalidInput (line 146) | func TestSignerKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestSignerKeyManagerGetPrimitiveWithCorruptedPrivateKey (line 390) | func TestSignerKeyManagerGetPrimitiveWithCorruptedPrivateKey(t *testing.... function TestSignerKeyManagerNewKey (line 411) | func TestSignerKeyManagerNewKey(t *testing.T) { function TestSignerKeyManagerNewKeyData (line 471) | func TestSignerKeyManagerNewKeyData(t *testing.T) { function TestSignerKeyManagerNewKeyFailsWithInvalidFormat (line 534) | func TestSignerKeyManagerNewKeyFailsWithInvalidFormat(t *testing.T) { function TestSignerKeyManagerPublicKeyInvalidInput (line 636) | func TestSignerKeyManagerPublicKeyInvalidInput(t *testing.T) { function TestSignerKeyManagerPublicKeyData (line 666) | func TestSignerKeyManagerPublicKeyData(t *testing.T) { FILE: signature/rsassapss/signer_verifier_test.go type primtiveTesCase (line 32) | type primtiveTesCase struct function mustDecodeHex (line 40) | func mustDecodeHex(t *testing.T, value string) []byte { function TestSignVerify (line 49) | func TestSignVerify(t *testing.T) { function primitiveTestCases (line 72) | func primitiveTestCases(t *testing.T) []primtiveTesCase { function TestVerifyCorrectness (line 402) | func TestVerifyCorrectness(t *testing.T) { function TestVerifyFails (line 416) | func TestVerifyFails(t *testing.T) { FILE: signature/rsassapss/verifier.go type verifier (line 31) | type verifier struct method Verify (line 57) | func (v *verifier) Verify(signatureBytes, data []byte) error { function NewVerifier (line 41) | func NewVerifier(publicKey *PublicKey, _ internalapi.Token) (tink.Verifi... function verifierConstructor (line 69) | func verifierConstructor(key key.Key) (any, error) { FILE: signature/rsassapss/verifier_key_manager_test.go constant publicKeyTypeURL (line 33) | publicKeyTypeURL = "type.googleapis.com/google.crypto.tink.RsaSsaPssPubl... function makeValidRSAPSSKey (line 35) | func makeValidRSAPSSKey() (*rsppb.RsaSsaPssPrivateKey, error) { function TestVerifierKeyManagerNewKeyNotSupported (line 61) | func TestVerifierKeyManagerNewKeyNotSupported(t *testing.T) { function TestVerifierKeyManagerDoesSupport (line 87) | func TestVerifierKeyManagerDoesSupport(t *testing.T) { function TestVerifierKeyManagerTypeURL (line 100) | func TestVerifierKeyManagerTypeURL(t *testing.T) { type nistRSATestKey (line 110) | type nistRSATestKey struct type nistRSAPSSTestVector (line 143) | type nistRSAPSSTestVector struct method ProtoKey (line 231) | func (t *nistRSAPSSTestVector) ProtoKey() (*rsppb.RsaSsaPssPublicKey, ... function TestVerifierKeyManagerPrimitive (line 252) | func TestVerifierKeyManagerPrimitive(t *testing.T) { function TestVerifierKeyManagerPrimitiveFailsWithInvalidKey (line 290) | func TestVerifierKeyManagerPrimitiveFailsWithInvalidKey(t *testing.T) { FILE: signature/signature_benchmark_test.go constant benchmarkDataSize (line 30) | benchmarkDataSize = 16 * 1024 function mustCreateECDSAParams (line 32) | func mustCreateECDSAParams(curveType ecdsa.CurveType, hashType ecdsa.Has... function mustCreateKeyset (line 78) | func mustCreateKeyset(b *testing.B, template *tinkpb.KeyTemplate, params... function BenchmarkSign (line 100) | func BenchmarkSign(b *testing.B) { function BenchmarkVerify (line 122) | func BenchmarkVerify(b *testing.B) { FILE: signature/signature_factory_test.go function TestSignerVerifyFactory (line 49) | func TestSignerVerifyFactory(t *testing.T) { function TestPrimitiveFactoryFailsWithEmptyHandle (line 116) | func TestPrimitiveFactoryFailsWithEmptyHandle(t *testing.T) { function newECDSAKeysetKeypair (line 123) | func newECDSAKeysetKeypair(t *testing.T, hashType commonpb.HashType, cur... function TestFactoryWithInvalidPrimitiveSetType (line 146) | func TestFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestFactoryWithValidPrimitiveSetType (line 163) | func TestFactoryWithValidPrimitiveSetType(t *testing.T) { function TestPrimitiveFactorySignVerifyWithoutAnnotationsDoesNothing (line 185) | func TestPrimitiveFactorySignVerifyWithoutAnnotationsDoesNothing(t *test... function TestPrimitiveFactoryMonitoringWithAnnotationsLogSignVerify (line 223) | func TestPrimitiveFactoryMonitoringWithAnnotationsLogSignVerify(t *testi... type alwaysFailingSigner (line 315) | type alwaysFailingSigner struct method Sign (line 317) | func (a *alwaysFailingSigner) Sign(data []byte) ([]byte, error) { retu... function TestPrimitiveFactoryMonitoringWithAnnotationsSignFailureIsLogged (line 319) | func TestPrimitiveFactoryMonitoringWithAnnotationsSignFailureIsLogged(t ... function TestPrimitiveFactoryMonitoringWithAnnotationsVerifyFailureIsLogged (line 393) | func TestPrimitiveFactoryMonitoringWithAnnotationsVerifyFailureIsLogged(... function TestVerifyWithLegacyKeyDoesNotHaveSideEffectOnMessage (line 452) | func TestVerifyWithLegacyKeyDoesNotHaveSideEffectOnMessage(t *testing.T) { constant stubPrivateKeyURL (line 493) | stubPrivateKeyURL = "type.googleapis.com/google.crypto.tink.StubPrivateKey" constant stubPublicKeyURL (line 494) | stubPublicKeyURL = "type.googleapis.com/google.crypto.tink.StubPublicKey" type stubFullSigner (line 496) | type stubFullSigner struct method Sign (line 498) | func (s *stubFullSigner) Sign(data []byte) ([]byte, error) { type stubFullVerifier (line 502) | type stubFullVerifier struct method Verify (line 504) | func (s *stubFullVerifier) Verify(sig, data []byte) error { type stubParams (line 513) | type stubParams struct method Equal (line 517) | func (p *stubParams) Equal(_ key.Parameters) bool { return true } method HasIDRequirement (line 518) | func (p *stubParams) HasIDRequirement() bool { return true } type stubPublicKey (line 520) | type stubPublicKey struct method Equal (line 527) | func (p *stubPublicKey) Equal(_ key.Key) bool { return true } method Parameters (line 528) | func (p *stubPublicKey) Parameters() key.Parameters { return &stubP... method IDRequirement (line 529) | func (p *stubPublicKey) IDRequirement() (uint32, bool) { return p.idRe... method HasIDRequirement (line 530) | func (p *stubPublicKey) HasIDRequirement() bool { return p.pref... method OutputPrefix (line 531) | func (p *stubPublicKey) OutputPrefix() []byte { type stubPublicKeySerialization (line 539) | type stubPublicKeySerialization struct method SerializeKey (line 543) | func (s *stubPublicKeySerialization) SerializeKey(key key.Key) (*proto... type stubPublicKeyParser (line 555) | type stubPublicKeyParser struct method ParseKey (line 559) | func (s *stubPublicKeyParser) ParseKey(serialization *protoserializati... type stubPrivateKey (line 567) | type stubPrivateKey struct method Equal (line 574) | func (p *stubPrivateKey) Equal(_ key.Key) bool { return true } method Parameters (line 575) | func (p *stubPrivateKey) Parameters() key.Parameters { return &stub... method IDRequirement (line 576) | func (p *stubPrivateKey) IDRequirement() (uint32, bool) { return p.idR... method HasIDRequirement (line 577) | func (p *stubPrivateKey) HasIDRequirement() bool { return p.pre... method PublicKey (line 578) | func (p *stubPrivateKey) PublicKey() (key.Key, error) { method OutputPrefix (line 584) | func (p *stubPrivateKey) OutputPrefix() []byte { type stubPrivateKeySerialization (line 591) | type stubPrivateKeySerialization struct method SerializeKey (line 595) | func (s *stubPrivateKeySerialization) SerializeKey(key key.Key) (*prot... type stubPrivateKeyParser (line 607) | type stubPrivateKeyParser struct method ParseKey (line 611) | func (s *stubPrivateKeyParser) ParseKey(serialization *protoserializat... function TestPrimitiveFactoryUsesFullPrimitiveIfRegistered (line 619) | func TestPrimitiveFactoryUsesFullPrimitiveIfRegistered(t *testing.T) { type stubLegacySigner (line 694) | type stubLegacySigner struct method Sign (line 698) | func (s *stubLegacySigner) Sign(data []byte) ([]byte, error) { type stubPrivateKeyManager (line 702) | type stubPrivateKeyManager struct method NewKey (line 706) | func (km *stubPrivateKeyManager) NewKey(_ []byte) (proto.Message, erro... method NewKeyData (line 709) | func (km *stubPrivateKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyData... method DoesSupport (line 712) | func (km *stubPrivateKeyManager) DoesSupport(keyURL string) bool { re... method TypeURL (line 713) | func (km *stubPrivateKeyManager) TypeURL() string { re... method Primitive (line 714) | func (km *stubPrivateKeyManager) Primitive(_ []byte) (any, error) { re... type stubLegacyVerifier (line 716) | type stubLegacyVerifier struct method Verify (line 720) | func (s *stubLegacyVerifier) Verify(sig, data []byte) error { type stubPublicKeyManager (line 727) | type stubPublicKeyManager struct method NewKey (line 731) | func (km *stubPublicKeyManager) NewKey(_ []byte) (proto.Message, error) { method NewKeyData (line 734) | func (km *stubPublicKeyManager) NewKeyData(_ []byte) (*tinkpb.KeyData,... method DoesSupport (line 737) | func (km *stubPublicKeyManager) DoesSupport(keyURL string) bool { ret... method TypeURL (line 738) | func (km *stubPublicKeyManager) TypeURL() string { ret... method Primitive (line 739) | func (km *stubPublicKeyManager) Primitive(_ []byte) (any, error) { ret... function TestPrimitiveFactoryUsesLegacyPrimitive (line 741) | func TestPrimitiveFactoryUsesLegacyPrimitive(t *testing.T) { function TestNewWithConfig (line 838) | func TestNewWithConfig(t *testing.T) { FILE: signature/signature_init_test.go function TestSignatureInit (line 24) | func TestSignatureInit(t *testing.T) { FILE: signature/signature_key_templates.go constant ed25519SignerTypeURL (line 33) | ed25519SignerTypeURL = "type.googleapis.com/google.crypto.tink.Ed255... constant ecdsaSignerTypeURL (line 34) | ecdsaSignerTypeURL = "type.googleapis.com/google.crypto.tink.Ecdsa... constant rsaSSAPKCS1SignerTypeURL (line 35) | rsaSSAPKCS1SignerTypeURL = "type.googleapis.com/google.crypto.tink.RsaSs... constant rsaSSAPSSSignerTypeURL (line 36) | rsaSSAPSSSignerTypeURL = "type.googleapis.com/google.crypto.tink.RsaSs... function ECDSAP256KeyTemplate (line 44) | func ECDSAP256KeyTemplate() *tinkpb.KeyTemplate { function ECDSAP256KeyWithoutPrefixTemplate (line 59) | func ECDSAP256KeyWithoutPrefixTemplate() *tinkpb.KeyTemplate { function ECDSAP256RawKeyTemplate (line 72) | func ECDSAP256RawKeyTemplate() *tinkpb.KeyTemplate { function ECDSAP384SHA384KeyTemplate (line 84) | func ECDSAP384SHA384KeyTemplate() *tinkpb.KeyTemplate { function ECDSAP384SHA384KeyWithoutPrefixTemplate (line 96) | func ECDSAP384SHA384KeyWithoutPrefixTemplate() *tinkpb.KeyTemplate { function ECDSAP384SHA512KeyTemplate (line 108) | func ECDSAP384SHA512KeyTemplate() *tinkpb.KeyTemplate { function ECDSAP384KeyWithoutPrefixTemplate (line 121) | func ECDSAP384KeyWithoutPrefixTemplate() *tinkpb.KeyTemplate { function ECDSAP521KeyTemplate (line 133) | func ECDSAP521KeyTemplate() *tinkpb.KeyTemplate { function ECDSAP521KeyWithoutPrefixTemplate (line 146) | func ECDSAP521KeyWithoutPrefixTemplate() *tinkpb.KeyTemplate { function createECDSAKeyTemplate (line 155) | func createECDSAKeyTemplate(hashType commonpb.HashType, curve commonpb.E... function ED25519KeyTemplate (line 174) | func ED25519KeyTemplate() *tinkpb.KeyTemplate { function ED25519KeyWithoutPrefixTemplate (line 182) | func ED25519KeyWithoutPrefixTemplate() *tinkpb.KeyTemplate { function create_RSA_SSA_PKCS1_Template (line 189) | func create_RSA_SSA_PKCS1_Template(prefixType tinkpb.OutputPrefixType, h... function create_RSA_SSA_PSS_Template (line 208) | func create_RSA_SSA_PSS_Template(prefixType tinkpb.OutputPrefixType, has... function RSA_SSA_PKCS1_3072_SHA256_F4_Key_Template (line 235) | func RSA_SSA_PKCS1_3072_SHA256_F4_Key_Template() *tinkpb.KeyTemplate { function RSA_SSA_PKCS1_3072_SHA256_F4_RAW_Key_Template (line 245) | func RSA_SSA_PKCS1_3072_SHA256_F4_RAW_Key_Template() *tinkpb.KeyTemplate { function RSA_SSA_PKCS1_4096_SHA512_F4_Key_Template (line 255) | func RSA_SSA_PKCS1_4096_SHA512_F4_Key_Template() *tinkpb.KeyTemplate { function RSA_SSA_PKCS1_4096_SHA512_F4_RAW_Key_Template (line 265) | func RSA_SSA_PKCS1_4096_SHA512_F4_RAW_Key_Template() *tinkpb.KeyTemplate { function RSA_SSA_PSS_3072_SHA256_32_F4_Key_Template (line 277) | func RSA_SSA_PSS_3072_SHA256_32_F4_Key_Template() *tinkpb.KeyTemplate { function RSA_SSA_PSS_3072_SHA256_32_F4_Raw_Key_Template (line 289) | func RSA_SSA_PSS_3072_SHA256_32_F4_Raw_Key_Template() *tinkpb.KeyTemplate { function RSA_SSA_PSS_4096_SHA512_64_F4_Key_Template (line 301) | func RSA_SSA_PSS_4096_SHA512_64_F4_Key_Template() *tinkpb.KeyTemplate { function RSA_SSA_PSS_4096_SHA512_64_F4_Raw_Key_Template (line 313) | func RSA_SSA_PSS_4096_SHA512_64_F4_Raw_Key_Template() *tinkpb.KeyTemplate { FILE: signature/signature_key_templates_test.go function TestKeyTemplates (line 26) | func TestKeyTemplates(t *testing.T) { function testSignVerify (line 75) | func testSignVerify(template *tinkpb.KeyTemplate) error { FILE: signature/signature_test.go function Example (line 29) | func Example() { FILE: signature/signer_factory.go function NewSignerWithConfig (line 35) | func NewSignerWithConfig(handle *keyset.Handle, config keyset.Config) (t... function NewSigner (line 45) | func NewSigner(handle *keyset.Handle) (tink.Signer, error) { type wrappedSigner (line 50) | type wrappedSigner struct method Sign (line 131) | func (s *wrappedSigner) Sign(data []byte) ([]byte, error) { type fullSignerAdapter (line 59) | type fullSignerAdapter struct method Sign (line 67) | func (a *fullSignerAdapter) Sign(data []byte) ([]byte, error) { function extractFullSigner (line 83) | func extractFullSigner(e *primitiveset.Entry[tink.Signer]) (tink.Signer,... function newWrappedSigner (line 98) | func newWrappedSigner(ps *primitiveset.PrimitiveSet[tink.Signer]) (*wrap... function createSignerLogger (line 114) | func createSignerLogger(ps *primitiveset.PrimitiveSet[tink.Signer]) (mon... FILE: signature/slhdsa/key.go type Variant (line 34) | type Variant method String (line 45) | func (variant Variant) String() string { constant VariantUnknown (line 38) | VariantUnknown Variant = iota constant VariantTink (line 40) | VariantTink constant VariantNoPrefix (line 42) | VariantNoPrefix type HashType (line 57) | type HashType constant UnknownHashType (line 61) | UnknownHashType HashType = iota constant SHA2 (line 63) | SHA2 constant SHAKE (line 65) | SHAKE type SignatureType (line 69) | type SignatureType constant UnknownSignatureType (line 73) | UnknownSignatureType SignatureType = iota constant FastSigning (line 75) | FastSigning constant SmallSignature (line 77) | SmallSignature type parameterSet (line 80) | type parameterSet struct type Parameters (line 87) | type Parameters struct method HashType (line 215) | func (p *Parameters) HashType() HashType { return p.paramSet.hashType } method KeySize (line 218) | func (p *Parameters) KeySize() int { return p.paramSet.keySize } method SignatureType (line 221) | func (p *Parameters) SignatureType() SignatureType { return p.paramSet... method Variant (line 224) | func (p *Parameters) Variant() Variant { return p.variant } method HasIDRequirement (line 227) | func (p *Parameters) HasIDRequirement() bool { return p.variant != Var... method Equal (line 230) | func (p *Parameters) Equal(other key.Parameters) bool { function slhDSASHA2128s (line 92) | func slhDSASHA2128s() parameterSet { function slhDSASHAKE128s (line 100) | func slhDSASHAKE128s() parameterSet { function slhDSASHA2128f (line 108) | func slhDSASHA2128f() parameterSet { function slhDSASHAKE128f (line 116) | func slhDSASHAKE128f() parameterSet { function slhDSASHA2192s (line 124) | func slhDSASHA2192s() parameterSet { function slhDSASHAKE192s (line 132) | func slhDSASHAKE192s() parameterSet { function slhDSASHA2192f (line 140) | func slhDSASHA2192f() parameterSet { function slhDSASHAKE192f (line 148) | func slhDSASHAKE192f() parameterSet { function slhDSASHA2256s (line 156) | func slhDSASHA2256s() parameterSet { function slhDSASHAKE256s (line 164) | func slhDSASHAKE256s() parameterSet { function slhDSASHA2256f (line 172) | func slhDSASHA2256f() parameterSet { function slhDSASHAKE256f (line 180) | func slhDSASHAKE256f() parameterSet { function checkSupportedParameters (line 188) | func checkSupportedParameters(paramSet parameterSet) error { function NewParameters (line 200) | func NewParameters(hashType HashType, keySize int, sigType SignatureType... type PublicKey (line 236) | type PublicKey struct method KeyBytes (line 366) | func (k *PublicKey) KeyBytes() []byte { return bytes.Clone(k.keyBytes) } method OutputPrefix (line 369) | func (k *PublicKey) OutputPrefix() []byte { return bytes.Clone(k.outpu... method Parameters (line 372) | func (k *PublicKey) Parameters() key.Parameters { return k.params } method IDRequirement (line 376) | func (k *PublicKey) IDRequirement() (uint32, bool) { method Equal (line 381) | func (k *PublicKey) Equal(other key.Key) bool { function calculateOutputPrefix (line 245) | func calculateOutputPrefix(variant Variant, keyID uint32) ([]byte, error) { function publicKeyLengthForParams (line 256) | func publicKeyLengthForParams(paramSet parameterSet) (int, error) { function privateKeyLengthForParams (line 287) | func privateKeyLengthForParams(paramSet parameterSet) (int, error) { function checkPublicKeyLengthForParameters (line 319) | func checkPublicKeyLengthForParameters(length int, params *Parameters) e... function checkPrivateKeyLengthForParameters (line 331) | func checkPrivateKeyLengthForParameters(length int, params *Parameters) ... function NewPublicKey (line 346) | func NewPublicKey(keyBytes []byte, idRequirement uint32, params *Paramet... type PrivateKey (line 392) | type PrivateKey struct method PrivateKeyBytes (line 492) | func (k *PrivateKey) PrivateKeyBytes() secretdata.Bytes { return k.key... method PublicKey (line 497) | func (k *PrivateKey) PublicKey() (key.Key, error) { return k.publicKey... method Parameters (line 500) | func (k *PrivateKey) Parameters() key.Parameters { return k.publicKey.... method IDRequirement (line 504) | func (k *PrivateKey) IDRequirement() (uint32, bool) { return k.publicK... method OutputPrefix (line 507) | func (k *PrivateKey) OutputPrefix() []byte { return bytes.Clone(k.publ... method Equal (line 510) | func (k *PrivateKey) Equal(other key.Key) bool { function publicKeyForParameters (line 405) | func publicKeyForParameters(privateKeyBytes secretdata.Bytes, params *Pa... function NewPrivateKey (line 444) | func NewPrivateKey(privateKeyBytes secretdata.Bytes, idRequirement uint3... function NewPrivateKeyWithPublicKey (line 467) | func NewPrivateKeyWithPublicKey(privateKeyBytes secretdata.Bytes, pubKey... function createPrivateKey (line 520) | func createPrivateKey(p key.Parameters, idRequirement uint32) (key.Key, ... FILE: signature/slhdsa/key_pairs_test.go constant privKeySHA2128sHex (line 26) | privKeySHA2128sHex = "d44f6f06a73a07451096ad4bfbd240cb54b779330a65ed34ec... constant pubKeySHA2128sHex (line 28) | pubKeySHA2128sHex = "f2b907c6b73d52125c3930a195ef650baf7f68a07f4f3435408... constant msgSHA2128sHex (line 29) | msgSHA2128sHex = "6d657373616765" constant sigSHA2128sHex (line 30) | sigSHA2128sHex = "677020005c0922919fb6b837c42783b93a71a10db1794c86683... constant privKeySHAKE256fHex (line 251) | privKeySHAKE256fHex = "5b099ffc42a7b162c9cfbc188d7bffb19e0250ab36220b7de... constant pubKeySHAKE256fHex (line 252) | pubKeySHAKE256fHex = "c543272795c138347744d243ee143a0bd8e978e9638fff2ae... constant msgSHAKE256fHex (line 253) | msgSHAKE256fHex = "6d657373616765" constant sigSHAKE256fHex (line 254) | sigSHAKE256fHex = "0ea6676f0081075e2639b420b54dfd7391bf7d6c505b6d2ae... constant privKeySHAKE128sHex (line 257) | privKeySHAKE128sHex = "45b32c442eaa9b16d6526a28e6a2e5c093192be127635dbed... constant pubKeySHAKE128sHex (line 258) | pubKeySHAKE128sHex = "d83c84a82119918454cb7c5ec7f4919da51acc1658770fccf... constant msgSHAKE128sHex (line 259) | msgSHAKE128sHex = "6d657373616765" constant sigSHAKE128sHex (line 260) | sigSHAKE128sHex = "f61f45ef3a74e3bdf962fe53cf4bd60ae5bde70e439c9e3fb... constant privKeySHA2128fHex (line 262) | privKeySHA2128fHex = "8769f76c1d0a498b7be70def6eddfbda8cd87210aa0ce0bde8... constant pubKeySHA2128fHex (line 263) | pubKeySHA2128fHex = "acb3c41a190d60556dd01e8c88a2b1fbdf5362ca1aa16fa916... constant msgSHA2128fHex (line 264) | msgSHA2128fHex = "6d657373616765" constant sigSHA2128fHex (line 265) | sigSHA2128fHex = "75f768eeaa883b6068c143a108b9e28a1c67c0307f3811520d... constant privKeySHAKE128fHex (line 267) | privKeySHAKE128fHex = "4e16cd45fa10f59698f95645662ff833bf41e5b1674a85d58... constant pubKeySHAKE128fHex (line 268) | pubKeySHAKE128fHex = "ca7af695ae14d8c4bf4bbd8927086bbe6c6d6020e3d3a737c... constant msgSHAKE128fHex (line 269) | msgSHAKE128fHex = "6d657373616765" constant sigSHAKE128fHex (line 270) | sigSHAKE128fHex = "de19e12cbca1a5d751ee8d778a5d47f3e25c419ecb5a69285... constant privKeySHA2192sHex (line 272) | privKeySHA2192sHex = "de5f20d249d64b2211a23804f053583d6a594f4f5086837b66... constant pubKeySHA2192sHex (line 273) | pubKeySHA2192sHex = "df2f2cc42fc7710de51b0ad3293830b4048b40a7791d439e57... constant msgSHA2192sHex (line 274) | msgSHA2192sHex = "6d657373616765" constant sigSHA2192sHex (line 275) | sigSHA2192sHex = "6baa415a9fa81afcdf1a55db2e9382e2891ac0b376e5968619... constant privKeySHAKE192sHex (line 277) | privKeySHAKE192sHex = "26ceb67a6214bfa953055dcfc8c6fa2ecb2e0918ab48d752f... constant pubKeySHAKE192sHex (line 278) | pubKeySHAKE192sHex = "dfd6d03170ee08abe8656d4cdb180bbfb68470365da78c6f6... constant msgSHAKE192sHex (line 279) | msgSHAKE192sHex = "6d657373616765" constant sigSHAKE192sHex (line 280) | sigSHAKE192sHex = "58c9a2727fbee5904b3363d6d3db5c1c69be742a6cd486602... constant privKeySHA2192fHex (line 282) | privKeySHA2192fHex = "92443ede1902c36e613ed6d7f4a8b7cfe0997cfb46472e9f87... constant pubKeySHA2192fHex (line 283) | pubKeySHA2192fHex = "6f99487996fba94930492ef535ac5ac450b02df4a3be2737af... constant msgSHA2192fHex (line 284) | msgSHA2192fHex = "6d657373616765" constant sigSHA2192fHex (line 285) | sigSHA2192fHex = "4b4502ad997406ed83aa44c9a3387929c338b83dd6be0b7498... constant privKeySHAKE192fHex (line 287) | privKeySHAKE192fHex = "f7390d9318d2c6f8c95d84d4396024ac24bcedbe72fadd911... constant pubKeySHAKE192fHex (line 288) | pubKeySHAKE192fHex = "42c19b7c824edebe0cfe80b0f85ad661f799ce6f65e61e4cf... constant msgSHAKE192fHex (line 289) | msgSHAKE192fHex = "6d657373616765" constant sigSHAKE192fHex (line 290) | sigSHAKE192fHex = "566145af8fc66e1a2a74d5c649e01b6aaefbdb5692e893c4b... constant privKeySHA2256sHex (line 292) | privKeySHA2256sHex = "0d0602392b87d995f10226fb7cb82611a5f14efbb7e7813082... constant pubKeySHA2256sHex (line 293) | pubKeySHA2256sHex = "8d3a97231ab56c3f578cd262ca5ce6ecb82b1ab6eedc1ac2f6... constant msgSHA2256sHex (line 294) | msgSHA2256sHex = "6d657373616765" constant sigSHA2256sHex (line 295) | sigSHA2256sHex = "968dd6f0de556a4f755e18b99c0fa27b3404e08414eb3e6aac... constant privKeySHAKE256sHex (line 297) | privKeySHAKE256sHex = "fc1c2a7aa1cece1195562f4d62d4167331a61e1a674a2b9f5... constant pubKeySHAKE256sHex (line 298) | pubKeySHAKE256sHex = "6ccac31bda83e3336c0b5ddaff248e8b385a4ac763d377a9b... constant msgSHAKE256sHex (line 299) | msgSHAKE256sHex = "6d657373616765" constant sigSHAKE256sHex (line 300) | sigSHAKE256sHex = "8739c1e0590ff13aa131267c3c594f63457989cb8a1765d71... constant privKeySHA2256fHex (line 302) | privKeySHA2256fHex = "b74903941828f680df8f2d98778c0b4e1f42ae926629344840... constant pubKeySHA2256fHex (line 303) | pubKeySHA2256fHex = "a2171c9581a63258e1ae68f31665701658fe35baf8c6239023... constant msgSHA2256fHex (line 304) | msgSHA2256fHex = "6d657373616765" constant sigSHA2256fHex (line 305) | sigSHA2256fHex = "3f0e2c15fdbf5ff604afe173874d5cc28713fbde3b62da4958... type testKeyPair (line 308) | type testKeyPair struct function generateTestKeyPair (line 313) | func generateTestKeyPair(t *testing.T, hashType slhdsa.HashType, keySize... FILE: signature/slhdsa/key_test.go function TestNewParameters (line 32) | func TestNewParameters(t *testing.T) { function TestNewParametersFails (line 230) | func TestNewParametersFails(t *testing.T) { function TestParametersHasIDRequirement (line 275) | func TestParametersHasIDRequirement(t *testing.T) { function TestParametersEqual (line 313) | func TestParametersEqual(t *testing.T) { function TestNewPublicKeyFails (line 356) | func TestNewPublicKeyFails(t *testing.T) { function TestPublicKey (line 433) | func TestPublicKey(t *testing.T) { function TestPublicKeyEqualSelf (line 470) | func TestPublicKeyEqualSelf(t *testing.T) { type stubKey (line 513) | type stubKey struct method Parameters (line 517) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 518) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 519) | func (k *stubKey) IDRequirement() (uint32, bool) { return 123, true } function TestPublicKeyEqual_FalseIfDifferentType (line 521) | func TestPublicKeyEqual_FalseIfDifferentType(t *testing.T) { type TestPublicKeyParams (line 564) | type TestPublicKeyParams struct function TestPublicKeyEqualFalse (line 574) | func TestPublicKeyEqualFalse(t *testing.T) { function TestPublicKeyKeyBytes (line 677) | func TestPublicKeyKeyBytes(t *testing.T) { function TestPrivateKeyNewPrivateKeyWithPublicKey (line 999) | func TestPrivateKeyNewPrivateKeyWithPublicKey(t *testing.T) { function TestPrivateKeyNewPrivateKey (line 1061) | func TestPrivateKeyNewPrivateKey(t *testing.T) { function TestNewPrivateKeyFails (line 1119) | func TestNewPrivateKeyFails(t *testing.T) { function TestNewPrivateKeyWithPublicKeyFails (line 1190) | func TestNewPrivateKeyWithPublicKeyFails(t *testing.T) { function TestPrivateKeyEqualSelf (line 1263) | func TestPrivateKeyEqualSelf(t *testing.T) { function TestPrivateKeyEqual_FalseIfDifferentType (line 1306) | func TestPrivateKeyEqual_FalseIfDifferentType(t *testing.T) { function TestPrivateKeyEqualFalse (line 1349) | func TestPrivateKeyEqualFalse(t *testing.T) { function TestPrivateKeyKeyBytes (line 1428) | func TestPrivateKeyKeyBytes(t *testing.T) { function TestKeyCreator (line 1452) | func TestKeyCreator(t *testing.T) { function TestPrivateKeyCreator_Fails (line 1475) | func TestPrivateKeyCreator_Fails(t *testing.T) { FILE: signature/slhdsa/protoserialization.go constant publicKeyProtoVersion (line 34) | publicKeyProtoVersion = 0 constant privateKeyProtoVersion (line 39) | privateKeyProtoVersion = 0 constant signerTypeURL (line 41) | signerTypeURL = "type.googleapis.com/google.crypto.tink.SlhDsaPrivateKey" constant verifierTypeURL (line 42) | verifierTypeURL = "type.googleapis.com/google.crypto.tink.SlhDsaPublicKey" type publicKeySerializer (line 45) | type publicKeySerializer struct method SerializeKey (line 82) | func (s *publicKeySerializer) SerializeKey(key key.Key) (*protoseriali... function protoOutputPrefixTypeFromVariant (line 49) | func protoOutputPrefixTypeFromVariant(variant Variant) (tinkpb.OutputPre... function protoSlhDsaHashTypeFromHashType (line 60) | func protoSlhDsaHashTypeFromHashType(hashType HashType) (slhdsapb.SlhDsa... function protoSlhDsaSignatureTypeFromSignatureType (line 71) | func protoSlhDsaSignatureTypeFromSignatureType(sigType SignatureType) (s... type privateKeySerializer (line 125) | type privateKeySerializer struct method SerializeKey (line 129) | func (s *privateKeySerializer) SerializeKey(key key.Key) (*protoserial... type publicKeyParser (line 180) | type publicKeyParser struct method ParseKey (line 217) | func (s *publicKeyParser) ParseKey(keySerialization *protoserializatio... function variantFromProto (line 184) | func variantFromProto(prefixType tinkpb.OutputPrefixType) (Variant, erro... function hashTypeFromProto (line 195) | func hashTypeFromProto(hashType slhdsapb.SlhDsaHashType) (HashType, erro... function signatureTypeFromProto (line 206) | func signatureTypeFromProto(sigType slhdsapb.SlhDsaSignatureType) (Signa... type privateKeyParser (line 256) | type privateKeyParser struct method ParseKey (line 260) | func (s *privateKeyParser) ParseKey(keySerialization *protoserializati... type parametersSerializer (line 307) | type parametersSerializer struct method Serialize (line 311) | func (s *parametersSerializer) Serialize(parameters key.Parameters) (*... type parametersParser (line 347) | type parametersParser struct method Parse (line 351) | func (s *parametersParser) Parse(keyTemplate *tinkpb.KeyTemplate) (key... FILE: signature/slhdsa/protoserialization_test.go constant privKeyHex (line 36) | privKeyHex = "d44f6f06a73a07451096ad4bfbd240cb54b779330a65ed34ec0cd372c9... constant pubKeyHex (line 38) | pubKeyHex = "f2b907c6b73d52125c3930a195ef650baf7f68a07f4f3435408ac5ecaaf... function mustCreateKeySerialization (line 41) | func mustCreateKeySerialization(t *testing.T, keyData *tinkpb.KeyData, o... function TestParsePublicKeyFails (line 50) | func TestParsePublicKeyFails(t *testing.T) { function TestParsePublicKey (line 123) | func TestParsePublicKey(t *testing.T) { type testParams (line 197) | type testParams struct method HasIDRequirement (line 199) | func (p *testParams) HasIDRequirement() bool { return true } method Equal (line 201) | func (p *testParams) Equal(params key.Parameters) bool { return true } type testKey (line 203) | type testKey struct method Parameters (line 205) | func (k *testKey) Parameters() key.Parameters { return &testParams{} } method Equal (line 207) | func (k *testKey) Equal(other key.Key) bool { return true } method IDRequirement (line 209) | func (k *testKey) IDRequirement() (uint32, bool) { return 123, true } function TestSerializePublicKeyFails (line 211) | func TestSerializePublicKeyFails(t *testing.T) { function mustCreatePublicKey (line 238) | func mustCreatePublicKey(t *testing.T, keyBytes []byte, idRequirement ui... function TestSerializePublicKey (line 251) | func TestSerializePublicKey(t *testing.T) { function getTestKeyPair (line 306) | func getTestKeyPair(t *testing.T) ([]byte, []byte) { function TestParsePrivateKeyFails (line 319) | func TestParsePrivateKeyFails(t *testing.T) { function TestParsePrivateKey (line 461) | func TestParsePrivateKey(t *testing.T) { function TestSerializePrivateKeyFails (line 538) | func TestSerializePrivateKeyFails(t *testing.T) { function mustCreatePrivateKey (line 565) | func mustCreatePrivateKey(t *testing.T, keyBytes secretdata.Bytes, idReq... function TestSerializePrivateKey (line 578) | func TestSerializePrivateKey(t *testing.T) { function TestSerializeParametersFailsWithWrongParameters (line 636) | func TestSerializeParametersFailsWithWrongParameters(t *testing.T) { function TestSerializeParameters (line 663) | func TestSerializeParameters(t *testing.T) { function TestParseParameters (line 726) | func TestParseParameters(t *testing.T) { function mustMarshal (line 885) | func mustMarshal(t *testing.T, format proto.Message) []byte { function TestParseParametersFails (line 894) | func TestParseParametersFails(t *testing.T) { FILE: signature/slhdsa/signer.go type signer (line 29) | type signer struct method Sign (line 88) | func (e *signer) Sign(data []byte) ([]byte, error) { function slhdsaSecretKeyFromPrivateKey (line 38) | func slhdsaSecretKeyFromPrivateKey(privateKey *PrivateKey) (*slhdsa.Secr... function NewSigner (line 72) | func NewSigner(privateKey *PrivateKey, _ internalapi.Token) (tink.Signer... function signerConstructor (line 96) | func signerConstructor(key key.Key) (any, error) { FILE: signature/slhdsa/signer_key_manager_test.go function TestSignerKeyManagerGetPrimitiveBasic (line 35) | func TestSignerKeyManagerGetPrimitiveBasic(t *testing.T) { function TestSignerKeyManagerGetPrimitiveWithInvalidInput (line 109) | func TestSignerKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function TestSignerKeyManagerNewKeyDataBasic (line 216) | func TestSignerKeyManagerNewKeyDataBasic(t *testing.T) { function TestSignerKeyManagerPublicKeyDataBasic (line 328) | func TestSignerKeyManagerPublicKeyDataBasic(t *testing.T) { function TestSignerKeyManagerPublicKeyDataWithInvalidInput (line 442) | func TestSignerKeyManagerPublicKeyDataWithInvalidInput(t *testing.T) { function newSLHDSAPrivateKey (line 549) | func newSLHDSAPrivateKey(hashType tinkslhdsa.HashType, keySize int, sigT... function validateSLHDSAPrivateKey (line 757) | func validateSLHDSAPrivateKey(hashType slhdsapb.SlhDsaHashType, keySize ... FILE: signature/slhdsa/signer_verifier_test.go function TestSignVerifyManager (line 31) | func TestSignVerifyManager(t *testing.T) { function TestVerifyFails (line 148) | func TestVerifyFails(t *testing.T) { function TestSignVerifyCorrectness (line 239) | func TestSignVerifyCorrectness(t *testing.T) { function keyGen (line 314) | func keyGen(t *testing.T, hashType tinkslhdsa.HashType, keySize int, sig... FILE: signature/slhdsa/slhdsa.go function init (line 35) | func init() { function RegisterPrimitiveConstructors (line 87) | func RegisterPrimitiveConstructors(c *config.Builder, t internalapi.Toke... FILE: signature/slhdsa/slhdsa_test.go function TestCreateKeysetHandleFromParameters (line 24) | func TestCreateKeysetHandleFromParameters(t *testing.T) { FILE: signature/slhdsa/verifier.go type verifier (line 28) | type verifier struct method Verify (line 87) | func (v *verifier) Verify(signature, data []byte) error { function slhdsaPublicKeyFromPublicKey (line 37) | func slhdsaPublicKeyFromPublicKey(publicKey *PublicKey) (*slhdsa.PublicK... function NewVerifier (line 71) | func NewVerifier(publicKey *PublicKey, _ internalapi.Token) (tink.Verifi... function verifierConstructor (line 94) | func verifierConstructor(key key.Key) (any, error) { FILE: signature/slhdsa/verifier_key_manager_test.go function TestVerifierKeyManagerGetPrimitiveBasic (line 29) | func TestVerifierKeyManagerGetPrimitiveBasic(t *testing.T) { function TestVerifierKeyManagerGetPrimitiveWithInvalidInput (line 90) | func TestVerifierKeyManagerGetPrimitiveWithInvalidInput(t *testing.T) { function newSLHDSAPublicKey (line 138) | func newSLHDSAPublicKey(hashType tinkslhdsa.HashType, keySize int, sigTy... function mustDecodeString (line 142) | func mustDecodeString(t *testing.T, s string) []byte { FILE: signature/subtle/ecdsa.go type ECDSASignature (line 28) | type ECDSASignature struct method EncodeECDSASignature (line 38) | func (sig *ECDSASignature) EncodeECDSASignature(encoding, curveName st... function NewECDSASignature (line 33) | func NewECDSASignature(r, s *big.Int) *ECDSASignature { function DecodeECDSASignature (line 59) | func DecodeECDSASignature(encodedBytes []byte, encoding string) (*ECDSAS... function ValidateECDSAParams (line 79) | func ValidateECDSAParams(hashAlg string, curve string, encoding string) ... FILE: signature/subtle/ecdsa_signer.go type ECDSASigner (line 30) | type ECDSASigner struct method Sign (line 67) | func (e *ECDSASigner) Sign(data []byte) ([]byte, error) { function NewECDSASigner (line 37) | func NewECDSASigner(hashAlg, curve, encoding string, keyValue []byte) (*... function NewECDSASignerFromPrivateKey (line 50) | func NewECDSASignerFromPrivateKey(hashAlg, encoding string, privateKey *... FILE: signature/subtle/ecdsa_signer_verifier_test.go function TestSignVerify (line 30) | func TestSignVerify(t *testing.T) { function TestECDSAInvalidPublicKey (line 76) | func TestECDSAInvalidPublicKey(t *testing.T) { function TestECDSAInvalidCurve (line 82) | func TestECDSAInvalidCurve(t *testing.T) { function TestECDSAWycheproofCases (line 92) | func TestECDSAWycheproofCases(t *testing.T) { FILE: signature/subtle/ecdsa_test.go type paramsTestECDSA (line 28) | type paramsTestECDSA struct function TestECDSAEncodeDecodeDER (line 34) | func TestECDSAEncodeDecodeDER(t *testing.T) { function TestECDSAEncodeDecodeIEEEP1363 (line 65) | func TestECDSAEncodeDecodeIEEEP1363(t *testing.T) { function TestECDSAEncodeWithInvalidInput (line 103) | func TestECDSAEncodeWithInvalidInput(t *testing.T) { function TestECDSADecodeWithModifiedFirstByte (line 134) | func TestECDSADecodeWithModifiedFirstByte(t *testing.T) { function TestECDSADecodeWithModifiedTag (line 146) | func TestECDSADecodeWithModifiedTag(t *testing.T) { function TestECDSADecodeWithModifiedLength (line 158) | func TestECDSADecodeWithModifiedLength(t *testing.T) { function TestECDSADecodeWithUnusedZeros (line 170) | func TestECDSADecodeWithUnusedZeros(t *testing.T) { function TestECDSADecodeWithStructWithThreeNumbers (line 183) | func TestECDSADecodeWithStructWithThreeNumbers(t *testing.T) { function TestECDSAValidateParams (line 198) | func TestECDSAValidateParams(t *testing.T) { function genECDSAInvalidParams (line 213) | func genECDSAInvalidParams() []paramsTestECDSA { function genECDSAValidParams (line 238) | func genECDSAValidParams() []paramsTestECDSA { function newECDSARandomSignature (line 251) | func newECDSARandomSignature() *subtle.ECDSASignature { FILE: signature/subtle/ecdsa_verifier.go type ECDSAVerifier (line 30) | type ECDSAVerifier struct method Verify (line 68) | func (e *ECDSAVerifier) Verify(signatureBytes, data []byte) error { function NewECDSAVerifier (line 37) | func NewECDSAVerifier(hashAlg string, curve string, encoding string, x [... function NewECDSAVerifierFromPublicKey (line 47) | func NewECDSAVerifierFromPublicKey(hashAlg string, encoding string, publ... FILE: signature/subtle/ed25519_signer.go type ED25519Signer (line 23) | type ED25519Signer struct method Sign (line 44) | func (e *ED25519Signer) Sign(data []byte) ([]byte, error) { function NewED25519Signer (line 28) | func NewED25519Signer(keyValue []byte) (*ED25519Signer, error) { function NewED25519SignerFromPrivateKey (line 37) | func NewED25519SignerFromPrivateKey(privateKey *ed25519.PrivateKey) (*ED... FILE: signature/subtle/ed25519_signer_verifier_test.go function TestED25519SignVerifyCorrectness (line 32) | func TestED25519SignVerifyCorrectness(t *testing.T) { function TestED25519VerifyFails (line 75) | func TestED25519VerifyFails(t *testing.T) { function TestED25519SignVerify (line 116) | func TestED25519SignVerify(t *testing.T) { function NewED25519SignerInvalidKeyLength (line 176) | func NewED25519SignerInvalidKeyLength(t *testing.T) { function TestED25519WycheproofCases (line 212) | func TestED25519WycheproofCases(t *testing.T) { FILE: signature/subtle/ed25519_verifier.go type ED25519Verifier (line 27) | type ED25519Verifier struct method Verify (line 46) | func (e *ED25519Verifier) Verify(signature, data []byte) error { function NewED25519Verifier (line 32) | func NewED25519Verifier(pub []byte) (*ED25519Verifier, error) { function NewED25519VerifierFromPublicKey (line 38) | func NewED25519VerifierFromPublicKey(publicKey *ed25519.PublicKey) (*ED2... FILE: signature/subtle/subtle_test.go type ecdsaSuite (line 22) | type ecdsaSuite struct type ecdsaGroup (line 27) | type ecdsaGroup struct type ecdsaCase (line 37) | type ecdsaCase struct type ecdsaTestKey (line 43) | type ecdsaTestKey struct type ecdsaJWK (line 50) | type ecdsaJWK struct type ed25519Suite (line 59) | type ed25519Suite struct type ed25519Group (line 64) | type ed25519Group struct type ed25519Case (line 73) | type ed25519Case struct type ed25519TestKey (line 79) | type ed25519TestKey struct FILE: signature/verifier_factory.go function NewVerifierWithConfig (line 38) | func NewVerifierWithConfig(handle *keyset.Handle, config keyset.Config) ... function NewVerifier (line 48) | func NewVerifier(handle *keyset.Handle) (tink.Verifier, error) { type wrappedVerifier (line 54) | type wrappedVerifier struct method Verify (line 151) | func (v *wrappedVerifier) Verify(signature, data []byte) error { type verifierAndID (line 59) | type verifierAndID struct method Verify (line 64) | func (a *verifierAndID) Verify(signatureBytes, data []byte) error { type fullVerifierAdapter (line 71) | type fullVerifierAdapter struct method Verify (line 79) | func (a *fullVerifierAdapter) Verify(signatureBytes, data []byte) error { function extractFullVerifier (line 94) | func extractFullVerifier(e *primitiveset.Entry[tink.Verifier]) (tink.Ver... function newWrappedVerifier (line 110) | func newWrappedVerifier(ps *primitiveset.PrimitiveSet[tink.Verifier]) (*... function createVerifierLogger (line 134) | func createVerifierLogger(ps *primitiveset.PrimitiveSet[tink.Verifier]) ... FILE: streamingaead/aesctrhmac/aesctrhmac.go function RegisterPrimitiveConstructor (line 38) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 45) | func init() { FILE: streamingaead/aesctrhmac/aesctrhmac_test.go function TestRegisterPrimitiveConstructor (line 29) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: streamingaead/aesctrhmac/key.go type Key (line 28) | type Key struct method Parameters (line 51) | func (k *Key) Parameters() key.Parameters { return k.parameters } method KeyBytes (line 54) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method IDRequirement (line 57) | func (k *Key) IDRequirement() (uint32, bool) { return 0, false } method Equal (line 60) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 37) | func NewKey(parameters *Parameters, keyBytes secretdata.Bytes) (*Key, er... function primitiveConstructor (line 65) | func primitiveConstructor(k key.Key) (any, error) { function validateHashType (line 90) | func validateHashType(hashType HashType) error { function createKey (line 101) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: streamingaead/aesctrhmac/key_manager_test.go function TestGetPrimitiveBasic (line 35) | func TestGetPrimitiveBasic(t *testing.T) { function TestGetPrimitiveWithInvalidInput (line 56) | func TestGetPrimitiveWithInvalidInput(t *testing.T) { function TestNewKeyMultipleTimes (line 131) | func TestNewKeyMultipleTimes(t *testing.T) { function TestNewKeyBasic (line 166) | func TestNewKeyBasic(t *testing.T) { function TestNewKeyWithInvalidInput (line 188) | func TestNewKeyWithInvalidInput(t *testing.T) { function TestNewKeyDataBasic (line 224) | func TestNewKeyDataBasic(t *testing.T) { function TestNewKeyDataWithInvalidInput (line 263) | func TestNewKeyDataWithInvalidInput(t *testing.T) { function TestDoesSupport (line 288) | func TestDoesSupport(t *testing.T) { function TestTypeURL (line 301) | func TestTypeURL(t *testing.T) { function genInvalidAESCTRHMACKeyFormats (line 311) | func genInvalidAESCTRHMACKeyFormats() []proto.Message { function validateAESCTRHMACKey (line 323) | func validateAESCTRHMACKey(key *ctrhmacpb.AesCtrHmacStreamingKey, format... function validatePrimitive (line 355) | func validatePrimitive(p any, key *ctrhmacpb.AesCtrHmacStreamingKey) err... function encryptDecrypt (line 360) | func encryptDecrypt(encryptCipher, decryptCipher tink.StreamingAEAD, ptS... FILE: streamingaead/aesctrhmac/key_test.go function TestNewKey_Fails (line 33) | func TestNewKey_Fails(t *testing.T) { function TestNewKey_Success (line 69) | func TestNewKey_Success(t *testing.T) { type stubKey (line 92) | type stubKey struct method Parameters (line 96) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 97) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 98) | func (k *stubKey) IDRequirement() (uint32, bool) { return 0, false } function TestKeyEqual_FalseIfDifferent (line 100) | func TestKeyEqual_FalseIfDifferent(t *testing.T) { function TestKeyCreator (line 181) | func TestKeyCreator(t *testing.T) { function TestKeyCreator_FailsIfUnsupportedParamValues (line 250) | func TestKeyCreator_FailsIfUnsupportedParamValues(t *testing.T) { FILE: streamingaead/aesctrhmac/parameters.go type HashType (line 24) | type HashType method String (line 37) | func (ht HashType) String() string { constant UnknownHashType (line 28) | UnknownHashType HashType = iota constant SHA1 (line 30) | SHA1 constant SHA256 (line 32) | SHA256 constant SHA512 (line 34) | SHA512 type Parameters (line 51) | type Parameters struct method KeySizeInBytes (line 61) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method DerivedKeySizeInBytes (line 64) | func (p *Parameters) DerivedKeySizeInBytes() int { method HkdfHashType (line 69) | func (p *Parameters) HkdfHashType() HashType { return p.hkdfHashType } method HmacHashType (line 72) | func (p *Parameters) HmacHashType() HashType { return p.hmacHashType } method HmacTagSizeInBytes (line 75) | func (p *Parameters) HmacTagSizeInBytes() int { return p.hmacTagSizeIn... method SegmentSizeInBytes (line 78) | func (p *Parameters) SegmentSizeInBytes() int32 { return p.segmentSize... method HasIDRequirement (line 82) | func (p *Parameters) HasIDRequirement() bool { return false } method Equal (line 85) | func (p *Parameters) Equal(other key.Parameters) bool { type ParametersOpts (line 100) | type ParametersOpts struct constant noncePrefixSize (line 112) | noncePrefixSize = 7 constant headerLengthSize (line 114) | headerLengthSize = 1 function NewParameters (line 118) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: streamingaead/aesctrhmac/parameters_test.go function TestNewParameters_InvalidKeySize (line 25) | func TestNewParameters_InvalidKeySize(t *testing.T) { function TestNewParameters_InvalidDerivedKeySize (line 43) | func TestNewParameters_InvalidDerivedKeySize(t *testing.T) { function TestNewParameters_InvalidHkdfHashType (line 61) | func TestNewParameters_InvalidHkdfHashType(t *testing.T) { function TestNewParameters_InvalidHmacHashType (line 75) | func TestNewParameters_InvalidHmacHashType(t *testing.T) { function TestNewParameters_InvalidTagSize (line 89) | func TestNewParameters_InvalidTagSize(t *testing.T) { function TestNewParameters_InvalidCiphertextSegmentSize (line 169) | func TestNewParameters_InvalidCiphertextSegmentSize(t *testing.T) { type parametersTestCases (line 183) | type parametersTestCases struct function getParametersTestCases (line 188) | func getParametersTestCases(t *testing.T) []parametersTestCases { function TestNewParameters (line 216) | func TestNewParameters(t *testing.T) { function mustCreateParameters (line 261) | func mustCreateParameters(t *testing.T, opts aesctrhmac.ParametersOpts) ... function TestParametersEqual_FalseIfDifferent (line 270) | func TestParametersEqual_FalseIfDifferent(t *testing.T) { function TestHashType_String (line 315) | func TestHashType_String(t *testing.T) { FILE: streamingaead/aesctrhmac/protoserialization.go constant typeURL (line 32) | typeURL = "type.googleapis.com/google.crypto.tink.AesCtrHmacStreamingKey" type keySerializer (line 35) | type keySerializer struct method SerializeKey (line 52) | func (s *keySerializer) SerializeKey(k key.Key) (*protoserialization.K... function hashTypeToProto (line 39) | func hashTypeToProto(ht HashType) (commonpb.HashType, error) { type keyParser (line 94) | type keyParser struct method ParseKey (line 111) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function hashTypeFromProto (line 98) | func hashTypeFromProto(ht commonpb.HashType) (HashType, error) { type parametersSerializer (line 154) | type parametersSerializer struct method Serialize (line 158) | func (s *parametersSerializer) Serialize(params key.Parameters) (*tink... type parametersParser (line 195) | type parametersParser struct method Parse (line 199) | func (s *parametersParser) Parse(kt *tinkpb.KeyTemplate) (key.Paramete... FILE: streamingaead/aesctrhmac/protoserialization_test.go function mustMarshal (line 36) | func mustMarshal(t *testing.T, p proto.Message) []byte { type keyParsingTestCase (line 45) | type keyParsingTestCase struct function testCases (line 51) | func testCases(t *testing.T) []*keyParsingTestCase { function TestParseKey (line 130) | func TestParseKey(t *testing.T) { function mustCreateProtoSerialization (line 144) | func mustCreateProtoSerialization(t *testing.T, keyData *tinkpb.KeyData,... function TestParseKey_Fails (line 153) | func TestParseKey_Fails(t *testing.T) { function TestSerializeKey (line 359) | func TestSerializeKey(t *testing.T) { function TestSerializeKey_Fails (line 373) | func TestSerializeKey_Fails(t *testing.T) { type parametersTestCase (line 395) | type parametersTestCase struct function parameterTestCases (line 401) | func parameterTestCases(t *testing.T) []*parametersTestCase { function TestParseParameters (line 468) | func TestParseParameters(t *testing.T) { function TestParseParameters_Fails (line 482) | func TestParseParameters_Fails(t *testing.T) { function TestSerializeParameters (line 650) | func TestSerializeParameters(t *testing.T) { FILE: streamingaead/aesgcmhkdf/aesgcmhkdf.go function RegisterPrimitiveConstructor (line 38) | func RegisterPrimitiveConstructor(b *config.Builder, t internalapi.Token... function init (line 45) | func init() { FILE: streamingaead/aesgcmhkdf/aesgcmhkdf_test.go function TestRegisterPrimitiveConstructor (line 29) | func TestRegisterPrimitiveConstructor(t *testing.T) { FILE: streamingaead/aesgcmhkdf/key.go type Key (line 28) | type Key struct method KeyBytes (line 53) | func (k *Key) KeyBytes() secretdata.Bytes { return k.keyBytes } method Parameters (line 56) | func (k *Key) Parameters() key.Parameters { return k.parameters } method IDRequirement (line 59) | func (k *Key) IDRequirement() (uint32, bool) { return 0, false } method Equal (line 62) | func (k *Key) Equal(other key.Key) bool { function NewKey (line 38) | func NewKey(parameters *Parameters, keyBytes secretdata.Bytes) (*Key, er... function primitiveConstructor (line 69) | func primitiveConstructor(k key.Key) (any, error) { function createKey (line 89) | func createKey(p key.Parameters, idRequirement uint32) (key.Key, error) { FILE: streamingaead/aesgcmhkdf/key_manager_test.go function TestGetPrimitiveBasic (line 35) | func TestGetPrimitiveBasic(t *testing.T) { function TestGetPrimitiveWithInvalidInput (line 56) | func TestGetPrimitiveWithInvalidInput(t *testing.T) { function TestNewKeyMultipleTimes (line 90) | func TestNewKeyMultipleTimes(t *testing.T) { function TestNewKeyBasic (line 125) | func TestNewKeyBasic(t *testing.T) { function TestNewKeyWithInvalidInput (line 152) | func TestNewKeyWithInvalidInput(t *testing.T) { function TestNewKeyDataBasic (line 188) | func TestNewKeyDataBasic(t *testing.T) { function TestNewKeyDataWithInvalidInput (line 232) | func TestNewKeyDataWithInvalidInput(t *testing.T) { function TestDoesSupport (line 257) | func TestDoesSupport(t *testing.T) { function TestTypeURL (line 270) | func TestTypeURL(t *testing.T) { function genInvalidAESGCMHKDFKeys (line 280) | func genInvalidAESGCMHKDFKeys() []proto.Message { function genInvalidAESGCMHKDFKeyFormats (line 293) | func genInvalidAESGCMHKDFKeyFormats() []proto.Message { function validateAESGCMHKDFKey (line 304) | func validateAESGCMHKDFKey(key *gcmhkdfpb.AesGcmHkdfStreamingKey, format... function validatePrimitive (line 334) | func validatePrimitive(p any, key *gcmhkdfpb.AesGcmHkdfStreamingKey) err... function encryptDecrypt (line 339) | func encryptDecrypt(encryptCipher, decryptCipher tink.StreamingAEAD, ptS... FILE: streamingaead/aesgcmhkdf/key_test.go function TestNewKey_Fails (line 38) | func TestNewKey_Fails(t *testing.T) { type TestKey (line 82) | type TestKey struct function TestNewKey (line 88) | func TestNewKey(t *testing.T) { type stubKey (line 154) | type stubKey struct method Parameters (line 158) | func (k *stubKey) Parameters() key.Parameters { return nil } method Equal (line 159) | func (k *stubKey) Equal(other key.Key) bool { return true } method IDRequirement (line 160) | func (k *stubKey) IDRequirement() (uint32, bool) { return 0, false } function TestKeyEqual_FalseIfDifferentType (line 162) | func TestKeyEqual_FalseIfDifferentType(t *testing.T) { function TestKeyEqual_FalseIfDifferent (line 182) | func TestKeyEqual_FalseIfDifferent(t *testing.T) { function TestKeyCreator (line 301) | func TestKeyCreator(t *testing.T) { FILE: streamingaead/aesgcmhkdf/parameters.go type HashType (line 24) | type HashType method String (line 37) | func (ht HashType) String() string { constant HashTypeUnknown (line 28) | HashTypeUnknown HashType = iota constant SHA1 (line 30) | SHA1 constant SHA256 (line 32) | SHA256 constant SHA512 (line 34) | SHA512 type Parameters (line 51) | type Parameters struct method KeySizeInBytes (line 61) | func (p *Parameters) KeySizeInBytes() int { return p.keySizeInBytes } method DerivedKeySizeInBytes (line 64) | func (p *Parameters) DerivedKeySizeInBytes() int { return p.derivedKey... method HKDFHashType (line 67) | func (p *Parameters) HKDFHashType() HashType { return p.hkdfHashType } method SegmentSizeInBytes (line 70) | func (p *Parameters) SegmentSizeInBytes() int32 { return p.segmentSize... method HasIDRequirement (line 114) | func (p *Parameters) HasIDRequirement() bool { return false } method Equal (line 117) | func (p *Parameters) Equal(other key.Parameters) bool { type ParametersOpts (line 73) | type ParametersOpts struct function validateOpts (line 80) | func validateOpts(opts *ParametersOpts) error { function NewParameters (line 100) | func NewParameters(opts ParametersOpts) (*Parameters, error) { FILE: streamingaead/aesgcmhkdf/parameters_test.go function TestNewParameters_InvalidKeySize (line 24) | func TestNewParameters_InvalidKeySize(t *testing.T) { function TestNewParameters_InvalidDerivedKeySize (line 38) | func TestNewParameters_InvalidDerivedKeySize(t *testing.T) { function TestNewParameters_InvalidHashType (line 52) | func TestNewParameters_InvalidHashType(t *testing.T) { function TestNewParameters_InvalidSegmentSize (line 65) | func TestNewParameters_InvalidSegmentSize(t *testing.T) { function TestNewParameters (line 79) | func TestNewParameters(t *testing.T) { function TestParametersEqual_FalseIfDifferent (line 134) | func TestParametersEqual_FalseIfDifferent(t *testing.T) { FILE: streamingaead/aesgcmhkdf/protoserialization.go constant typeURL (line 30) | typeURL = "type.googleapis.com/google.crypto.tink.AesGcmHkdfStreamingKey" type keySerializer (line 32) | type keySerializer struct method SerializeKey (line 49) | func (s *keySerializer) SerializeKey(k key.Key) (*protoserialization.K... function hashTypeToProto (line 36) | func hashTypeToProto(ht HashType) (commonpb.HashType, error) { type keyParser (line 87) | type keyParser struct method ParseKey (line 104) | func (s *keyParser) ParseKey(keySerialization *protoserialization.KeyS... function hashTypeFromProto (line 91) | func hashTypeFromProto(ht commonpb.HashType) (HashType, error) { type parametersSerializer (line 140) | type parametersSerializer struct method Serialize (line 144) | func (s *parametersSerializer) Serialize(params key.Parameters) (*tink... type parametersParser (line 173) | type parametersParser struct method Parse (line 177) | func (s *parametersParser) Parse(kt *tinkpb.KeyTemplate) (key.Paramete... FILE: streamingaead/aesgcmhkdf/protoserialization_test.go function mustMarshal (line 35) | func mustMarshal(t *testing.T, p proto.Message) []byte { type keyParsingTestCase (line 44) | type keyParsingTestCase struct function testCases (line 50) | func testCases(t *testing.T) []*keyParsingTestCase { function TestParseKey (line 113) | func TestParseKey(t *testing.T) { function mustCreateProtoSerialization (line 127) | func mustCreateProtoSerialization(t *testing.T, keyData *tinkpb.KeyData,... function TestParseKey_Fails (line 136) | func TestParseKey_Fails(t *testing.T) { function TestSerializeKey (line 274) | func TestSerializeKey(t *testing.T) { function TestSerializeKey_Fails (line 288) | func TestSerializeKey_Fails(t *testing.T) { type parametersTestCase (line 314) | type parametersTestCase struct function parameterTestCases (line 320) | func parameterTestCases(t *testing.T) []*parametersTestCase { function TestParseParameters (line 370) | func TestParseParameters(t *testing.T) { function TestParseParameters_Fails (line 384) | func TestParseParameters_Fails(t *testing.T) { function TestSerializeParameters (line 490) | func TestSerializeParameters(t *testing.T) { FILE: streamingaead/decrypt_reader.go type decryptReader (line 30) | type decryptReader struct method Read (line 41) | func (dr *decryptReader) Read(p []byte) (n int, err error) { type unreader (line 94) | type unreader struct method Read (line 101) | func (u *unreader) Read(buf []byte) (int, error) { method unread (line 120) | func (u *unreader) unread() { method disable (line 126) | func (u *unreader) disable() { FILE: streamingaead/decrypt_reader_test.go function BenchmarkDecryptReader (line 31) | func BenchmarkDecryptReader(b *testing.B) { function TestUnreaderUnread (line 117) | func TestUnreaderUnread(t *testing.T) { function TestUnreader (line 142) | func TestUnreader(t *testing.T) { FILE: streamingaead/streamingaead_benchmark_test.go function BenchmarkEncryptDecrypt (line 30) | func BenchmarkEncryptDecrypt(b *testing.B) { FILE: streamingaead/streamingaead_factory.go function New (line 30) | func New(handle *keyset.Handle) (tink.StreamingAEAD, error) { function NewWithConfig (line 36) | func NewWithConfig(handle *keyset.Handle, config keyset.Config) (tink.St... type wrappedStreamingAEAD (line 48) | type wrappedStreamingAEAD struct method NewEncryptingWriter (line 59) | func (s *wrappedStreamingAEAD) NewEncryptingWriter(w io.Writer, aad []... method NewDecryptingReader (line 70) | func (s *wrappedStreamingAEAD) NewDecryptingReader(r io.Reader, aad []... FILE: streamingaead/streamingaead_factory_test.go constant aesGCMHKDFTypeURL (line 40) | aesGCMHKDFTypeURL = "type.googleapis.com/google.crypto.tink.AesGcmHkdfSt... function TestFactoryMultipleKeys (line 43) | func TestFactoryMultipleKeys(t *testing.T) { function validateFactoryCipher (line 98) | func validateFactoryCipher(encryptCipher tink.StreamingAEAD, decryptCiph... function encryptDecrypt (line 109) | func encryptDecrypt(encryptCipher, decryptCipher tink.StreamingAEAD, ptS... function TestFactoryWithInvalidPrimitiveSetType (line 141) | func TestFactoryWithInvalidPrimitiveSetType(t *testing.T) { function TestFactoryWithValidPrimitiveSetType (line 153) | func TestFactoryWithValidPrimitiveSetType(t *testing.T) { function TestFactoryWithKeysetWithTinkKeys (line 165) | func TestFactoryWithKeysetWithTinkKeys(t *testing.T) { function TestNewWithConfig (line 222) | func TestNewWithConfig(t *testing.T) { function TestNewWithConfigFailsWithEmptyConfig (line 236) | func TestNewWithConfigFailsWithEmptyConfig(t *testing.T) { FILE: streamingaead/streamingaead_key_templates.go function AES128GCMHKDF4KBKeyTemplate (line 37) | func AES128GCMHKDF4KBKeyTemplate() *tinkpb.KeyTemplate { function AES128GCMHKDF1MBKeyTemplate (line 46) | func AES128GCMHKDF1MBKeyTemplate() *tinkpb.KeyTemplate { function AES256GCMHKDF4KBKeyTemplate (line 55) | func AES256GCMHKDF4KBKeyTemplate() *tinkpb.KeyTemplate { function AES256GCMHKDF1MBKeyTemplate (line 64) | func AES256GCMHKDF1MBKeyTemplate() *tinkpb.KeyTemplate { function AES128CTRHMACSHA256Segment4KBKeyTemplate (line 76) | func AES128CTRHMACSHA256Segment4KBKeyTemplate() *tinkpb.KeyTemplate { function AES128CTRHMACSHA256Segment1MBKeyTemplate (line 88) | func AES128CTRHMACSHA256Segment1MBKeyTemplate() *tinkpb.KeyTemplate { function AES256CTRHMACSHA256Segment4KBKeyTemplate (line 100) | func AES256CTRHMACSHA256Segment4KBKeyTemplate() *tinkpb.KeyTemplate { function AES256CTRHMACSHA256Segment1MBKeyTemplate (line 112) | func AES256CTRHMACSHA256Segment1MBKeyTemplate() *tinkpb.KeyTemplate { function newAESGCMHKDFKeyTemplate (line 118) | func newAESGCMHKDFKeyTemplate(mainKeySize uint32, hkdfHashType commonpb.... function newAESCTRHMACKeyTemplate (line 139) | func newAESCTRHMACKeyTemplate(mainKeySize uint32, hkdfHashType commonpb.... FILE: streamingaead/streamingaead_key_templates_test.go function TestKeyTemplates (line 27) | func TestKeyTemplates(t *testing.T) { FILE: streamingaead/streamingaead_test.go function Example (line 32) | func Example() { FILE: streamingaead/subtle/aes_ctr_hmac.go constant AESCTRHMACNonceSizeInBytes (line 35) | AESCTRHMACNonceSizeInBytes = 16 constant AESCTRHMACNoncePrefixSizeInBytes (line 38) | AESCTRHMACNoncePrefixSizeInBytes = 7 constant AESCTRHMACKeySizeInBytes (line 41) | AESCTRHMACKeySizeInBytes = 32 type AESCTRHMAC (line 49) | type AESCTRHMAC struct method HeaderLength (line 119) | func (a *AESCTRHMAC) HeaderLength() int { method deriveKeys (line 126) | func (a *AESCTRHMAC) deriveKeys(salt, aad []byte) ([]byte, []byte, err... method NewEncryptingWriter (line 185) | func (a *AESCTRHMAC) NewEncryptingWriter(w io.Writer, aad []byte) (io.... method NewDecryptingReader (line 273) | func (a *AESCTRHMAC) NewDecryptingReader(r io.Reader, aad []byte) (io.... function NewAESCTRHMAC (line 78) | func NewAESCTRHMAC(mainKey []byte, hkdfAlg string, keySizeInBytes int, t... type aesCTRHMACSegmentEncrypter (line 137) | type aesCTRHMACSegmentEncrypter struct method EncryptSegment (line 143) | func (e aesCTRHMACSegmentEncrypter) EncryptSegment(segment, nonce []by... method EncryptSegmentWithDst (line 148) | func (e aesCTRHMACSegmentEncrypter) EncryptSegmentWithDst(dst, segment... type aesCTRHMACWriter (line 176) | type aesCTRHMACWriter struct type aesCTRHMACSegmentDecrypter (line 225) | type aesCTRHMACSegmentDecrypter struct method DecryptSegment (line 231) | func (d aesCTRHMACSegmentDecrypter) DecryptSegment(segment, nonce []by... method DecryptSegmentWithDst (line 236) | func (d aesCTRHMACSegmentDecrypter) DecryptSegmentWithDst(dst, segment... type aesCTRHMACReader (line 266) | type aesCTRHMACReader struct FILE: streamingaead/subtle/aes_ctr_hmac_test.go function TestAESCTRHMACEncryptDecrypt (line 26) | func TestAESCTRHMACEncryptDecrypt(t *testing.T) { function TestAESCTRHMACModifiedCiphertext (line 235) | func TestAESCTRHMACModifiedCiphertext(t *testing.T) { function TestAESCTRHMACWithValidParameters (line 332) | func TestAESCTRHMACWithValidParameters(t *testing.T) { function TestAESCTRHMACWithInvalidParameters (line 475) | func TestAESCTRHMACWithInvalidParameters(t *testing.T) { function TestAESCTRHMACWithNegativeFirstSegmentOffsetFails (line 597) | func TestAESCTRHMACWithNegativeFirstSegmentOffsetFails(t *testing.T) { FILE: streamingaead/subtle/aes_gcm_hkdf.go constant AESGCMHKDFNonceSizeInBytes (line 33) | AESGCMHKDFNonceSizeInBytes = 12 constant AESGCMHKDFNoncePrefixSizeInBytes (line 37) | AESGCMHKDFNoncePrefixSizeInBytes = 7 constant AESGCMHKDFTagSizeInBytes (line 41) | AESGCMHKDFTagSizeInBytes = 16 type AESGCMHKDF (line 49) | type AESGCMHKDF struct method HeaderLength (line 97) | func (a *AESGCMHKDF) HeaderLength() int { method deriveKey (line 103) | func (a *AESGCMHKDF) deriveKey(salt, aad []byte) ([]byte, error) { method newCipher (line 108) | func (a *AESGCMHKDF) newCipher(key []byte) (cipher.AEAD, error) { method NewEncryptingWriter (line 153) | func (a *AESGCMHKDF) NewEncryptingWriter(w io.Writer, aad []byte) (io.... method NewDecryptingReader (line 221) | func (a *AESGCMHKDF) NewDecryptingReader(r io.Reader, aad []byte) (io.... function NewAESGCMHKDF (line 71) | func NewAESGCMHKDF(mainKey []byte, hkdfAlg string, keySizeInBytes, ciphe... type aesGCMHKDFSegmentEncrypter (line 120) | type aesGCMHKDFSegmentEncrypter struct method EncryptSegment (line 124) | func (e aesGCMHKDFSegmentEncrypter) EncryptSegment(segment, nonce []by... method EncryptSegmentWithDst (line 129) | func (e aesGCMHKDFSegmentEncrypter) EncryptSegmentWithDst(dst, segment... type aesGCMHKDFWriter (line 144) | type aesGCMHKDFWriter struct type aesGCMHKDFSegmentDecrypter (line 190) | type aesGCMHKDFSegmentDecrypter struct method DecryptSegment (line 194) | func (d aesGCMHKDFSegmentDecrypter) DecryptSegment(segment, nonce []by... method DecryptSegmentWithDst (line 199) | func (d aesGCMHKDFSegmentDecrypter) DecryptSegmentWithDst(dst, segment... type aesGCMHKDFReader (line 214) | type aesGCMHKDFReader struct FILE: streamingaead/subtle/aes_gcm_hkdf_test.go function TestAESGCMHKDFEncryptDecrypt (line 24) | func TestAESGCMHKDFEncryptDecrypt(t *testing.T) { function TestAESGCMHKDFModifiedCiphertext (line 213) | func TestAESGCMHKDFModifiedCiphertext(t *testing.T) { FILE: streamingaead/subtle/noncebased/noncebased.go type SegmentEncrypter (line 71) | type SegmentEncrypter interface type segmentEncrypterWithDst (line 78) | type segmentEncrypterWithDst interface type Writer (line 90) | type Writer struct method Write (line 154) | func (w *Writer) Write(p []byte) (int, error) { method Close (line 197) | func (w *Writer) Close() error { type WriterParams (line 106) | type WriterParams struct function NewWriter (line 132) | func NewWriter(params WriterParams) (*Writer, error) { type SegmentDecrypter (line 226) | type SegmentDecrypter interface type segmentDecrypterWithDst (line 233) | type segmentDecrypterWithDst interface type Reader (line 246) | type Reader struct method Read (line 310) | func (r *Reader) Read(p []byte) (int, error) { type ReaderParams (line 262) | type ReaderParams struct function NewReader (line 287) | func NewReader(params ReaderParams) (*Reader, error) { function generateSegmentNonce (line 383) | func generateSegmentNonce(size int, prefix []byte, segmentNum uint64, la... FILE: streamingaead/subtle/noncebased/noncebased_test.go function TestNonceBased (line 30) | func TestNonceBased(t *testing.T) { function TestNonceBased_doubleEncrypt (line 122) | func TestNonceBased_doubleEncrypt(t *testing.T) { function TestNonceBased_invalidParameters (line 209) | func TestNonceBased_invalidParameters(t *testing.T) { type testEncrypter (line 271) | type testEncrypter struct method EncryptSegment (line 274) | func (e testEncrypter) EncryptSegment(segment, nonce []byte) ([]byte, ... type testDecrypter (line 282) | type testDecrypter struct method DecryptSegment (line 285) | func (d testDecrypter) DecryptSegment(segment, nonce []byte) ([]byte, ... type testEncrypterWithDst (line 301) | type testEncrypterWithDst struct method EncryptSegment (line 304) | func (e testEncrypterWithDst) EncryptSegment(segment, nonce []byte) ([... method EncryptSegmentWithDst (line 308) | func (e testEncrypterWithDst) EncryptSegmentWithDst(dst, segment, nonc... type testDecrypterWithDst (line 324) | type testDecrypterWithDst struct method DecryptSegment (line 327) | func (d testDecrypterWithDst) DecryptSegment(segment, nonce []byte) ([... method DecryptSegmentWithDst (line 331) | func (d testDecrypterWithDst) DecryptSegmentWithDst(dst, segment, nonc... function testEncrypt (line 357) | func testEncrypt(plaintextSize, noncePrefixSize int, wp noncebased.Write... function testDecrypt (line 391) | func testDecrypt(plaintext, ciphertext []byte, chunkSize int, rp nonceba... function TestEncryptDecryptWithOldInterface (line 424) | func TestEncryptDecryptWithOldInterface(t *testing.T) { FILE: streamingaead/subtle/subtle_test.go function encrypt (line 38) | func encrypt(cipher tink.StreamingAEAD, aad []byte, plaintextSize int) (... function decrypt (line 64) | func decrypt(cipher tink.StreamingAEAD, aad, pt, ct []byte, chunkSize in... function segmentPos (line 94) | func segmentPos(segmentSize, firstSegmentOffset, headerLen, segmentNr in... FILE: subtle/hkdf.go constant minTagSizeInBytes (line 27) | minTagSizeInBytes = uint32(10) function validateHKDFParamsAndGetHashSize (line 34) | func validateHKDFParamsAndGetHashSize(hash string, keySize uint32, tagSi... function ComputeHKDF (line 50) | func ComputeHKDF(hashAlg string, key []byte, salt []byte, info []byte, t... FILE: subtle/hkdf_test.go function TestHKDFBasic (line 24) | func TestHKDFBasic(t *testing.T) { function TestNewHMACWithInvalidInput (line 156) | func TestNewHMACWithInvalidInput(t *testing.T) { FILE: subtle/random/random.go function GetRandomBytes (line 25) | func GetRandomBytes(n uint32) []byte { function GetRandomUint32 (line 32) | func GetRandomUint32() uint32 { FILE: subtle/random/random_test.go function TestGetRandomBytes (line 23) | func TestGetRandomBytes(t *testing.T) { FILE: subtle/subtle.go function GetHashDigestSize (line 41) | func GetHashDigestSize(hash string) (uint32, error) { function ConvertHashName (line 54) | func ConvertHashName(name string) string { function ConvertCurveName (line 73) | func ConvertCurveName(name string) string { function GetHashFunc (line 87) | func GetHashFunc(hash string) func() hash.Hash { function GetCurve (line 106) | func GetCurve(curve string) elliptic.Curve { function ComputeHash (line 120) | func ComputeHash(hashFunc func() hash.Hash, data []byte) ([]byte, error) { function NewBigIntFromHex (line 130) | func NewBigIntFromHex(s string) (*big.Int, error) { FILE: subtle/subtle_test.go function TestConvertHashName (line 25) | func TestConvertHashName(t *testing.T) { function TestConvertCurveName (line 34) | func TestConvertCurveName(t *testing.T) { function TestComputeHash (line 43) | func TestComputeHash(t *testing.T) { function TestGetCurve (line 74) | func TestGetCurve(t *testing.T) { FILE: subtle/x25519.go function GeneratePrivateKeyX25519 (line 24) | func GeneratePrivateKeyX25519() ([]byte, error) { function ComputeSharedSecretX25519 (line 32) | func ComputeSharedSecretX25519(privKey, pubValue []byte) ([]byte, error) { function PublicFromPrivateX25519 (line 37) | func PublicFromPrivateX25519(privKey []byte) ([]byte, error) { FILE: subtle/x25519_test.go function TestComputeSharedSecretX25519WithRFCTestVectors (line 29) | func TestComputeSharedSecretX25519WithRFCTestVectors(t *testing.T) { type x25519Suite (line 63) | type x25519Suite struct type x25519Group (line 68) | type x25519Group struct type x25519Case (line 74) | type x25519Case struct function TestComputeSharedSecretX25519WithWycheproofVectors (line 83) | func TestComputeSharedSecretX25519WithWycheproofVectors(t *testing.T) { function TestComputeSharedSecretX25519Fails (line 120) | func TestComputeSharedSecretX25519Fails(t *testing.T) { function TestPublicFromPrivateX25519WithRFCTestVectors (line 154) | func TestPublicFromPrivateX25519WithRFCTestVectors(t *testing.T) { function TestPublicFromPrivateX25519Fails (line 182) | func TestPublicFromPrivateX25519Fails(t *testing.T) { FILE: testing/fakekms/fakekms.go constant fakePrefix (line 40) | fakePrefix = "fake-kms://" type fakeClient (line 44) | type fakeClient struct method Supported (line 86) | func (c *fakeClient) Supported(keyURI string) bool { method GetAEAD (line 91) | func (c *fakeClient) GetAEAD(keyURI string) (tink.AEAD, error) { type fakeAEADWithContext (line 48) | type fakeAEADWithContext struct method EncryptWithContext (line 54) | func (a *fakeAEADWithContext) EncryptWithContext(ctx context.Context, ... method DecryptWithContext (line 65) | func (a *fakeAEADWithContext) DecryptWithContext(ctx context.Context, ... function NewClient (line 76) | func NewClient(uriPrefix string) (registry.KMSClient, error) { function NewAEAD (line 99) | func NewAEAD(keyURI string) (tink.AEAD, error) { function NewAEADWithContext (line 116) | func NewAEADWithContext(keyURI string) (tink.AEADWithContext, error) { function NewKeyURI (line 125) | func NewKeyURI() (string, error) { FILE: testing/fakekms/fakekms_test.go constant keyURI (line 26) | keyURI = "fake-kms://CM2b3_MDElQKSAowdHlwZS5nb29nbGVhcGlzLmNvbS9nb29nbGU... constant anotherKeyURI (line 27) | anotherKeyURI = "fake-kms://CLHW_5cHElQKSAowdHlwZS5nb29nbGVhcGlzLmNvbS9n... function TestValidKeyURIs (line 29) | func TestValidKeyURIs(t *testing.T) { function TestBadUriPrefix (line 75) | func TestBadUriPrefix(t *testing.T) { function TestValidPrefix (line 82) | func TestValidPrefix(t *testing.T) { function TestInvalidPrefix (line 97) | func TestInvalidPrefix(t *testing.T) { function TestGetAeadFailsWithBadKeysetEncoding (line 112) | func TestGetAeadFailsWithBadKeysetEncoding(t *testing.T) { function TestAEAD (line 123) | func TestAEAD(t *testing.T) { function TestNewAEADWithContext (line 148) | func TestNewAEADWithContext(t *testing.T) { function TestCompatibility_AEAD_AEADWithContext (line 174) | func TestCompatibility_AEAD_AEADWithContext(t *testing.T) { function TestAEADWithContext_canceledContextFails (line 199) | func TestAEADWithContext_canceledContextFails(t *testing.T) { FILE: testing/fakemonitoring/fakemonitoring.go type Logger (line 25) | type Logger struct method Log (line 33) | func (l *Logger) Log(keyID uint32, numBytes int) { method LogFailure (line 42) | func (l *Logger) LogFailure() { method LogKeyExport (line 47) | func (l *Logger) LogKeyExport(keyID uint32) { type LogEvent (line 52) | type LogEvent struct type LogFailure (line 59) | type LogFailure struct type LogKeyExport (line 64) | type LogKeyExport struct type Client (line 70) | type Client struct method NewLogger (line 91) | func (c *Client) NewLogger(context *monitoring.Context) (monitoring.Lo... method Events (line 99) | func (c *Client) Events() []*LogEvent { method Failures (line 104) | func (c *Client) Failures() []*LogFailure { method KeyExportsLogs (line 109) | func (c *Client) KeyExportsLogs() []*LogKeyExport { method addEvent (line 113) | func (c *Client) addEvent(event *LogEvent) { method addFailure (line 119) | func (c *Client) addFailure(failure *LogFailure) { method addKeyExport (line 125) | func (c *Client) addKeyExport(keyExport *LogKeyExport) { function NewClient (line 84) | func NewClient(name string) *Client { FILE: testing/fakemonitoring/fakemonitoring_test.go function TestCreateNewClient (line 25) | func TestCreateNewClient(t *testing.T) { function TestCreateNewLoggers (line 32) | func TestCreateNewLoggers(t *testing.T) { function TestLoggerRecordsEvents (line 54) | func TestLoggerRecordsEvents(t *testing.T) { function TestLogFailureRecordsFailure (line 87) | func TestLogFailureRecordsFailure(t *testing.T) { FILE: testing/insecuresecretdataaccesstest/insecuresecretdataaccesstest.go function Token (line 22) | func Token() insecuresecretdataaccess.Token { FILE: testkeyset/testkeyset.go function NewHandle (line 37) | func NewHandle(ks *tinkpb.Keyset) (*keyset.Handle, error) { function Read (line 45) | func Read(r keyset.Reader) (*keyset.Handle, error) { function Write (line 59) | func Write(h *keyset.Handle, w keyset.Writer) error { function KeysetMaterial (line 70) | func KeysetMaterial(h *keyset.Handle) *tinkpb.Keyset { function KeysetHandle (line 79) | func KeysetHandle(ks *tinkpb.Keyset) *keyset.Handle { FILE: testkeyset/testkeyset_test.go function makeKeyset (line 28) | func makeKeyset(template *tinkpb.KeyTemplate) (*tinkpb.Keyset, error) { function TestNewHandleCallsAreConsistent (line 36) | func TestNewHandleCallsAreConsistent(t *testing.T) { FILE: testutil/constant.go constant AESCTRHMACAEADKeyVersion (line 21) | AESCTRHMACAEADKeyVersion = 0 constant AESCTRHMACAEADTypeURL (line 23) | AESCTRHMACAEADTypeURL = "type.googleapis.com/google.crypto.tink.AesCtrHm... constant AESGCMKeyVersion (line 26) | AESGCMKeyVersion = 0 constant AESGCMTypeURL (line 28) | AESGCMTypeURL = "type.googleapis.com/google.crypto.tink.AesGcmKey" constant AESGCMSIVKeyVersion (line 31) | AESGCMSIVKeyVersion = 0 constant AESGCMSIVTypeURL (line 33) | AESGCMSIVTypeURL = "type.googleapis.com/google.crypto.tink.AesGcmSivKey" constant ChaCha20Poly1305KeyVersion (line 36) | ChaCha20Poly1305KeyVersion = 0 constant ChaCha20Poly1305TypeURL (line 38) | ChaCha20Poly1305TypeURL = "type.googleapis.com/google.crypto.tink.ChaCha... constant KMSEnvelopeAEADKeyVersion (line 41) | KMSEnvelopeAEADKeyVersion = 0 constant KMSEnvelopeAEADTypeURL (line 43) | KMSEnvelopeAEADTypeURL = "type.googleapis.com/google.crypto.tink.KmsEnve... constant XChaCha20Poly1305KeyVersion (line 46) | XChaCha20Poly1305KeyVersion = 0 constant XChaCha20Poly1305TypeURL (line 48) | XChaCha20Poly1305TypeURL = "type.googleapis.com/google.crypto.tink.XChaC... constant EciesAeadHkdfPrivateKeyKeyVersion (line 51) | EciesAeadHkdfPrivateKeyKeyVersion = 0 constant EciesAeadHkdfPrivateKeyTypeURL (line 54) | EciesAeadHkdfPrivateKeyTypeURL = "type.googleapis.com/google.crypto.tink... constant EciesAeadHkdfPublicKeyKeyVersion (line 57) | EciesAeadHkdfPublicKeyKeyVersion = 0 constant EciesAeadHkdfPublicKeyTypeURL (line 60) | EciesAeadHkdfPublicKeyTypeURL = "type.googleapis.com/google.crypto.tink.... constant AESSIVKeyVersion (line 65) | AESSIVKeyVersion = 0 constant AESSIVTypeURL (line 67) | AESSIVTypeURL = "type.googleapis.com/google.crypto.tink.AesSivKey" constant HMACKeyVersion (line 72) | HMACKeyVersion = 0 constant HMACTypeURL (line 74) | HMACTypeURL = "type.googleapis.com/google.crypto.tink.HmacKey" constant AESCMACKeyVersion (line 76) | AESCMACKeyVersion = 0 constant AESCMACTypeURL (line 78) | AESCMACTypeURL = "type.googleapis.com/google.crypto.tink.AesCmacKey" constant AESCMACPRFKeyVersion (line 83) | AESCMACPRFKeyVersion = 0 constant AESCMACPRFTypeURL (line 85) | AESCMACPRFTypeURL = "type.googleapis.com/google.crypto.tink.AesCmacPrfKey" constant HKDFPRFKeyVersion (line 88) | HKDFPRFKeyVersion = 0 constant HKDFPRFTypeURL (line 90) | HKDFPRFTypeURL = "type.googleapis.com/google.crypto.tink.HkdfPrfKey" constant HMACPRFKeyVersion (line 93) | HMACPRFKeyVersion = 0 constant HMACPRFTypeURL (line 95) | HMACPRFTypeURL = "type.googleapis.com/google.crypto.tink.HmacPrfKey" constant ECDSASignerKeyVersion (line 100) | ECDSASignerKeyVersion = 0 constant ECDSASignerTypeURL (line 102) | ECDSASignerTypeURL = "type.googleapis.com/google.crypto.tink.EcdsaPrivat... constant ECDSAVerifierKeyVersion (line 105) | ECDSAVerifierKeyVersion = 0 constant ECDSAVerifierTypeURL (line 107) | ECDSAVerifierTypeURL = "type.googleapis.com/google.crypto.tink.EcdsaPubl... constant ED25519SignerKeyVersion (line 110) | ED25519SignerKeyVersion = 0 constant ED25519SignerTypeURL (line 112) | ED25519SignerTypeURL = "type.googleapis.com/google.crypto.tink.Ed25519Pr... constant ED25519VerifierKeyVersion (line 115) | ED25519VerifierKeyVersion = 0 constant ED25519VerifierTypeURL (line 117) | ED25519VerifierTypeURL = "type.googleapis.com/google.crypto.tink.Ed25519... constant AESGCMHKDFKeyVersion (line 122) | AESGCMHKDFKeyVersion = 0 constant AESGCMHKDFTypeURL (line 124) | AESGCMHKDFTypeURL = "type.googleapis.com/google.crypto.tink.AesGcmHkdfSt... constant AESCTRHMACKeyVersion (line 127) | AESCTRHMACKeyVersion = 0 constant AESCTRHMACTypeURL (line 129) | AESCTRHMACTypeURL = "type.googleapis.com/google.crypto.tink.AesCtrHmacSt... FILE: testutil/hexbytes.go type HexBytes (line 23) | type HexBytes method UnmarshalText (line 26) | func (a *HexBytes) UnmarshalText(text []byte) error { FILE: testutil/hexbytes_test.go function TestHexBytes (line 25) | func TestHexBytes(t *testing.T) { function TestHexBytes_DecodeError (line 42) | func TestHexBytes_DecodeError(t *testing.T) { FILE: testutil/hybrid/private_key.go constant hpkeX25519HKDFSHA256PrivKeyLen (line 33) | hpkeX25519HKDFSHA256PrivKeyLen = 32 constant hpkeX25519HKDFSHA256PubKeyLen (line 34) | hpkeX25519HKDFSHA256PubKeyLen = 32 constant hpkePrivateKeyTypeURL (line 36) | hpkePrivateKeyTypeURL = "type.googleapis.com/google.crypto.tink.HpkePriv... function KeysetHandleFromSerializedPrivateKey (line 49) | func KeysetHandleFromSerializedPrivateKey(privKeyBytes, pubKeyBytes []by... function hpkeParamsFromTemplate (line 97) | func hpkeParamsFromTemplate(template *tinkpb.KeyTemplate) (*hpkepb.HpkeP... FILE: testutil/hybrid/private_key_test.go function TestKeysetHandleFromSerializedPrivateKey (line 31) | func TestKeysetHandleFromSerializedPrivateKey(t *testing.T) { function TestKeysetHandleFromSerializedPrivateKeyInvalidTemplateFails (line 77) | func TestKeysetHandleFromSerializedPrivateKeyInvalidTemplateFails(t *tes... function privPubKeyBytes (line 109) | func privPubKeyBytes(t *testing.T, handle *keyset.Handle) ([]byte, []byt... FILE: testutil/testutil.go type DummyAEADKeyManager (line 60) | type DummyAEADKeyManager struct method Primitive (line 66) | func (km *DummyAEADKeyManager) Primitive(serializedKey []byte) (any, e... method NewKey (line 71) | func (km *DummyAEADKeyManager) NewKey(serializedKeyFormat []byte) (pro... method NewKeyData (line 76) | func (km *DummyAEADKeyManager) NewKeyData(serializedKeyFormat []byte) ... method DoesSupport (line 81) | func (km *DummyAEADKeyManager) DoesSupport(typeURL string) bool { method TypeURL (line 86) | func (km *DummyAEADKeyManager) TypeURL() string { type DummyAEAD (line 94) | type DummyAEAD struct method Encrypt (line 105) | func (a *DummyAEAD) Encrypt(plaintext []byte, associatedData []byte) (... method Decrypt (line 120) | func (a *DummyAEAD) Decrypt(ciphertext []byte, associatedData []byte) ... type dummyAEADData (line 98) | type dummyAEADData struct type AlwaysFailingAead (line 133) | type AlwaysFailingAead struct method Encrypt (line 145) | func (a *AlwaysFailingAead) Encrypt(plaintext []byte, associatedData [... method Decrypt (line 150) | func (a *AlwaysFailingAead) Decrypt(ciphertext []byte, associatedData ... function NewAlwaysFailingAead (line 140) | func NewAlwaysFailingAead(err error) tink.AEAD { type AlwaysFailingDeterministicAead (line 155) | type AlwaysFailingDeterministicAead struct method EncryptDeterministically (line 167) | func (a *AlwaysFailingDeterministicAead) EncryptDeterministically(plai... method DecryptDeterministically (line 172) | func (a *AlwaysFailingDeterministicAead) DecryptDeterministically(ciph... function NewAlwaysFailingDeterministicAead (line 162) | func NewAlwaysFailingDeterministicAead(err error) tink.DeterministicAEAD { type TestKeyManager (line 178) | type TestKeyManager struct method Primitive (line 194) | func (km *TestKeyManager) Primitive(serializedKey []byte) (any, error) { method NewKey (line 199) | func (km *TestKeyManager) NewKey(serializedKeyFormat []byte) (proto.Me... method NewKeyData (line 204) | func (km *TestKeyManager) NewKeyData(serializedKeyFormat []byte) (*tin... method DoesSupport (line 209) | func (km *TestKeyManager) DoesSupport(typeURL string) bool { method TypeURL (line 214) | func (km *TestKeyManager) TypeURL() string { function NewTestKeyManager (line 186) | func NewTestKeyManager(primitive any, typeURL string) registry.KeyManager { type DummySigner (line 219) | type DummySigner struct method Sign (line 230) | func (s *DummySigner) Sign(data []byte) ([]byte, error) { function NewDummySigner (line 225) | func NewDummySigner(name string) *DummySigner { type DummyVerifier (line 235) | type DummyVerifier struct method Verify (line 240) | func (v *DummyVerifier) Verify(sig, data []byte) error { function NewDummyVerifier (line 247) | func NewDummyVerifier(name string) *DummyVerifier { type DummyMAC (line 252) | type DummyMAC struct method ComputeMAC (line 257) | func (h *DummyMAC) ComputeMAC(data []byte) ([]byte, error) { method VerifyMAC (line 269) | func (h *DummyMAC) VerifyMAC(mac []byte, data []byte) error { function makeDummyMAC (line 261) | func makeDummyMAC(data []byte, name string) []byte { type DummyKMSClient (line 280) | type DummyKMSClient struct method Supported (line 285) | func (d *DummyKMSClient) Supported(keyURI string) bool { method GetAEAD (line 290) | func (d *DummyKMSClient) GetAEAD(keyURI string) (tink.AEAD, error) { function NewTestAESGCMKeyset (line 295) | func NewTestAESGCMKeyset(primaryOutputPrefixType tinkpb.OutputPrefixType... function NewTestAESGCMSIVKeyset (line 301) | func NewTestAESGCMSIVKeyset(primaryOutputPrefixType tinkpb.OutputPrefixT... function NewTestAESSIVKeyset (line 307) | func NewTestAESSIVKeyset(primaryOutputPrefixType tinkpb.OutputPrefixType... function NewTestHMACKeyset (line 322) | func NewTestHMACKeyset(tagSize uint32, primaryOutputPrefixType tinkpb.Ou... function NewTestAESGCMHKDFKeyset (line 328) | func NewTestAESGCMHKDFKeyset() *tinkpb.Keyset { function NewTestKeyset (line 339) | func NewTestKeyset(keyData *tinkpb.KeyData, primaryOutputPrefixType tink... function NewDummyKey (line 350) | func NewDummyKey(keyID int, status tinkpb.KeyStatusType, outputPrefixTyp... function NewECDSAParams (line 360) | func NewECDSAParams(hashType commonpb.HashType, curve commonpb.EllipticC... function NewECDSAKeyFormat (line 369) | func NewECDSAKeyFormat(params *ecdsapb.EcdsaParams) *ecdsapb.EcdsaKeyFor... function NewECDSAPrivateKey (line 374) | func NewECDSAPrivateKey(version uint32, publicKey *ecdsapb.EcdsaPublicKe... function NewECDSAPublicKey (line 383) | func NewECDSAPublicKey(version uint32, params *ecdsapb.EcdsaParams, x, y... function NewRandomECDSAPrivateKey (line 393) | func NewRandomECDSAPrivateKey(hashType commonpb.HashType, curve commonpb... function NewRandomECDSAPublicKey (line 405) | func NewRandomECDSAPublicKey(hashType commonpb.HashType, curve commonpb.... function GetECDSAParamNames (line 411) | func GetECDSAParamNames(params *ecdsapb.EcdsaParams) (string, string, st... function NewED25519PrivateKey (line 419) | func NewED25519PrivateKey() *ed25519pb.Ed25519PrivateKey { function NewED25519PublicKey (line 436) | func NewED25519PublicKey() *ed25519pb.Ed25519PublicKey { function NewAESGCMKey (line 441) | func NewAESGCMKey(keyVersion uint32, keySize uint32) *gcmpb.AesGcmKey { function NewAESGCMKeyData (line 450) | func NewAESGCMKeyData(keySize uint32) *tinkpb.KeyData { function NewAESGCMKeyFormat (line 459) | func NewAESGCMKeyFormat(keySize uint32) *gcmpb.AesGcmKeyFormat { function NewAESGCMSIVKey (line 466) | func NewAESGCMSIVKey(keyVersion, keySize uint32) *gcmsivpb.AesGcmSivKey { function NewAESGCMSIVKeyData (line 475) | func NewAESGCMSIVKeyData(keySize uint32) *tinkpb.KeyData { function NewAESGCMSIVKeyFormat (line 484) | func NewAESGCMSIVKeyFormat(keySize uint32) *gcmsivpb.AesGcmSivKeyFormat { function NewAESGCMHKDFKey (line 491) | func NewAESGCMHKDFKey(keyVersion, keySize, derivedKeySize uint32, hkdfHa... function NewAESGCMHKDFKeyData (line 505) | func NewAESGCMHKDFKeyData(keySize, derivedKeySize uint32, hkdfHashType c... function NewAESGCMHKDFKeyFormat (line 514) | func NewAESGCMHKDFKeyFormat(keySize, derivedKeySize uint32, hkdfHashType... function NewAESCTRHMACKey (line 526) | func NewAESCTRHMACKey(keyVersion, keySize uint32, hkdfHashType commonpb.... function NewAESCTRHMACKeyFormat (line 544) | func NewAESCTRHMACKeyFormat(keySize uint32, hkdfHashType commonpb.HashTy... function NewHMACParams (line 560) | func NewHMACParams(hashType commonpb.HashType, tagSize uint32) *hmacpb.H... function NewHMACKey (line 568) | func NewHMACKey(hashType commonpb.HashType, tagSize uint32) *hmacpb.Hmac... function NewHMACKeyFormat (line 579) | func NewHMACKeyFormat(hashType commonpb.HashType, tagSize uint32) *hmacp... function NewAESCMACParams (line 589) | func NewAESCMACParams(tagSize uint32) *cmacpb.AesCmacParams { function NewAESCMACKey (line 596) | func NewAESCMACKey(tagSize uint32) *cmacpb.AesCmacKey { function NewAESCMACKeyFormat (line 607) | func NewAESCMACKeyFormat(tagSize uint32) *cmacpb.AesCmacKeyFormat { function NewHMACKeysetManager (line 617) | func NewHMACKeysetManager() *keyset.Manager { function NewHMACKeyData (line 632) | func NewHMACKeyData(hashType commonpb.HashType, tagSize uint32) *tinkpb.... function NewHMACPRFParams (line 646) | func NewHMACPRFParams(hashType commonpb.HashType) *hmacprfpb.HmacPrfPara... function NewHMACPRFKey (line 653) | func NewHMACPRFKey(hashType commonpb.HashType) *hmacprfpb.HmacPrfKey { function NewHMACPRFKeyFormat (line 664) | func NewHMACPRFKeyFormat(hashType commonpb.HashType) *hmacprfpb.HmacPrfK... function NewHKDFPRFParams (line 674) | func NewHKDFPRFParams(hashType commonpb.HashType, salt []byte) *hkdfprfp... function NewHKDFPRFKey (line 682) | func NewHKDFPRFKey(hashType commonpb.HashType, salt []byte) *hkdfprfpb.H... function NewHKDFPRFKeyFormat (line 693) | func NewHKDFPRFKeyFormat(hashType commonpb.HashType, salt []byte) *hkdfp... function NewAESCMACPRFKey (line 703) | func NewAESCMACPRFKey() *aescmacprfpb.AesCmacPrfKey { function NewAESCMACPRFKeyFormat (line 712) | func NewAESCMACPRFKeyFormat() *aescmacprfpb.AesCmacPrfKeyFormat { function NewKeyData (line 720) | func NewKeyData(typeURL string, value []byte, materialType tinkpb.KeyDat... function NewKey (line 729) | func NewKey(keyData *tinkpb.KeyData, status tinkpb.KeyStatusType, keyID ... function NewKeyset (line 739) | func NewKeyset(primaryKeyID uint32, keys []*tinkpb.Keyset_Key) *tinkpb.K... function GenerateMutations (line 747) | func GenerateMutations(src []byte) (all [][]byte) { function ZTestUniformString (line 783) | func ZTestUniformString(bytes []byte) error { function rotate (line 803) | func rotate(bytes []byte) []byte { function ZTestCrosscorrelationUniformStrings (line 828) | func ZTestCrosscorrelationUniformStrings(bytes1, bytes2 []byte) error { function ZTestAutocorrelationUniformString (line 853) | func ZTestAutocorrelationUniformString(bytes []byte) error { function eciesAEADHKDFPublicKey (line 871) | func eciesAEADHKDFPublicKey(c commonpb.EllipticCurveType, ht commonpb.Ha... function eciesAEADHKDFPrivateKey (line 891) | func eciesAEADHKDFPrivateKey(p *eciespb.EciesAeadHkdfPublicKey, d []byte... function curveFromProtoEnum (line 901) | func curveFromProtoEnum(c commonpb.EllipticCurveType) (elliptic.Curve, e... function GenerateECIESAEADHKDFPrivateKey (line 915) | func GenerateECIESAEADHKDFPrivateKey(c commonpb.EllipticCurveType, ht co... FILE: testutil/testutil_test.go function TestDummyAEAD (line 27) | func TestDummyAEAD(t *testing.T) { function TestDummySigner (line 49) | func TestDummySigner(t *testing.T) { function TestDummyVerifier (line 53) | func TestDummyVerifier(t *testing.T) { function TestDummySignerVerifier (line 57) | func TestDummySignerVerifier(t *testing.T) { function TestDummyMAC (line 75) | func TestDummyMAC(t *testing.T) { function fillByteArray (line 96) | func fillByteArray(b byte, length int) []byte { function TestUniformString (line 104) | func TestUniformString(t *testing.T) { function TestCrossCorrelationUniformString (line 116) | func TestCrossCorrelationUniformString(t *testing.T) { function TestAutocorrelationUniformString (line 131) | func TestAutocorrelationUniformString(t *testing.T) { function TestGenerateMutations (line 146) | func TestGenerateMutations(t *testing.T) { FILE: tink/aead.go type AEAD (line 25) | type AEAD interface type AEADWithContext (line 44) | type AEADWithContext interface FILE: tink/deterministic_aead.go type DeterministicAEAD (line 36) | type DeterministicAEAD interface FILE: tink/hybrid_decrypt.go type HybridDecrypt (line 58) | type HybridDecrypt interface FILE: tink/hybrid_encrypt.go type HybridEncrypt (line 57) | type HybridEncrypt interface FILE: tink/mac.go type MAC (line 22) | type MAC interface FILE: tink/signer.go type Signer (line 22) | type Signer interface FILE: tink/streamingaead.go type StreamingAEAD (line 32) | type StreamingAEAD interface FILE: tink/verifier.go type Verifier (line 22) | type Verifier interface FILE: tink/version.go constant Version (line 19) | Version = "2.6.0"