Lines Matching refs:ciphercontext
3000 struct sshcipher_ctx ciphercontext; in sshkey_private_to_blob2() local
3005 memset(&ciphercontext, 0, sizeof(ciphercontext)); in sshkey_private_to_blob2()
3052 if ((r = cipher_init(&ciphercontext, cipher, key, keylen, in sshkey_private_to_blob2()
3093 if ((r = cipher_crypt(&ciphercontext, 0, cp, in sshkey_private_to_blob2()
3125 cipher_cleanup(&ciphercontext); in sshkey_private_to_blob2()
3154 struct sshcipher_ctx ciphercontext; in sshkey_parse_private2() local
3159 memset(&ciphercontext, 0, sizeof(ciphercontext)); in sshkey_parse_private2()
3285 (r = cipher_init(&ciphercontext, cipher, key, keylen, in sshkey_parse_private2()
3288 if ((r = cipher_crypt(&ciphercontext, 0, dp, sshbuf_ptr(decoded), in sshkey_parse_private2()
3342 cipher_cleanup(&ciphercontext); in sshkey_parse_private2()
3376 struct sshcipher_ctx ciphercontext; in sshkey_private_rsa1_to_blob() local
3443 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase, in sshkey_private_rsa1_to_blob()
3446 if ((r = cipher_crypt(&ciphercontext, 0, cp, in sshkey_private_rsa1_to_blob()
3449 if ((r = cipher_cleanup(&ciphercontext)) != 0) in sshkey_private_rsa1_to_blob()
3455 explicit_bzero(&ciphercontext, sizeof(ciphercontext)); in sshkey_private_rsa1_to_blob()
3631 struct sshcipher_ctx ciphercontext; in sshkey_parse_private_rsa1() local
3685 if ((r = cipher_set_key_string(&ciphercontext, cipher, passphrase, in sshkey_parse_private_rsa1()
3688 if ((r = cipher_crypt(&ciphercontext, 0, cp, in sshkey_parse_private_rsa1()
3690 cipher_cleanup(&ciphercontext); in sshkey_parse_private_rsa1()
3693 if ((r = cipher_cleanup(&ciphercontext)) != 0) in sshkey_parse_private_rsa1()
3728 explicit_bzero(&ciphercontext, sizeof(ciphercontext)); in sshkey_parse_private_rsa1()