Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestEncryptAndDecryptData (0.31 sec)

  1. cmd/kubeadm/app/util/crypto/crypto_test.go

    limitations under the License.
    */
    
    package crypto
    
    import (
    	"testing"
    
    	"github.com/lithammer/dedent"
    
    	kubeadmconstants "k8s.io/kubernetes/cmd/kubeadm/app/constants"
    )
    
    func TestEncryptAndDecryptData(t *testing.T) {
    	key1, err := CreateRandBytes(kubeadmconstants.CertificateKeySize)
    	if err != nil {
    		t.Fatal(err)
    	}
    	key2, err := CreateRandBytes(kubeadmconstants.CertificateKeySize)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 17 14:40:46 UTC 2021
    - 2.4K bytes
    - Viewed (0)
Back to top