awslabs / aws-verification-model-for-libcrypto
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 128 units with 1,014 lines of code in units (50.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (113 lines of code)
    • 26 small units (358 lines of code)
    • 97 very small units (543 lines of code)
0% | 0% | 11% | 35% | 53%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 0% | 11% | 35% | 53%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source0% | 0% | 11% | 36% | 52%
stubs0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
void DH_get0_pqg()
in source/dh_override.c
24 7 4
int EVP_PKEY_sign()
in source/evp_override.c
23 5 5
int EVP_DecryptUpdate()
in source/evp_override.c
23 5 5
int EVP_CipherInit_ex()
in source/evp_override.c
22 7 6
int EVP_EncryptUpdate()
in source/evp_override.c
21 4 5
int EVP_PKEY_derive()
in source/evp_override.c
20 3 3
int EVP_MD_size()
in source/evp_override.c
19 6 1
int EVP_PKEY_encrypt()
in source/evp_override.c
18 3 5
int EVP_PKEY_decrypt()
in source/evp_override.c
18 3 5
int SHA384_Init()
in source/sha_override.c
17 2 1
int SHA512_Init()
in source/sha_override.c
17 2 1
int i2d_ECDSA_SIG()
in source/ec_override.c
16 3 2
int SHA224_Init()
in source/sha_override.c
15 2 1
int SHA256_Init()
in source/sha_override.c
15 2 1
int EVP_CIPHER_CTX_ctrl()
in source/evp_override.c
15 4 4
int i2o_ECPublicKey()
in source/ec_override.c
15 3 2
int i2d_ASN1_INTEGER()
in source/asn1_override.c
14 2 2
int EVP_DigestFinal_ex()
in source/evp_override.c
13 4 3
int OBJ_txt2nid()
in source/objects_override.c
12 4 1
void DH_free()
in source/dh_override.c
12 3 1