parent
950715659d
commit
46c4fa16ab
1 changed files with 2 additions and 2 deletions
|
@ -368,7 +368,7 @@ static inline int mbedtls_cipher_get_iv_size( const mbedtls_cipher_context_t *ct
|
||||||
if( ctx->iv_size != 0 )
|
if( ctx->iv_size != 0 )
|
||||||
return (int) ctx->iv_size;
|
return (int) ctx->iv_size;
|
||||||
|
|
||||||
return ctx->cipher_info->iv_size;
|
return (int) ctx->cipher_info->iv_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -416,7 +416,7 @@ static inline int mbedtls_cipher_get_key_bitlen( const mbedtls_cipher_context_t
|
||||||
if( NULL == ctx || NULL == ctx->cipher_info )
|
if( NULL == ctx || NULL == ctx->cipher_info )
|
||||||
return MBEDTLS_KEY_LENGTH_NONE;
|
return MBEDTLS_KEY_LENGTH_NONE;
|
||||||
|
|
||||||
return ctx->cipher_info->key_bitlen;
|
return (int) ctx->cipher_info->key_bitlen;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue