aws-samples / aws-cloudhsm-pkcs11-examples
File Size

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

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 53 files with 6,844 lines of code.
    • 1 very long files (1,341 lines of code)
    • 1 long files (576 lines of code)
    • 8 medium size files (2,041 lines of codeclsfd_ftr_w_mp_ins)
    • 11 small files (1,392 lines of code)
    • 32 very small files (1,494 lines of code)
19% | 8% | 29% | 20% | 21%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
h52% | 22% | 13% | 0% | 11%
c0% | 0% | 39% | 32% | 28%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
include/pkcs1166% | 28% | 0% | 0% | 5%
src/wrapping0% | 0% | 46% | 31% | 22%
src/mechanism_info0% | 0% | 84% | 0% | 15%
src/attributes0% | 0% | 81% | 0% | 18%
src/tools0% | 0% | 55% | 31% | 12%
src/encrypt0% | 0% | 30% | 51% | 17%
src/derivation0% | 0% | 68% | 0% | 31%
src/find_objects0% | 0% | 100% | 0% | 0%
src/common0% | 0% | 0% | 67% | 32%
src/sign0% | 0% | 0% | 56% | 43%
src/generate0% | 0% | 0% | 0% | 100%
src/digest0% | 0% | 0% | 0% | 100%
src/destroy0% | 0% | 0% | 0% | 100%
src/generate_random0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
pkcs11t.h
in include/pkcs11/v2.40
1341 -
pkcs11f.h
in include/pkcs11/v2.40
576 -
mechanism_info.h
in src/mechanism_info
346 -
rsa_wrapping.c
in src/wrapping
341 9
attributes.c
in src/attributes
266 3
unwrap_with_template.c
in src/wrapping
242 7
wrap_with_imported_rsa_key.c
in src/tools
218 5
aes_cbc.c
in src/encrypt
217 4
ecdh.c
in src/derivation
208 4
find_objects.c
in src/find_objects
203 6
gopt.c
in src/common
172 3
wrap_with_template.c
in src/wrapping
167 7
aes_gcm.c
in src/encrypt
134 2
aes_wrapping_common.c
in src/wrapping
129 5
import_pub_key.c
in src/tools
125 3
des_ecb.c
in src/encrypt
116 3
aes_ctr.c
in src/encrypt
115 2
ec_sign.c
in src/sign
114 3
pkcs11.c
in src/common
111 6
rsa_sign.c
in src/sign
108 3
aes_gcm_wrapping.c
in src/wrapping
101 2
aes_ecb.c
in src/encrypt
98 2
hmac_kdf.c
in src/derivation
97 2
aes_wrapping.c
in src/wrapping
87 2
aes_zero_padding_wrapping.c
in src/wrapping
87 2
aes_no_padding_wrapping.c
in src/wrapping
86 2
common.c
in src/sign
85 4
common.c
in src/common
83 4
digest.c
in src/digest
73 2
multi_part_digest.c
in src/digest
70 2
ec_generate.c
in src/generate
64 2
mechanism_info.c
in src/mechanism_info
63 2
rsa_generate.c
in src/generate
50 2
generate_random.c
in src/generate_random
45 2
cloudhsm_pkcs11_vendor_defs.h
in include/pkcs11/v2.40
45 -
sign.h
in src/sign
39 -
io.c
in src/tools
38 1
aes_generate.c
in src/generate
37 2
attributes_cmd.c
in src/attributes
33 2
destroy_cmd.c
in src/destroy
31 2
pkcs11.h
in include/pkcs11/v2.40
31 -
cryptoki.h
in include/pkcs11/v2.40
30 -
gopt.h
in src/common
29 -
aes_wrapping_common.h
in src/wrapping
26 -
attributes.h
in src/attributes
26 -
sign.c
in src/sign
25 1
common.h
in src/common
23 -
multi_part_sign.c
in src/sign
23 1
aes.c
in src/encrypt
18 1
destroy.c
in src/destroy
15 1
Files With Most Units (Top 20)
File# lines# units
rsa_wrapping.c
in src/wrapping
341 9
unwrap_with_template.c
in src/wrapping
242 7
wrap_with_template.c
in src/wrapping
167 7
find_objects.c
in src/find_objects
203 6
pkcs11.c
in src/common
111 6
aes_wrapping_common.c
in src/wrapping
129 5
wrap_with_imported_rsa_key.c
in src/tools
218 5
ecdh.c
in src/derivation
208 4
aes_cbc.c
in src/encrypt
217 4
common.c
in src/common
83 4
common.c
in src/sign
85 4
import_pub_key.c
in src/tools
125 3
des_ecb.c
in src/encrypt
116 3
gopt.c
in src/common
172 3
rsa_sign.c
in src/sign
108 3
ec_sign.c
in src/sign
114 3
attributes.c
in src/attributes
266 3
hmac_kdf.c
in src/derivation
97 2
aes_generate.c
in src/generate
37 2
ec_generate.c
in src/generate
64 2
Files With Long Lines (Top 5)

There are 5 files with lines longer than 120 characters. In total, there are 6 long lines.

File# lines# units# long lines
ecdh.c
in src/derivation
208 4 2
unwrap_with_template.c
in src/wrapping
242 7 1
wrap_with_imported_rsa_key.c
in src/tools
218 5 1
aes_gcm.c
in src/encrypt
134 2 1
mechanism_info.c
in src/mechanism_info
63 2 1