Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewTripleDESCipher (0.11 sec)

  1. src/crypto/des/des_test.go

    		c, _ := des.NewTripleDESCipher(tt.key)
    		out := make([]byte, len(tt.in))
    		c.Encrypt(out, tt.in)
    
    		if !bytes.Equal(out, tt.out) {
    			t.Errorf("#%d: result: %x want: %x", i, out, tt.out)
    		}
    	}
    }
    
    func TestDecryptTripleDES(t *testing.T) {
    	for i, tt := range encryptTripleDESTests {
    		c, _ := des.NewTripleDESCipher(tt.key)
    
    		plain := make([]byte, len(tt.in))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 16:49:56 UTC 2023
    - 52.2K bytes
    - Viewed (0)
Back to top