- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestWeakKeys (0.21 sec)
-
src/crypto/des/des_test.go
c, err := des.NewCipher(key) if err != nil { panic("NewCipher failed: " + err.Error()) } return c } // Use the known weak keys to test DES implementation func TestWeakKeys(t *testing.T) { for i, tt := range weakKeyTests { var encrypt = func(in []byte) (out []byte) { c := newCipher(tt.key) out = make([]byte, len(in)) c.Encrypt(out, in) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 16:49:56 UTC 2023 - 52.2K bytes - Viewed (0)