MCPcopy
hub / github.com/grpc/grpc-go / Decrypt

Method Decrypt

credentials/alts/internal/conn/aes128gcmrekey.go:105–116  ·  view source on GitHub ↗
(dst, ciphertext []byte)

Source from the content-addressed store, hash-verified

103}
104
105func (s *aes128gcmRekey) Decrypt(dst, ciphertext []byte) ([]byte, error) {
106 seq, err := s.inCounter.Value()
107 if err != nil {
108 return nil, err
109 }
110 plaintext, err := s.inAEAD.Open(dst, seq, ciphertext, nil)
111 if err != nil {
112 return nil, ErrAuth
113 }
114 s.inCounter.Inc()
115 return plaintext, nil
116}

Callers

nothing calls this directly

Calls 3

OpenMethod · 0.80
IncMethod · 0.80
ValueMethod · 0.45

Tested by

no test coverage detected