MCPcopy Index your code
hub / github.com/getsops/sops / NewCipher

Function NewCipher

aes/cipher.go:49–53  ·  view source on GitHub ↗

NewCipher is the constructor for a new Cipher object

()

Source from the content-addressed store, hash-verified

47
48// NewCipher is the constructor for a new Cipher object
49func NewCipher() Cipher {
50 return Cipher{
51 stash: make(map[stashKey][]byte),
52 }
53}
54
55var encre = regexp.MustCompile(`^ENC\[AES256_GCM,data:(.+),iv:(.+),tag:(.+),type:(.+)\]`)
56

Callers 13

mainFunction · 0.92
getRotateOptsFunction · 0.92
DataWithFormatFunction · 0.92
TestDecryptFunction · 0.85
TestDecryptInvalidAadFunction · 0.85
TestRoundtripStringFunction · 0.85
TestRoundtripFloatFunction · 0.85
TestRoundtripIntFunction · 0.85
TestRoundtripBoolFunction · 0.85
TestRoundtripTimeFunction · 0.85
TestEncryptEmptyCommentFunction · 0.85
TestDecryptEmptyValueFunction · 0.85

Calls

no outgoing calls

Tested by 10

TestDecryptFunction · 0.68
TestDecryptInvalidAadFunction · 0.68
TestRoundtripStringFunction · 0.68
TestRoundtripFloatFunction · 0.68
TestRoundtripIntFunction · 0.68
TestRoundtripBoolFunction · 0.68
TestRoundtripTimeFunction · 0.68
TestEncryptEmptyCommentFunction · 0.68
TestDecryptEmptyValueFunction · 0.68
TestTimestampsFunction · 0.68