Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bovarysme/memories
/ functions
Functions
136 in github.com/bovarysme/memories
⨍
Functions
136
◇
Types & classes
26
↓ 8 callers
Method
Decrypt
(dst, src []byte)
crypto/aes/cipher.go:63
↓ 8 callers
Method
Encrypt
(dst, src []byte)
crypto/aes/cipher.go:53
↓ 7 callers
Function
mul
Multiply b and c as GF(2) polynomials modulo poly
crypto/aes/aes_test.go:29
↓ 6 callers
Function
mustPanic
(t *testing.T, msg string, f func())
crypto/aes/aes_test.go:337
↓ 5 callers
Function
NewCipher
NewCipher creates and returns a new cipher.Block. The key argument should be the AES key, either 16, 24, or 32 bytes to select AES-128, AES-192, or AE
crypto/aes/cipher.go:31
↓ 5 callers
Function
expandKeyGo
Key expansion algorithm. See FIPS-197, Figure 11. Their rcon[i] is our powx[i-1] << 24.
crypto/aes/block.go:142
↓ 5 callers
Method
paddedGHASH
paddedGHASH pads data with zeroes until its length is a multiple of 16-bytes. It then calculates a new value for hash using the GHASH algorithm.
crypto/aes/gcm_s390x.go:122
↓ 4 callers
Method
deriveCounter
deriveCounter computes the initial GCM counter state from the given nonce. See NIST SP 800-38D, section 7.1.
crypto/aes/gcm_s390x.go:179
↓ 4 callers
Function
gcmAesData
go:noescape
crypto/aes/aes_gcm.go:25
↓ 4 callers
Function
gcmAesFinish
go:noescape
crypto/aes/aes_gcm.go:34
↓ 4 callers
Function
sliceForAppend
sliceForAppend takes a slice and a requested number of bytes. It returns a slice with the contents of the given slice followed by that many bytes and
crypto/aes/gcm_s390x.go:103
↓ 3 callers
Function
cryptBlocks
cryptBlocks invokes the cipher message (KM) instruction with the given function code. This is equivalent to AES in ECB mode. The length must be a mult
crypto/aes/cipher_s390x.go:32
↓ 3 callers
Method
inc
inc increments the rightmost 32-bits of the count value by 1.
crypto/aes/gcm_s390x.go:22
↓ 3 callers
Function
newCipherGeneric
newCipherGeneric creates and returns a new cipher.Block implemented in pure Go.
crypto/aes/cipher.go:44
↓ 2 callers
Method
Open
Open authenticates and decrypts ciphertext. See the cipher.AEAD interface for details.
crypto/aes/aes_gcm.go:135
↓ 2 callers
Function
aesEncBlock
go:noescape
crypto/aes/aes_gcm.go:19
↓ 2 callers
Method
auth
auth calculates GHASH(ciphertext, additionalData), masks the result with tagMask and writes the result to out.
crypto/aes/gcm_s390x.go:202
↓ 2 callers
Method
counterCrypt
counterCrypt encrypts src using AES in counter mode and places the result into dst. cnt is the initial count value and will be updated with the next c
crypto/aes/gcm_s390x.go:151
↓ 2 callers
Function
decrypt
(source, dest string, key []byte)
attack/decrypt.go:66
↓ 2 callers
Function
deriveKey
(iv int)
attack/primitives.go:16
↓ 2 callers
Function
expandKeyAsm
(nr int, key *byte, enc *uint32, dec *uint32)
crypto/aes/cipher_amd64.go:16
↓ 2 callers
Function
gcmLengths
gcmLengths writes len0 || len1 as big-endian values to a 16-byte array.
crypto/aes/gcm_s390x.go:33
↓ 2 callers
Function
ghash
ghash uses the GHASH algorithm to hash data with the given key. The initial hash value is given by hash which will be updated with the new hash value.
crypto/aes/gcm_s390x.go:118
↓ 2 callers
Function
kmaGCM
kmaGCM executes the encryption or decryption operation given by fn. The tag will be calculated and written to tag. cnt should contain the current coun
crypto/aes/gcm_s390x.go:307
↓ 2 callers
Function
setDecryptKeyAsm
go:noescape
crypto/aes/cipher_ppc64le.go:19
↓ 2 callers
Function
setEncryptKeyAsm
defined in asm_ppc64le.s go:noescape
crypto/aes/cipher_ppc64le.go:15
↓ 2 callers
Function
sliceForAppend
sliceForAppend takes a slice and a requested number of bytes. It returns a slice with the contents of the given slice followed by that many bytes and
crypto/aes/aes_gcm.go:85
↓ 2 callers
Function
subw
Apply sbox0 to each byte in w.
crypto/aes/block.go:130
↓ 1 callers
Method
BlockSize
()
crypto/aes/cbc_s390x.go:37
↓ 1 callers
Method
Encrypt
(dst, src []byte)
crypto/aes/cipher_amd64.go:46
↓ 1 callers
Method
NewCBCDecrypter
(iv []byte)
crypto/aes/modes.go:29
↓ 1 callers
Method
NewCBCEncrypter
(iv []byte)
crypto/aes/modes.go:22
↓ 1 callers
Method
NewCTR
(iv []byte)
crypto/aes/modes.go:36
↓ 1 callers
Method
NewGCM
(size int)
crypto/aes/modes.go:15
↓ 1 callers
Function
cmdBruteforce
()
main.go:29
↓ 1 callers
Function
cmdDecrypt
()
main.go:40
↓ 1 callers
Function
cryptBlocksChain
cryptBlocksChain invokes the cipher message with chaining (KMC) instruction with the given function code. The length must be a multiple of BlockSize (
crypto/aes/cbc_s390x.go:42
↓ 1 callers
Function
cryptBlocksGCM
cryptBlocksGCM encrypts src using AES in counter mode using the given function code and key. The rightmost 32-bits of the counter are incremented betw
crypto/aes/gcm_s390x.go:145
↓ 1 callers
Function
decryptBlockAsm
(nr int, xk *uint32, dst, src *byte)
crypto/aes/cipher_amd64.go:15
↓ 1 callers
Function
decryptBlockAsm
go:noescape
crypto/aes/cipher_ppc64le.go:31
↓ 1 callers
Function
decryptBlockGo
Decrypt one block from src into dst, using the expanded key xk.
crypto/aes/block.go:85
↓ 1 callers
Method
decryptChunk
(length int)
attack/decrypt.go:21
↓ 1 callers
Function
encryptBlockAsm
defined in asm_amd64.s
crypto/aes/cipher_amd64.go:14
↓ 1 callers
Function
encryptBlockAsm
go:noescape
crypto/aes/cipher_ppc64le.go:27
↓ 1 callers
Function
encryptBlockGo
Encrypt one block from src into dst, using the expanded key xk.
crypto/aes/block.go:40
↓ 1 callers
Function
expandKey
expandKey is used by BenchmarkExpand to ensure that the asm implementation of key expansion is used for the benchmark when it is available.
crypto/aes/cipher_amd64.go:68
↓ 1 callers
Function
gcmAesDec
go:noescape
crypto/aes/aes_gcm.go:31
↓ 1 callers
Function
gcmAesEnc
go:noescape
crypto/aes/aes_gcm.go:28
↓ 1 callers
Function
gcmAesInit
go:noescape
crypto/aes/aes_gcm.go:22
↓ 1 callers
Function
hasAESNI
defined in asm_amd64.s
crypto/internal/cipherhw/cipherhw_amd64.go:10
↓ 1 callers
Function
hasHWSupport
hasHWSupport reports whether the AES-128, AES-192 and AES-256 cipher message (KM) function codes are supported. Note that this function is expensive.
crypto/internal/cipherhw/cipherhw_s390x.go:12
↓ 1 callers
Function
hashCode
(str string)
attack/primitives.go:3
↓ 1 callers
Function
newCipher
(key []byte)
crypto/aes/cipher_amd64.go:31
↓ 1 callers
Function
readChunkLengths
(source string)
attack/decrypt.go:44
↓ 1 callers
Function
readCiphertext
(source string)
attack/bruteforce.go:16
↓ 1 callers
Method
refill
()
crypto/aes/ctr_s390x.go:46
↓ 1 callers
Function
rotw
Rotate
crypto/aes/block.go:138
↓ 1 callers
Function
supportsKMA
supportsKMA reports whether the message-security-assist 8 facility is available. This function call may be expensive so hasKMA should be queried inste
crypto/aes/gcm_s390x.go:283
↓ 1 callers
Function
writeKey
(source string, key []byte)
attack/bruteforce.go:32
↓ 1 callers
Function
xorBytes
xorBytes xors the contents of a and b and places the resulting values into dst. If a and b are not the same length then the number of bytes processed
crypto/aes/ctr_s390x.go:20
Function
AESGCMSupport
AESGCMSupport returns true if the Go standard library supports AES-GCM in hardware.
crypto/internal/cipherhw/cipherhw_amd64.go:14
Function
AESGCMSupport
()
crypto/internal/cipherhw/cipherhw_s390x.go:16
Function
AESGCMSupport
()
crypto/internal/cipherhw/generic.go:9
Function
BenchmarkDecrypt
(b *testing.B)
crypto/aes/aes_test.go:363
Function
BenchmarkEncrypt
(b *testing.B)
crypto/aes/aes_test.go:349
Function
BenchmarkExpand
(b *testing.B)
crypto/aes/aes_test.go:377
Method
BlockSize
()
crypto/aes/modes_test.go:25
Method
BlockSize
()
crypto/aes/modes_test.go:68
Method
BlockSize
()
crypto/aes/cipher_amd64.go:44
Method
BlockSize
()
crypto/aes/cipher_s390x.go:60
Method
BlockSize
()
crypto/aes/cipher.go:51
Method
BlockSize
()
crypto/aes/cipher_ppc64le.go:53
Function
Bruteforce
(source string)
attack/bruteforce.go:43
Method
CryptBlocks
(a, b []byte)
crypto/aes/modes_test.go:69
Method
CryptBlocks
(dst, src []byte)
crypto/aes/cbc_s390x.go:44
Function
Decrypt
(source, dest, ourID, theirID string)
attack/decrypt.go:107
Method
Decrypt
(a, b []byte)
crypto/aes/modes_test.go:27
Method
Decrypt
(dst, src []byte)
crypto/aes/cipher_amd64.go:56
Method
Decrypt
(dst, src []byte)
crypto/aes/cipher_s390x.go:72
Method
Decrypt
(dst, src []byte)
crypto/aes/cipher_ppc64le.go:65
Method
Encrypt
(a, b []byte)
crypto/aes/modes_test.go:26
Method
Encrypt
(dst, src []byte)
crypto/aes/cipher_s390x.go:62
Method
Encrypt
(dst, src []byte)
crypto/aes/cipher_ppc64le.go:55
Method
Error
()
crypto/aes/cipher.go:23
Method
InAESPackage
()
crypto/aes/modes_test.go:18
Method
InAESPackage
()
crypto/aes/modes_test.go:48
Method
InAESPackage
()
crypto/aes/modes_test.go:70
Method
InAESPackage
()
crypto/aes/modes_test.go:100
Method
NewCBCDecrypter
([]byte)
crypto/aes/modes_test.go:34
Method
NewCBCDecrypter
(iv []byte)
crypto/aes/cbc_s390x.go:29
Method
NewCBCEncrypter
([]byte)
crypto/aes/modes_test.go:31
Method
NewCBCEncrypter
(iv []byte)
crypto/aes/cbc_s390x.go:21
Method
NewCTR
NewCTR returns a Stream which encrypts/decrypts using the AES block cipher in counter mode. The length of iv must be the same as BlockSize.
crypto/aes/ctr_s390x.go:34
Method
NewCTR
([]byte)
crypto/aes/modes_test.go:37
Method
NewGCM
(int)
crypto/aes/modes_test.go:28
Method
NewGCM
NewGCM returns the AES cipher wrapped in Galois Counter Mode. This is only called by crypto/cipher.NewGCM via the gcmAble interface.
crypto/aes/aes_gcm.go:56
Method
NewGCM
NewGCM returns the AES cipher wrapped in Galois Counter Mode. This is only called by crypto/cipher.NewGCM via the gcmAble interface.
crypto/aes/gcm_s390x.go:76
Method
NonceSize
()
crypto/aes/modes_test.go:44
Method
NonceSize
()
crypto/aes/aes_gcm.go:73
Method
NonceSize
()
crypto/aes/gcm_s390x.go:91
next →
1–100 of 136, ranked by callers