Lines Matching refs:magic
129 /* The PVK file magic number: seems to spell out "bobsfile", who is Bob? */
251 unsigned int bitlen, magic;
253 if (do_blob_header(&p, length, &magic, &bitlen, &isdss, &ispub) <= 0)
274 unsigned int bitlen, magic, length;
283 if (do_blob_header(&p, 16, &magic, &bitlen, &isdss, &ispub) <= 0)
478 static int check_bitlen_rsa(RSA *rsa, int ispub, unsigned int *magic);
479 static int check_bitlen_dsa(DSA *dsa, int ispub, unsigned int *magic);
487 unsigned int bitlen, magic = 0, keyalg;
491 bitlen = check_bitlen_dsa(pk->pkey.dsa, ispub, &magic);
496 bitlen = check_bitlen_rsa(pk->pkey.rsa, ispub, &magic);
525 write_ledword(&p, magic);
731 unsigned int magic;
770 magic = read_ledword((const unsigned char **)&q);
771 if (magic != MS_RSA2MAGIC && magic != MS_DSS2MAGIC)
784 magic = read_ledword((const unsigned char **)&q);
785 if (magic != MS_RSA2MAGIC && magic != MS_DSS2MAGIC)