Skip to content

Commit

Permalink
Drop the size_t change...
Browse files Browse the repository at this point in the history
  • Loading branch information
torben-hansen committed Dec 9, 2024
1 parent 0cab91e commit b126f40
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions crypto/fipsmodule/cipher/cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,21 +696,21 @@ int EVP_CIPHER_nid(const EVP_CIPHER *cipher) {
return 0;
}

size_t EVP_CIPHER_block_size(const EVP_CIPHER *cipher) {
unsigned EVP_CIPHER_block_size(const EVP_CIPHER *cipher) {
if (cipher != NULL) {
return cipher->block_size;
}
return 0;
}

size_t EVP_CIPHER_key_length(const EVP_CIPHER *cipher) {
unsigned EVP_CIPHER_key_length(const EVP_CIPHER *cipher) {
if (cipher != NULL) {
return cipher->key_len;
}
return 0;
}

size_t EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) {
unsigned EVP_CIPHER_iv_length(const EVP_CIPHER *cipher) {
if (cipher != NULL) {
return cipher->iv_len;
}
Expand Down
6 changes: 3 additions & 3 deletions include/openssl/cipher.h
Original file line number Diff line number Diff line change
Expand Up @@ -258,15 +258,15 @@ OPENSSL_EXPORT int EVP_CIPHER_CTX_encrypting(const EVP_CIPHER_CTX *ctx);
// EVP_CIPHER_CTX_block_size returns the block size, in bytes, of the cipher
// underlying |ctx|, or one if the cipher is a stream cipher. It will crash if
// no cipher has been configured.
OPENSSL_EXPORT size_t EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx);
OPENSSL_EXPORT unsigned EVP_CIPHER_CTX_block_size(const EVP_CIPHER_CTX *ctx);

// EVP_CIPHER_CTX_key_length returns the key size, in bytes, of the cipher
// underlying |ctx| or zero if no cipher has been configured.
OPENSSL_EXPORT size_t EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx);
OPENSSL_EXPORT unsigned EVP_CIPHER_CTX_key_length(const EVP_CIPHER_CTX *ctx);

// EVP_CIPHER_CTX_iv_length returns the IV size, in bytes, of the cipher
// underlying |ctx|. It will crash if no cipher has been configured.
OPENSSL_EXPORT size_t EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx);
OPENSSL_EXPORT unsigned EVP_CIPHER_CTX_iv_length(const EVP_CIPHER_CTX *ctx);

// EVP_CIPHER_CTX_get_app_data returns the opaque, application data pointer for
// |ctx|, or NULL if none has been set.
Expand Down

0 comments on commit b126f40

Please sign in to comment.