Lines Matching refs:magic
290 unsigned int bitlen, magic; in do_b2i_key() local
293 if (ossl_do_blob_header(&p, length, &magic, &bitlen, isdss, ispub) <= 0) { in do_b2i_key()
329 unsigned int bitlen, magic, length; in ossl_b2i_bio() local
339 if (ossl_do_blob_header(&p, 16, &magic, &bitlen, &isdss, ispub) <= 0) in ossl_b2i_bio()
559 static int check_bitlen_rsa(const RSA *rsa, int ispub, unsigned int *magic);
563 static int check_bitlen_dsa(const DSA *dsa, int ispub, unsigned int *magic);
570 unsigned int bitlen = 0, magic = 0, keyalg = 0; in do_i2b() local
574 bitlen = check_bitlen_rsa(EVP_PKEY_get0_RSA(pk), ispub, &magic); in do_i2b()
578 bitlen = check_bitlen_dsa(EVP_PKEY_get0_DSA(pk), ispub, &magic); in do_i2b()
607 write_ledword(&p, magic); in do_i2b()
859 unsigned int magic; in do_PVK_body_key() local
896 magic = read_ledword((const unsigned char **)&q); in do_PVK_body_key()
897 if (magic != MS_RSA2MAGIC && magic != MS_DSS2MAGIC) { in do_PVK_body_key()
906 magic = read_ledword((const unsigned char **)&q); in do_PVK_body_key()
907 if (magic != MS_RSA2MAGIC && magic != MS_DSS2MAGIC) { in do_PVK_body_key()