MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / MethodInterface

Interface MethodInterface

internal/encrypt/method.go:3–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package encrypt
2
3type MethodInterface interface {
4 // Init 初始化
5 Init(key []byte, iv []byte) error
6
7 // Encrypt 加密
8 Encrypt(src []byte) (dst []byte, err error)
9
10 // Decrypt 解密
11 Decrypt(dst []byte) (src []byte, err error)
12}

Callers 17

NewMethodInstanceFunction · 0.65
SimpleEncryptFunction · 0.65
ContextMethod · 0.65
ClusterContextMethod · 0.65
MagicKeyEncodeFunction · 0.65
simpleDecryptFunction · 0.65

Implementers 5

AES256CFBMethodinternal/utils/encrypt.go
AES128CFBMethodinternal/encrypt/method_aes_128_cfb.go
AES192CFBMethodinternal/encrypt/method_aes_192_cfb.go
RawMethodinternal/encrypt/method_raw.go
AES256CFBMethodinternal/encrypt/method_aes_256_cfb.go

Calls

no outgoing calls

Tested by

no test coverage detected