Lines Matching refs:protectedlen
641 size_t protectedlen; in agent_protect() local
752 &protected, &protectedlen, s2k_count, use_ocb); in agent_protect()
762 + protectedlen in agent_protect()
776 memcpy (p, protected, protectedlen); in agent_protect()
777 p += protectedlen; in agent_protect()
796 const unsigned char *protected, size_t protectedlen, in do_decryption() argument
815 if (protectedlen < (4 + 16) || ivlen != 12) in do_decryption()
820 if (protectedlen < 4 || (protectedlen%blklen)) in do_decryption()
831 outbuf = gcry_malloc_secure (protectedlen); in do_decryption()
874 rc = gcry_cipher_decrypt (hd, outbuf, protectedlen - 16, in do_decryption()
875 protected, protectedlen - 16); in do_decryption()
879 rc = gcry_cipher_checktag (hd, protected + protectedlen - 16, 16); in do_decryption()
889 rc = gcry_cipher_decrypt (hd, outbuf, protectedlen, in do_decryption()
890 protected, protectedlen); in do_decryption()
910 reallen = gcry_sexp_canon_len (outbuf, protectedlen, NULL, NULL); in do_decryption()
911 if (!reallen || (reallen + blklen < protectedlen) ) in do_decryption()