{ERR_PACK(0, GOST_F_GOST_IMIT_FINAL, 0), "gost_imit_final"},
{ERR_PACK(0, GOST_F_GOST_IMIT_UPDATE, 0), "gost_imit_update"},
{ERR_PACK(0, GOST_F_GOST_KEXP15, 0), "gost_kexp15"},
+ {ERR_PACK(0, GOST_F_OMAC_ACPKM_IMIT_CTRL, 0), "omac_acpkm_imit_ctrl"},
+ {ERR_PACK(0, GOST_F_OMAC_ACPKM_IMIT_FINAL, 0), "omac_acpkm_imit_final"},
+ {ERR_PACK(0, GOST_F_OMAC_ACPKM_IMIT_UPDATE, 0), "omac_acpkm_imit_update"},
+ {ERR_PACK(0, GOST_F_OMAC_ACPKM_KEY, 0), "omac_acpkm_key"},
{ERR_PACK(0, GOST_F_OMAC_IMIT_CTRL, 0), "omac_imit_ctrl"},
{ERR_PACK(0, GOST_F_OMAC_IMIT_FINAL, 0), "omac_imit_final"},
{ERR_PACK(0, GOST_F_OMAC_IMIT_UPDATE, 0), "omac_imit_update"},
# define GOST_F_GOST_IMIT_FINAL 114
# define GOST_F_GOST_IMIT_UPDATE 115
# define GOST_F_GOST_KEXP15 143
+# define GOST_F_OMAC_ACPKM_IMIT_CTRL 144
+# define GOST_F_OMAC_ACPKM_IMIT_FINAL 145
+# define GOST_F_OMAC_ACPKM_IMIT_UPDATE 146
+# define GOST_F_OMAC_ACPKM_KEY 147
# define GOST_F_OMAC_IMIT_CTRL 116
# define GOST_F_OMAC_IMIT_FINAL 117
# define GOST_F_OMAC_IMIT_UPDATE 118
GOST_F_GOST_IMIT_CTRL:113:gost_imit_ctrl
GOST_F_GOST_IMIT_FINAL:114:gost_imit_final
GOST_F_GOST_IMIT_UPDATE:115:gost_imit_update
+GOST_F_GOST_KEXP15:143:gost_kexp15
+GOST_F_OMAC_ACPKM_IMIT_CTRL:144:omac_acpkm_imit_ctrl
+GOST_F_OMAC_ACPKM_IMIT_FINAL:145:omac_acpkm_imit_final
+GOST_F_OMAC_ACPKM_IMIT_UPDATE:146:omac_acpkm_imit_update
+GOST_F_OMAC_ACPKM_KEY:147:omac_acpkm_key
GOST_F_OMAC_IMIT_CTRL:116:omac_imit_ctrl
GOST_F_OMAC_IMIT_FINAL:117:omac_imit_final
GOST_F_OMAC_IMIT_UPDATE:118:omac_imit_update
{
OMAC_ACPKM_CTX *c = EVP_MD_CTX_md_data(ctx);
if (!c->key_set) {
- GOSTerr(GOST_F_OMAC_IMIT_UPDATE, GOST_R_MAC_KEY_NOT_SET);
+ GOSTerr(GOST_F_OMAC_ACPKM_IMIT_UPDATE, GOST_R_MAC_KEY_NOT_SET);
return 0;
}
size_t mac_size = sizeof(mac);
if (!c->key_set) {
- GOSTerr(GOST_F_OMAC_IMIT_FINAL, GOST_R_MAC_KEY_NOT_SET);
+ GOSTerr(GOST_F_OMAC_ACPKM_IMIT_FINAL, GOST_R_MAC_KEY_NOT_SET);
return 0;
}
c->cmac_ctx = CMAC_ACPKM_CTX_new();
if (c->cmac_ctx == NULL) {
- GOSTerr(GOST_F_OMAC_KEY, ERR_R_MALLOC_FAILURE);
+ GOSTerr(GOST_F_OMAC_ACPKM_KEY, ERR_R_MALLOC_FAILURE);
return 0;
}
}
cipher = EVP_get_cipherbynid(c->cipher_nid);
if (cipher == NULL) {
- GOSTerr(GOST_F_OMAC_IMIT_CTRL, GOST_R_CIPHER_NOT_FOUND);
+ GOSTerr(GOST_F_OMAC_ACPKM_IMIT_CTRL, GOST_R_CIPHER_NOT_FOUND);
}
if (EVP_MD_meth_get_init(EVP_MD_CTX_md(ctx)) (ctx) <= 0) {
- GOSTerr(GOST_F_OMAC_IMIT_CTRL, GOST_R_MAC_KEY_NOT_SET);
+ GOSTerr(GOST_F_OMAC_ACPKM_IMIT_CTRL, GOST_R_MAC_KEY_NOT_SET);
return 0;
}
EVP_MD_CTX_set_flags(ctx, EVP_MD_CTX_FLAG_NO_INIT);
if (c->key_set) {
- GOSTerr(GOST_F_OMAC_IMIT_CTRL, GOST_R_BAD_ORDER);
+ GOSTerr(GOST_F_OMAC_ACPKM_IMIT_CTRL, GOST_R_BAD_ORDER);
return 0;
}
if (arg == 0) {
} else if (arg == 32) {
return omac_acpkm_key(c, cipher, ptr, 32);
}
- GOSTerr(GOST_F_OMAC_IMIT_CTRL, GOST_R_INVALID_MAC_KEY_SIZE);
+ GOSTerr(GOST_F_OMAC_ACPKM_IMIT_CTRL, GOST_R_INVALID_MAC_KEY_SIZE);
return 0;
}
case EVP_CTRL_KEY_MESH:
switch (c->cipher_nid) {
case NID_grasshopper_cbc:
if (arg < 1 || arg > 16) {
- GOSTerr(GOST_F_OMAC_IMIT_CTRL, GOST_R_INVALID_MAC_SIZE);
+ GOSTerr(GOST_F_OMAC_ACPKM_IMIT_CTRL, GOST_R_INVALID_MAC_SIZE);
return 0;
}
c->dgst_size = arg;