Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
crypto /
aes /
[ HOME SHELL ]
Name
Size
Permission
Action
aes_gcm.go
5.72
KB
-rw-r--r--
aes_test.go
11.3
KB
-rw-r--r--
asm_amd64.s
5.4
KB
-rw-r--r--
asm_arm64.s
6.86
KB
-rw-r--r--
asm_ppc64le.s
20.17
KB
-rw-r--r--
asm_s390x.s
4.38
KB
-rw-r--r--
block.go
6.5
KB
-rw-r--r--
cbc_s390x.go
1.57
KB
-rw-r--r--
cipher.go
1.85
KB
-rw-r--r--
cipher_asm.go
2.32
KB
-rw-r--r--
cipher_generic.go
740
B
-rw-r--r--
cipher_ppc64le.go
2.07
KB
-rw-r--r--
cipher_s390x.go
2.6
KB
-rw-r--r--
const.go
29.32
KB
-rw-r--r--
ctr_s390x.go
2.44
KB
-rw-r--r--
gcm_amd64.s
23.42
KB
-rw-r--r--
gcm_arm64.s
21.52
KB
-rw-r--r--
gcm_ppc64le.go
6.7
KB
-rw-r--r--
gcm_ppc64le.s
12.78
KB
-rw-r--r--
gcm_s390x.go
11.35
KB
-rw-r--r--
modes.go
1.15
KB
-rw-r--r--
modes_test.go
3.48
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : modes_test.go
// Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package aes import ( "crypto/cipher" "testing" ) // Check that the optimized implementations of cipher modes will // be picked up correctly. // testInterface can be asserted to check that a type originates // from this test group. type testInterface interface { InAESPackage() bool } // testBlock implements the cipher.Block interface and any *Able // interfaces that need to be tested. type testBlock struct{} func (*testBlock) BlockSize() int { return 0 } func (*testBlock) Encrypt(a, b []byte) {} func (*testBlock) Decrypt(a, b []byte) {} func (*testBlock) NewGCM(int, int) (cipher.AEAD, error) { return &testAEAD{}, nil } func (*testBlock) NewCBCEncrypter([]byte) cipher.BlockMode { return &testBlockMode{} } func (*testBlock) NewCBCDecrypter([]byte) cipher.BlockMode { return &testBlockMode{} } func (*testBlock) NewCTR([]byte) cipher.Stream { return &testStream{} } // testAEAD implements the cipher.AEAD interface. type testAEAD struct{} func (*testAEAD) NonceSize() int { return 0 } func (*testAEAD) Overhead() int { return 0 } func (*testAEAD) Seal(a, b, c, d []byte) []byte { return []byte{} } func (*testAEAD) Open(a, b, c, d []byte) ([]byte, error) { return []byte{}, nil } func (*testAEAD) InAESPackage() bool { return true } // Test the gcmAble interface is detected correctly by the cipher package. func TestGCMAble(t *testing.T) { b := cipher.Block(&testBlock{}) if _, ok := b.(gcmAble); !ok { t.Fatalf("testBlock does not implement the gcmAble interface") } aead, err := cipher.NewGCM(b) if err != nil { t.Fatalf("%v", err) } if _, ok := aead.(testInterface); !ok { t.Fatalf("cipher.NewGCM did not use gcmAble interface") } } // testBlockMode implements the cipher.BlockMode interface. type testBlockMode struct{} func (*testBlockMode) BlockSize() int { return 0 } func (*testBlockMode) CryptBlocks(a, b []byte) {} func (*testBlockMode) InAESPackage() bool { return true } // Test the cbcEncAble interface is detected correctly by the cipher package. func TestCBCEncAble(t *testing.T) { b := cipher.Block(&testBlock{}) if _, ok := b.(cbcEncAble); !ok { t.Fatalf("testBlock does not implement the cbcEncAble interface") } bm := cipher.NewCBCEncrypter(b, []byte{}) if _, ok := bm.(testInterface); !ok { t.Fatalf("cipher.NewCBCEncrypter did not use cbcEncAble interface") } } // Test the cbcDecAble interface is detected correctly by the cipher package. func TestCBCDecAble(t *testing.T) { b := cipher.Block(&testBlock{}) if _, ok := b.(cbcDecAble); !ok { t.Fatalf("testBlock does not implement the cbcDecAble interface") } bm := cipher.NewCBCDecrypter(b, []byte{}) if _, ok := bm.(testInterface); !ok { t.Fatalf("cipher.NewCBCDecrypter did not use cbcDecAble interface") } } // testStream implements the cipher.Stream interface. type testStream struct{} func (*testStream) XORKeyStream(a, b []byte) {} func (*testStream) InAESPackage() bool { return true } // Test the ctrAble interface is detected correctly by the cipher package. func TestCTRAble(t *testing.T) { b := cipher.Block(&testBlock{}) if _, ok := b.(ctrAble); !ok { t.Fatalf("testBlock does not implement the ctrAble interface") } s := cipher.NewCTR(b, []byte{}) if _, ok := s.(testInterface); !ok { t.Fatalf("cipher.NewCTR did not use ctrAble interface") } }
Close