/* Conditions for legacy EVP_CIPHER uses */
ENGINE *engine; /* cipher engine */
-
- /* Name this was fetched by */
- char name[51]; /* A longer name would be unexpected */
} PROV_CIPHER;
typedef struct {
/* Conditions for legacy EVP_MD uses */
ENGINE *engine; /* digest engine */
-
- /* Name this was fetched by */
- char name[51]; /* A longer name would be unexpected */
} PROV_DIGEST;
/* Cipher functions */
/* Query the cipher and associated engine (if any) */
const EVP_CIPHER *ossl_prov_cipher_cipher(const PROV_CIPHER *pc);
ENGINE *ossl_prov_cipher_engine(const PROV_CIPHER *pc);
-const char *ossl_prov_cipher_name(const PROV_CIPHER *pc);
/* Digest functions */
/*
/* Query the digest and associated engine (if any) */
const EVP_MD *ossl_prov_digest_md(const PROV_DIGEST *pd);
ENGINE *ossl_prov_digest_engine(const PROV_DIGEST *pd);
-const char *ossl_prov_digest_name(const PROV_DIGEST *pd);
/* MAC functions */
/*
pc->alloc_cipher = NULL;
pc->cipher = NULL;
pc->engine = NULL;
- pc->name[0] = '\0';
}
int ossl_prov_cipher_copy(PROV_CIPHER *dst, const PROV_CIPHER *src)
dst->engine = src->engine;
dst->cipher = src->cipher;
dst->alloc_cipher = src->alloc_cipher;
- OPENSSL_strlcpy(dst->name, src->name, sizeof(dst->name));
return 1;
}
EVP_CIPHER_free(pc->alloc_cipher);
pc->cipher = pc->alloc_cipher = EVP_CIPHER_fetch(ctx, p->data, propquery);
- OPENSSL_strlcpy(pc->name, p->data, sizeof(pc->name));
/* TODO legacy stuff, to be removed */
#ifndef FIPS_MODE /* Inside the FIPS module, we don't support legacy ciphers */
if (pc->cipher == NULL)
return pc->engine;
}
-const char *ossl_prov_cipher_name(const PROV_CIPHER *pc)
-{
- return pc->name;
-}
-
void ossl_prov_digest_reset(PROV_DIGEST *pd)
{
EVP_MD_free(pd->alloc_md);
pd->alloc_md = NULL;
pd->md = NULL;
pd->engine = NULL;
- pd->name[0] = '\0';
}
int ossl_prov_digest_copy(PROV_DIGEST *dst, const PROV_DIGEST *src)
dst->engine = src->engine;
dst->md = src->md;
dst->alloc_md = src->alloc_md;
- OPENSSL_strlcpy(dst->name, src->name, sizeof(dst->name));
return 1;
}
EVP_MD_free(pd->alloc_md);
pd->md = pd->alloc_md = EVP_MD_fetch(ctx, p->data, propquery);
- OPENSSL_strlcpy(pd->name, p->data, sizeof(pd->name));
/* TODO legacy stuff, to be removed */
#ifndef FIPS_MODE /* Inside the FIPS module, we don't support legacy digests */
if (pd->md == NULL)
return pd->engine;
}
-const char *ossl_prov_digest_name(const PROV_DIGEST *pd)
-{
- return pd->name;
-}
-
int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx,
const OSSL_PARAM params[],
const char *macname,