Add |DES_set_key_unchecked| as an alias for |DES_set_key|.
Change-Id: I00296b0602a95b51366586b30ccd95261dd7007b Reviewed-on: https://boringssl-review.googlesource.com/5532 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
c5b23a19ea
commit
2f252fed10
@ -770,3 +770,10 @@ void DES_ede2_cbc_encrypt(const uint8_t *in, uint8_t *out, size_t len,
|
|||||||
int enc) {
|
int enc) {
|
||||||
DES_ede3_cbc_encrypt(in, out, len, ks1, ks2, ks1, ivec, enc);
|
DES_ede3_cbc_encrypt(in, out, len, ks1, ks2, ks1, ivec, enc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* Deprecated functions. */
|
||||||
|
|
||||||
|
void DES_set_key_unchecked(const DES_cblock *key, DES_key_schedule *schedule) {
|
||||||
|
DES_set_key(key, schedule);
|
||||||
|
}
|
||||||
|
@ -144,6 +144,10 @@ OPENSSL_EXPORT void DES_ede2_cbc_encrypt(const uint8_t *in, uint8_t *out,
|
|||||||
|
|
||||||
/* Deprecated functions. */
|
/* Deprecated functions. */
|
||||||
|
|
||||||
|
/* DES_set_key_unchecked calls |DES_set_key|. */
|
||||||
|
OPENSSL_EXPORT void DES_set_key_unchecked(const DES_cblock *key,
|
||||||
|
DES_key_schedule *schedule);
|
||||||
|
|
||||||
OPENSSL_EXPORT void DES_ede3_cfb64_encrypt(const uint8_t *in, uint8_t *out,
|
OPENSSL_EXPORT void DES_ede3_cfb64_encrypt(const uint8_t *in, uint8_t *out,
|
||||||
long length, DES_key_schedule *ks1,
|
long length, DES_key_schedule *ks1,
|
||||||
DES_key_schedule *ks2,
|
DES_key_schedule *ks2,
|
||||||
|
Loading…
Reference in New Issue
Block a user