out += EVP_MAXCHUNK;
}
if (inl)
- DES_cfb_encrypt(in, out, 8,(long)inl, ctx->cipher_data,
+ DES_cfb_encrypt(in, out, 8, (long)inl, ctx->cipher_data,
(DES_cblock *)ctx->iv, ctx->encrypt);
return 1;
}
EVP_CIPHER_get_asn1_iv,
des_ctrl)
-BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8,8, 1,
+BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8, 8, 1,
EVP_CIPH_RAND_KEY, des_init_key, NULL,
EVP_CIPHER_set_asn1_iv,
EVP_CIPHER_get_asn1_iv, des_ctrl)
-BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8,8, 8,
+BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8, 8, 8,
EVP_CIPH_RAND_KEY, des_init_key, NULL,
EVP_CIPHER_set_asn1_iv,
EVP_CIPHER_get_asn1_iv, des_ctrl)
if (DES_set_key_checked(&deskey[0], &data(ctx)->ks1) ||
DES_set_key_checked(&deskey[1], &data(ctx)->ks2) ||
DES_set_key_checked(&deskey[2], &data(ctx)->ks3))
- return 0;
+ return 0;
#else
DES_set_key_unchecked(&deskey[0], &data(ctx)->ks1);
DES_set_key_unchecked(&deskey[1], &data(ctx)->ks2);
EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
const unsigned char *in, int inl)
{
- int seof = -1, eof = 0, rv = -1, ret = 0, i,v, tmp, n, ln, exp_nl;
+ int seof = -1, eof = 0, rv = -1, ret = 0, i, v, tmp, n, ln, exp_nl;
unsigned char *d;
n = ctx->num;
int
EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n)
{
- int i, ret = 0, a,b, c, d;
+ int i, ret = 0, a, b, c, d;
unsigned long l;
/* trim white space from the start of the line. */
EVPerr(EVP_F_EVP_SIGNFINAL, EVP_R_NO_SIGN_FUNCTION_CONFIGURED);
return (0);
}
- return(ctx->digest->sign(ctx->digest->type, m,m_len, sigret, siglen,
+ return(ctx->digest->sign(ctx->digest->type, m, m_len, sigret, siglen,
pkey->pkey.ptr));
}
out += EVP_MAXCHUNK;
}
if (inl)
- DES_cfb_encrypt(in, out, 8,(long)inl, ctx->cipher_data,
+ DES_cfb_encrypt(in, out, 8, (long)inl, ctx->cipher_data,
(DES_cblock *)ctx->iv, ctx->encrypt);
return 1;
}
EVP_CIPHER_get_asn1_iv,
des_ctrl)
-BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8,8, 1,
+BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8, 8, 1,
EVP_CIPH_RAND_KEY, des_init_key, NULL,
EVP_CIPHER_set_asn1_iv,
EVP_CIPHER_get_asn1_iv, des_ctrl)
-BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8,8, 8,
+BLOCK_CIPHER_def_cfb(des, DES_key_schedule, NID_des, 8, 8, 8,
EVP_CIPH_RAND_KEY, des_init_key, NULL,
EVP_CIPHER_set_asn1_iv,
EVP_CIPHER_get_asn1_iv, des_ctrl)
if (DES_set_key_checked(&deskey[0], &data(ctx)->ks1) ||
DES_set_key_checked(&deskey[1], &data(ctx)->ks2) ||
DES_set_key_checked(&deskey[2], &data(ctx)->ks3))
- return 0;
+ return 0;
#else
DES_set_key_unchecked(&deskey[0], &data(ctx)->ks1);
DES_set_key_unchecked(&deskey[1], &data(ctx)->ks2);
EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl,
const unsigned char *in, int inl)
{
- int seof = -1, eof = 0, rv = -1, ret = 0, i,v, tmp, n, ln, exp_nl;
+ int seof = -1, eof = 0, rv = -1, ret = 0, i, v, tmp, n, ln, exp_nl;
unsigned char *d;
n = ctx->num;
int
EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n)
{
- int i, ret = 0, a,b, c, d;
+ int i, ret = 0, a, b, c, d;
unsigned long l;
/* trim white space from the start of the line. */
EVPerr(EVP_F_EVP_SIGNFINAL, EVP_R_NO_SIGN_FUNCTION_CONFIGURED);
return (0);
}
- return(ctx->digest->sign(ctx->digest->type, m,m_len, sigret, siglen,
+ return(ctx->digest->sign(ctx->digest->type, m, m_len, sigret, siglen,
pkey->pkey.ptr));
}