summaryrefslogtreecommitdiff
path: root/src/ltc/pk/asn1
diff options
context:
space:
mode:
authorKarel Miko <karel.miko@gmail.com>2020-08-02 10:36:09 +0200
committerKarel Miko <karel.miko@gmail.com>2020-08-02 10:36:09 +0200
commite4cfa89e92059e8cf59d0dea33397e7eb3322483 (patch)
treef6ea70b27bbae1ee524524ebc8940bd82a199307 /src/ltc/pk/asn1
parent238c865807f3efc80c32e9a53b1c7e4f2591f81d (diff)
update libtomcrypt incl. LICENSE (related to #63)
Diffstat (limited to 'src/ltc/pk/asn1')
-rw-r--r--src/ltc/pk/asn1/der/bit/der_decode_bit_string.c14
-rw-r--r--src/ltc/pk/asn1/der/bit/der_decode_raw_bit_string.c14
-rw-r--r--src/ltc/pk/asn1/der/bit/der_encode_bit_string.c14
-rw-r--r--src/ltc/pk/asn1/der/bit/der_encode_raw_bit_string.c14
-rw-r--r--src/ltc/pk/asn1/der/bit/der_length_bit_string.c14
-rw-r--r--src/ltc/pk/asn1/der/boolean/der_decode_boolean.c14
-rw-r--r--src/ltc/pk/asn1/der/boolean/der_encode_boolean.c14
-rw-r--r--src/ltc/pk/asn1/der/boolean/der_length_boolean.c14
-rw-r--r--src/ltc/pk/asn1/der/choice/der_decode_choice.c14
-rw-r--r--src/ltc/pk/asn1/der/custom_type/der_decode_custom_type.c14
-rw-r--r--src/ltc/pk/asn1/der/custom_type/der_encode_custom_type.c14
-rw-r--r--src/ltc/pk/asn1/der/custom_type/der_length_custom_type.c14
-rw-r--r--src/ltc/pk/asn1/der/general/der_asn1_maps.c14
-rw-r--r--src/ltc/pk/asn1/der/general/der_decode_asn1_identifier.c14
-rw-r--r--src/ltc/pk/asn1/der/general/der_decode_asn1_length.c14
-rw-r--r--src/ltc/pk/asn1/der/general/der_encode_asn1_identifier.c14
-rw-r--r--src/ltc/pk/asn1/der/general/der_encode_asn1_length.c14
-rw-r--r--src/ltc/pk/asn1/der/general/der_length_asn1_identifier.c14
-rw-r--r--src/ltc/pk/asn1/der/general/der_length_asn1_length.c14
-rw-r--r--src/ltc/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c14
-rw-r--r--src/ltc/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c14
-rw-r--r--src/ltc/pk/asn1/der/generalizedtime/der_length_generalizedtime.c14
-rw-r--r--src/ltc/pk/asn1/der/ia5/der_decode_ia5_string.c14
-rw-r--r--src/ltc/pk/asn1/der/ia5/der_encode_ia5_string.c14
-rw-r--r--src/ltc/pk/asn1/der/ia5/der_length_ia5_string.c14
-rw-r--r--src/ltc/pk/asn1/der/integer/der_decode_integer.c14
-rw-r--r--src/ltc/pk/asn1/der/integer/der_encode_integer.c14
-rw-r--r--src/ltc/pk/asn1/der/integer/der_length_integer.c14
-rw-r--r--src/ltc/pk/asn1/der/object_identifier/der_decode_object_identifier.c14
-rw-r--r--src/ltc/pk/asn1/der/object_identifier/der_encode_object_identifier.c14
-rw-r--r--src/ltc/pk/asn1/der/object_identifier/der_length_object_identifier.c14
-rw-r--r--src/ltc/pk/asn1/der/octet/der_decode_octet_string.c14
-rw-r--r--src/ltc/pk/asn1/der/octet/der_encode_octet_string.c14
-rw-r--r--src/ltc/pk/asn1/der/octet/der_length_octet_string.c14
-rw-r--r--src/ltc/pk/asn1/der/printable_string/der_decode_printable_string.c14
-rw-r--r--src/ltc/pk/asn1/der/printable_string/der_encode_printable_string.c14
-rw-r--r--src/ltc/pk/asn1/der/printable_string/der_length_printable_string.c14
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_decode_sequence_ex.c14
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_decode_sequence_flexi.c50
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_decode_sequence_multi.c14
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_encode_sequence_ex.c14
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_encode_sequence_multi.c14
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_length_sequence.c14
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_sequence_free.c14
-rw-r--r--src/ltc/pk/asn1/der/sequence/der_sequence_shrink.c14
-rw-r--r--src/ltc/pk/asn1/der/set/der_encode_set.c14
-rw-r--r--src/ltc/pk/asn1/der/set/der_encode_setof.c14
-rw-r--r--src/ltc/pk/asn1/der/short_integer/der_decode_short_integer.c14
-rw-r--r--src/ltc/pk/asn1/der/short_integer/der_encode_short_integer.c14
-rw-r--r--src/ltc/pk/asn1/der/short_integer/der_length_short_integer.c14
-rw-r--r--src/ltc/pk/asn1/der/teletex_string/der_decode_teletex_string.c14
-rw-r--r--src/ltc/pk/asn1/der/teletex_string/der_length_teletex_string.c14
-rw-r--r--src/ltc/pk/asn1/der/utctime/der_decode_utctime.c14
-rw-r--r--src/ltc/pk/asn1/der/utctime/der_encode_utctime.c14
-rw-r--r--src/ltc/pk/asn1/der/utctime/der_length_utctime.c14
-rw-r--r--src/ltc/pk/asn1/der/utf8/der_decode_utf8_string.c14
-rw-r--r--src/ltc/pk/asn1/der/utf8/der_encode_utf8_string.c14
-rw-r--r--src/ltc/pk/asn1/der/utf8/der_length_utf8_string.c14
-rw-r--r--src/ltc/pk/asn1/oid/pk_get_oid.c14
-rw-r--r--src/ltc/pk/asn1/oid/pk_oid_cmp.c14
-rw-r--r--src/ltc/pk/asn1/oid/pk_oid_str.c14
-rw-r--r--src/ltc/pk/asn1/pkcs8/pkcs8_decode_flexi.c14
-rw-r--r--src/ltc/pk/asn1/x509/x509_decode_public_key_from_certificate.c14
-rw-r--r--src/ltc/pk/asn1/x509/x509_decode_subject_public_key_info.c14
-rw-r--r--src/ltc/pk/asn1/x509/x509_encode_subject_public_key_info.c14
65 files changed, 152 insertions, 794 deletions
diff --git a/src/ltc/pk/asn1/der/bit/der_decode_bit_string.c b/src/ltc/pk/asn1/der/bit/der_decode_bit_string.c
index 42b3523e..83c915dc 100644
--- a/src/ltc/pk/asn1/der/bit/der_decode_bit_string.c
+++ b/src/ltc/pk/asn1/der/bit/der_decode_bit_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -81,7 +75,3 @@ int der_decode_bit_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/bit/der_decode_raw_bit_string.c b/src/ltc/pk/asn1/der/bit/der_decode_raw_bit_string.c
index ed6440e7..1bc74f60 100644
--- a/src/ltc/pk/asn1/der/bit/der_decode_raw_bit_string.c
+++ b/src/ltc/pk/asn1/der/bit/der_decode_raw_bit_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -88,7 +82,3 @@ int der_decode_raw_bit_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/bit/der_encode_bit_string.c b/src/ltc/pk/asn1/der/bit/der_encode_bit_string.c
index 56217337..0c2cd168 100644
--- a/src/ltc/pk/asn1/der/bit/der_encode_bit_string.c
+++ b/src/ltc/pk/asn1/der/bit/der_encode_bit_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -76,7 +70,3 @@ int der_encode_bit_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/bit/der_encode_raw_bit_string.c b/src/ltc/pk/asn1/der/bit/der_encode_raw_bit_string.c
index a98a2970..9cc23aec 100644
--- a/src/ltc/pk/asn1/der/bit/der_encode_raw_bit_string.c
+++ b/src/ltc/pk/asn1/der/bit/der_encode_raw_bit_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -79,7 +73,3 @@ int der_encode_raw_bit_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/bit/der_length_bit_string.c b/src/ltc/pk/asn1/der/bit/der_length_bit_string.c
index edfcc848..4554a801 100644
--- a/src/ltc/pk/asn1/der/bit/der_length_bit_string.c
+++ b/src/ltc/pk/asn1/der/bit/der_length_bit_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -40,7 +34,3 @@ int der_length_bit_string(unsigned long nbits, unsigned long *outlen)
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/boolean/der_decode_boolean.c b/src/ltc/pk/asn1/der/boolean/der_decode_boolean.c
index 0fddf5ca..35ac7ece 100644
--- a/src/ltc/pk/asn1/der/boolean/der_decode_boolean.c
+++ b/src/ltc/pk/asn1/der/boolean/der_decode_boolean.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -39,7 +33,3 @@ int der_decode_boolean(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/boolean/der_encode_boolean.c b/src/ltc/pk/asn1/der/boolean/der_encode_boolean.c
index 71bdf8d7..a77aefb7 100644
--- a/src/ltc/pk/asn1/der/boolean/der_encode_boolean.c
+++ b/src/ltc/pk/asn1/der/boolean/der_encode_boolean.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -43,7 +37,3 @@ int der_encode_boolean(int in,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/boolean/der_length_boolean.c b/src/ltc/pk/asn1/der/boolean/der_length_boolean.c
index 6840e5c7..f1b9e576 100644
--- a/src/ltc/pk/asn1/der/boolean/der_length_boolean.c
+++ b/src/ltc/pk/asn1/der/boolean/der_length_boolean.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -27,7 +21,3 @@ int der_length_boolean(unsigned long *outlen)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/choice/der_decode_choice.c b/src/ltc/pk/asn1/der/choice/der_decode_choice.c
index e2ba8342..76437f63 100644
--- a/src/ltc/pk/asn1/der/choice/der_decode_choice.c
+++ b/src/ltc/pk/asn1/der/choice/der_decode_choice.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -225,7 +219,3 @@ int der_decode_choice(const unsigned char *in, unsigned long *inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/custom_type/der_decode_custom_type.c b/src/ltc/pk/asn1/der/custom_type/der_decode_custom_type.c
index 17e24b6a..978621f3 100644
--- a/src/ltc/pk/asn1/der/custom_type/der_decode_custom_type.c
+++ b/src/ltc/pk/asn1/der/custom_type/der_decode_custom_type.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
@@ -414,7 +408,3 @@ LBL_ERR:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/custom_type/der_encode_custom_type.c b/src/ltc/pk/asn1/der/custom_type/der_encode_custom_type.c
index 5bbd65be..2e21b4aa 100644
--- a/src/ltc/pk/asn1/der/custom_type/der_encode_custom_type.c
+++ b/src/ltc/pk/asn1/der/custom_type/der_encode_custom_type.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
@@ -232,7 +226,3 @@ LBL_ERR:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/custom_type/der_length_custom_type.c b/src/ltc/pk/asn1/der/custom_type/der_length_custom_type.c
index f1c41aaa..01e58ec8 100644
--- a/src/ltc/pk/asn1/der/custom_type/der_length_custom_type.c
+++ b/src/ltc/pk/asn1/der/custom_type/der_length_custom_type.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -207,7 +201,3 @@ LBL_ERR:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/general/der_asn1_maps.c b/src/ltc/pk/asn1/der/general/der_asn1_maps.c
index a49504e7..8f54f091 100644
--- a/src/ltc/pk/asn1/der/general/der_asn1_maps.c
+++ b/src/ltc/pk/asn1/der/general/der_asn1_maps.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -161,7 +155,3 @@ const ltc_asn1_type der_asn1_tag_to_type_map[] =
const unsigned long der_asn1_tag_to_type_map_sz = sizeof(der_asn1_tag_to_type_map)/sizeof(der_asn1_tag_to_type_map[0]);
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/general/der_decode_asn1_identifier.c b/src/ltc/pk/asn1/der/general/der_decode_asn1_identifier.c
index 26cf20af..ad4dc7b4 100644
--- a/src/ltc/pk/asn1/der/general/der_decode_asn1_identifier.c
+++ b/src/ltc/pk/asn1/der/general/der_decode_asn1_identifier.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -127,7 +121,3 @@ int der_decode_asn1_identifier(const unsigned char *in, unsigned long *inlen, lt
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/general/der_decode_asn1_length.c b/src/ltc/pk/asn1/der/general/der_decode_asn1_length.c
index bf8595de..0e5a3939 100644
--- a/src/ltc/pk/asn1/der/general/der_decode_asn1_length.c
+++ b/src/ltc/pk/asn1/der/general/der_decode_asn1_length.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -63,7 +57,3 @@ int der_decode_asn1_length(const unsigned char *in, unsigned long *inlen, unsign
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/general/der_encode_asn1_identifier.c b/src/ltc/pk/asn1/der/general/der_encode_asn1_identifier.c
index 38fcaf67..51d57ec1 100644
--- a/src/ltc/pk/asn1/der/general/der_encode_asn1_identifier.c
+++ b/src/ltc/pk/asn1/der/general/der_encode_asn1_identifier.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -90,7 +84,3 @@ int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsi
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/general/der_encode_asn1_length.c b/src/ltc/pk/asn1/der/general/der_encode_asn1_length.c
index 645626a5..7892eea2 100644
--- a/src/ltc/pk/asn1/der/general/der_encode_asn1_length.c
+++ b/src/ltc/pk/asn1/der/general/der_encode_asn1_length.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -121,7 +115,3 @@ int der_encode_asn1_length(unsigned long len, unsigned char *out, unsigned long
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/general/der_length_asn1_identifier.c b/src/ltc/pk/asn1/der/general/der_length_asn1_identifier.c
index ac500757..63e6bdd2 100644
--- a/src/ltc/pk/asn1/der/general/der_length_asn1_identifier.c
+++ b/src/ltc/pk/asn1/der/general/der_length_asn1_identifier.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -27,7 +21,3 @@ int der_length_asn1_identifier(const ltc_asn1_list *id, unsigned long *idlen)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/general/der_length_asn1_length.c b/src/ltc/pk/asn1/der/general/der_length_asn1_length.c
index 1ce8be4f..1c81adb6 100644
--- a/src/ltc/pk/asn1/der/general/der_length_asn1_length.c
+++ b/src/ltc/pk/asn1/der/general/der_length_asn1_length.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -26,7 +20,3 @@ int der_length_asn1_length(unsigned long len, unsigned long *outlen)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c b/src/ltc/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c
index 34ea828c..9b6f5eb2 100644
--- a/src/ltc/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c
+++ b/src/ltc/pk/asn1/der/generalizedtime/der_decode_generalizedtime.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -139,7 +133,3 @@ YYYYMMDDhhmmss.fs-hh'mm'
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c b/src/ltc/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c
index 018d2efe..2378eeba 100644
--- a/src/ltc/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c
+++ b/src/ltc/pk/asn1/der/generalizedtime/der_encode_generalizedtime.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -102,7 +96,3 @@ int der_encode_generalizedtime(const ltc_generalizedtime *gtime,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/generalizedtime/der_length_generalizedtime.c b/src/ltc/pk/asn1/der/generalizedtime/der_length_generalizedtime.c
index a3ba1899..dc237d30 100644
--- a/src/ltc/pk/asn1/der/generalizedtime/der_length_generalizedtime.c
+++ b/src/ltc/pk/asn1/der/generalizedtime/der_length_generalizedtime.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -52,7 +46,3 @@ int der_length_generalizedtime(const ltc_generalizedtime *gtime, unsigned long *
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/ia5/der_decode_ia5_string.c b/src/ltc/pk/asn1/der/ia5/der_decode_ia5_string.c
index e5aed676..8fd80cf1 100644
--- a/src/ltc/pk/asn1/der/ia5/der_decode_ia5_string.c
+++ b/src/ltc/pk/asn1/der/ia5/der_decode_ia5_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -77,7 +71,3 @@ int der_decode_ia5_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/ia5/der_encode_ia5_string.c b/src/ltc/pk/asn1/der/ia5/der_encode_ia5_string.c
index fb6a4f8e..8b8bd36b 100644
--- a/src/ltc/pk/asn1/der/ia5/der_encode_ia5_string.c
+++ b/src/ltc/pk/asn1/der/ia5/der_encode_ia5_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -65,7 +59,3 @@ int der_encode_ia5_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/ia5/der_length_ia5_string.c b/src/ltc/pk/asn1/der/ia5/der_length_ia5_string.c
index 02762999..e397b1c8 100644
--- a/src/ltc/pk/asn1/der/ia5/der_length_ia5_string.c
+++ b/src/ltc/pk/asn1/der/ia5/der_length_ia5_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -176,7 +170,3 @@ int der_length_ia5_string(const unsigned char *octets, unsigned long noctets, un
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/integer/der_decode_integer.c b/src/ltc/pk/asn1/der/integer/der_decode_integer.c
index aed4c86c..2c9bf7b7 100644
--- a/src/ltc/pk/asn1/der/integer/der_decode_integer.c
+++ b/src/ltc/pk/asn1/der/integer/der_decode_integer.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -72,7 +66,3 @@ int der_decode_integer(const unsigned char *in, unsigned long inlen, void *num)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/integer/der_encode_integer.c b/src/ltc/pk/asn1/der/integer/der_encode_integer.c
index 3bead0a0..72611496 100644
--- a/src/ltc/pk/asn1/der/integer/der_encode_integer.c
+++ b/src/ltc/pk/asn1/der/integer/der_encode_integer.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -109,7 +103,3 @@ int der_encode_integer(void *num, unsigned char *out, unsigned long *outlen)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/integer/der_length_integer.c b/src/ltc/pk/asn1/der/integer/der_length_integer.c
index 7dce18ef..90e2de37 100644
--- a/src/ltc/pk/asn1/der/integer/der_length_integer.c
+++ b/src/ltc/pk/asn1/der/integer/der_length_integer.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -59,7 +53,3 @@ int der_length_integer(void *num, unsigned long *outlen)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/object_identifier/der_decode_object_identifier.c b/src/ltc/pk/asn1/der/object_identifier/der_decode_object_identifier.c
index 23dcf770..72512477 100644
--- a/src/ltc/pk/asn1/der/object_identifier/der_decode_object_identifier.c
+++ b/src/ltc/pk/asn1/der/object_identifier/der_decode_object_identifier.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -98,7 +92,3 @@ int der_decode_object_identifier(const unsigned char *in, unsigned long inle
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/object_identifier/der_encode_object_identifier.c b/src/ltc/pk/asn1/der/object_identifier/der_encode_object_identifier.c
index 881809f6..9a9c62d9 100644
--- a/src/ltc/pk/asn1/der/object_identifier/der_encode_object_identifier.c
+++ b/src/ltc/pk/asn1/der/object_identifier/der_encode_object_identifier.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -96,7 +90,3 @@ int der_encode_object_identifier(const unsigned long *words, unsigned long nwor
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/object_identifier/der_length_object_identifier.c b/src/ltc/pk/asn1/der/object_identifier/der_length_object_identifier.c
index e6cff37a..d9ded029 100644
--- a/src/ltc/pk/asn1/der/object_identifier/der_length_object_identifier.c
+++ b/src/ltc/pk/asn1/der/object_identifier/der_length_object_identifier.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -81,7 +75,3 @@ int der_length_object_identifier(const unsigned long *words, unsigned long nword
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/octet/der_decode_octet_string.c b/src/ltc/pk/asn1/der/octet/der_decode_octet_string.c
index f6006378..df847214 100644
--- a/src/ltc/pk/asn1/der/octet/der_decode_octet_string.c
+++ b/src/ltc/pk/asn1/der/octet/der_decode_octet_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -73,7 +67,3 @@ int der_decode_octet_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/octet/der_encode_octet_string.c b/src/ltc/pk/asn1/der/octet/der_encode_octet_string.c
index f2745158..73f1ee76 100644
--- a/src/ltc/pk/asn1/der/octet/der_encode_octet_string.c
+++ b/src/ltc/pk/asn1/der/octet/der_encode_octet_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -66,7 +60,3 @@ int der_encode_octet_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/octet/der_length_octet_string.c b/src/ltc/pk/asn1/der/octet/der_length_octet_string.c
index 8c3db1c1..67b071e6 100644
--- a/src/ltc/pk/asn1/der/octet/der_length_octet_string.c
+++ b/src/ltc/pk/asn1/der/octet/der_length_octet_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -37,7 +31,3 @@ int der_length_octet_string(unsigned long noctets, unsigned long *outlen)
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/printable_string/der_decode_printable_string.c b/src/ltc/pk/asn1/der/printable_string/der_decode_printable_string.c
index 2cd88242..3f9b533e 100644
--- a/src/ltc/pk/asn1/der/printable_string/der_decode_printable_string.c
+++ b/src/ltc/pk/asn1/der/printable_string/der_decode_printable_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -77,7 +71,3 @@ int der_decode_printable_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/printable_string/der_encode_printable_string.c b/src/ltc/pk/asn1/der/printable_string/der_encode_printable_string.c
index c2132de7..7b3aefd1 100644
--- a/src/ltc/pk/asn1/der/printable_string/der_encode_printable_string.c
+++ b/src/ltc/pk/asn1/der/printable_string/der_encode_printable_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -65,7 +59,3 @@ int der_encode_printable_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/printable_string/der_length_printable_string.c b/src/ltc/pk/asn1/der/printable_string/der_length_printable_string.c
index 3d48c77a..c52e36df 100644
--- a/src/ltc/pk/asn1/der/printable_string/der_length_printable_string.c
+++ b/src/ltc/pk/asn1/der/printable_string/der_length_printable_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -148,7 +142,3 @@ int der_length_printable_string(const unsigned char *octets, unsigned long nocte
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_decode_sequence_ex.c b/src/ltc/pk/asn1/der/sequence/der_decode_sequence_ex.c
index 8143530e..6d7f8467 100644
--- a/src/ltc/pk/asn1/der/sequence/der_decode_sequence_ex.c
+++ b/src/ltc/pk/asn1/der/sequence/der_decode_sequence_ex.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
@@ -32,7 +26,3 @@ int der_decode_sequence_ex(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_decode_sequence_flexi.c b/src/ltc/pk/asn1/der/sequence/der_decode_sequence_flexi.c
index 94c39883..2e6f8a44 100644
--- a/src/ltc/pk/asn1/der/sequence/der_decode_sequence_flexi.c
+++ b/src/ltc/pk/asn1/der/sequence/der_decode_sequence_flexi.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -39,11 +33,12 @@ static int _new_element(ltc_asn1_list **l)
@param in The input buffer
@param inlen [in/out] The length of the input buffer and on output the amount of decoded data
@param out [out] A pointer to the linked list
+ @param depth The depth/level of decoding recursion we've already reached
@return CRYPT_OK on success.
*/
-int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list **out)
+static int _der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list **out, unsigned long depth)
{
- ltc_asn1_list *l, *t;
+ ltc_asn1_list *l;
unsigned long err, identifier, len, totlen, data_offset, id_len, len_len;
void *realloc_tmp;
@@ -428,6 +423,12 @@ int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc
}
}
+ /* check that we don't go over the recursion limit */
+ if (depth > LTC_DER_MAX_RECURSION) {
+ err = CRYPT_PK_ASN1_ERROR;
+ goto error;
+ }
+
if ((l->data = XMALLOC(len)) == NULL) {
err = CRYPT_MEM;
goto error;
@@ -446,7 +447,7 @@ int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc
len_len = len;
/* Sequence elements go as child */
- if ((err = der_decode_sequence_flexi(in, &len, &(l->child))) != CRYPT_OK) {
+ if ((err = _der_decode_sequence_flexi(in, &len, &(l->child), depth+1)) != CRYPT_OK) {
goto error;
}
if (len_len != len) {
@@ -463,17 +464,6 @@ int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc
l->child->parent = l;
}
- t = l;
- len_len = 0;
- while((t != NULL) && (t->child != NULL)) {
- len_len++;
- t = t->child;
- }
- if (len_len > LTC_DER_MAX_RECURSION) {
- err = CRYPT_PK_ASN1_ERROR;
- goto error;
- }
-
break;
case 0x80: /* Context-specific */
@@ -535,9 +525,17 @@ error:
return err;
}
-#endif
+/**
+ ASN.1 DER Flexi(ble) decoder will decode arbitrary DER packets and create a linked list of the decoded elements.
+ @param in The input buffer
+ @param inlen [in/out] The length of the input buffer and on output the amount of decoded data
+ @param out [out] A pointer to the linked list
+ @return CRYPT_OK on success.
+*/
+int der_decode_sequence_flexi(const unsigned char *in, unsigned long *inlen, ltc_asn1_list **out)
+{
+ return _der_decode_sequence_flexi(in, inlen, out, 0);
+}
+#endif
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_decode_sequence_multi.c b/src/ltc/pk/asn1/der/sequence/der_decode_sequence_multi.c
index 1bb75d27..f3e5b294 100644
--- a/src/ltc/pk/asn1/der/sequence/der_decode_sequence_multi.c
+++ b/src/ltc/pk/asn1/der/sequence/der_decode_sequence_multi.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
#include <stdarg.h>
@@ -184,7 +178,3 @@ int der_decode_sequence_multi_ex(const unsigned char *in, unsigned long inlen, u
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_encode_sequence_ex.c b/src/ltc/pk/asn1/der/sequence/der_encode_sequence_ex.c
index 50b3a4cd..d5c81bbd 100644
--- a/src/ltc/pk/asn1/der/sequence/der_encode_sequence_ex.c
+++ b/src/ltc/pk/asn1/der/sequence/der_encode_sequence_ex.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
@@ -206,7 +200,3 @@ LBL_ERR:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_encode_sequence_multi.c b/src/ltc/pk/asn1/der/sequence/der_encode_sequence_multi.c
index febb4d4c..c0dc09b4 100644
--- a/src/ltc/pk/asn1/der/sequence/der_encode_sequence_multi.c
+++ b/src/ltc/pk/asn1/der/sequence/der_encode_sequence_multi.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
#include <stdarg.h>
@@ -141,7 +135,3 @@ LBL_ERR:
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_length_sequence.c b/src/ltc/pk/asn1/der/sequence/der_length_sequence.c
index df7f2aaf..6d25391d 100644
--- a/src/ltc/pk/asn1/der/sequence/der_length_sequence.c
+++ b/src/ltc/pk/asn1/der/sequence/der_length_sequence.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -183,7 +177,3 @@ LBL_ERR:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_sequence_free.c b/src/ltc/pk/asn1/der/sequence/der_sequence_free.c
index bff19094..b7cbd070 100644
--- a/src/ltc/pk/asn1/der/sequence/der_sequence_free.c
+++ b/src/ltc/pk/asn1/der/sequence/der_sequence_free.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -57,7 +51,3 @@ void der_sequence_free(ltc_asn1_list *in)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/sequence/der_sequence_shrink.c b/src/ltc/pk/asn1/der/sequence/der_sequence_shrink.c
index eb9335fd..22634a32 100644
--- a/src/ltc/pk/asn1/der/sequence/der_sequence_shrink.c
+++ b/src/ltc/pk/asn1/der/sequence/der_sequence_shrink.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -44,7 +38,3 @@ void der_sequence_shrink(ltc_asn1_list *in)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/set/der_encode_set.c b/src/ltc/pk/asn1/der/set/der_encode_set.c
index 25971978..27cfd595 100644
--- a/src/ltc/pk/asn1/der/set/der_encode_set.c
+++ b/src/ltc/pk/asn1/der/set/der_encode_set.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -78,7 +72,3 @@ int der_encode_set(const ltc_asn1_list *list, unsigned long inlen,
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/set/der_encode_setof.c b/src/ltc/pk/asn1/der/set/der_encode_setof.c
index d1dc73b4..c4ca64d0 100644
--- a/src/ltc/pk/asn1/der/set/der_encode_setof.c
+++ b/src/ltc/pk/asn1/der/set/der_encode_setof.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -155,7 +149,3 @@ int der_encode_setof(const ltc_asn1_list *list, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/short_integer/der_decode_short_integer.c b/src/ltc/pk/asn1/der/short_integer/der_decode_short_integer.c
index 3b01323e..e596e072 100644
--- a/src/ltc/pk/asn1/der/short_integer/der_decode_short_integer.c
+++ b/src/ltc/pk/asn1/der/short_integer/der_decode_short_integer.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -60,7 +54,3 @@ int der_decode_short_integer(const unsigned char *in, unsigned long inlen, unsig
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/short_integer/der_encode_short_integer.c b/src/ltc/pk/asn1/der/short_integer/der_encode_short_integer.c
index ddab980d..3af47c5f 100644
--- a/src/ltc/pk/asn1/der/short_integer/der_encode_short_integer.c
+++ b/src/ltc/pk/asn1/der/short_integer/der_encode_short_integer.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -89,7 +83,3 @@ int der_encode_short_integer(unsigned long num, unsigned char *out, unsigned lon
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/short_integer/der_length_short_integer.c b/src/ltc/pk/asn1/der/short_integer/der_length_short_integer.c
index 75c719b8..aeee9481 100644
--- a/src/ltc/pk/asn1/der/short_integer/der_length_short_integer.c
+++ b/src/ltc/pk/asn1/der/short_integer/der_length_short_integer.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -56,7 +50,3 @@ int der_length_short_integer(unsigned long num, unsigned long *outlen)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/teletex_string/der_decode_teletex_string.c b/src/ltc/pk/asn1/der/teletex_string/der_decode_teletex_string.c
index 9389369a..6779cd56 100644
--- a/src/ltc/pk/asn1/der/teletex_string/der_decode_teletex_string.c
+++ b/src/ltc/pk/asn1/der/teletex_string/der_decode_teletex_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -76,7 +70,3 @@ int der_decode_teletex_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/teletex_string/der_length_teletex_string.c b/src/ltc/pk/asn1/der/teletex_string/der_length_teletex_string.c
index 13b44879..05dc4b02 100644
--- a/src/ltc/pk/asn1/der/teletex_string/der_length_teletex_string.c
+++ b/src/ltc/pk/asn1/der/teletex_string/der_length_teletex_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -192,7 +186,3 @@ int der_length_teletex_string(const unsigned char *octets, unsigned long noctets
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/utctime/der_decode_utctime.c b/src/ltc/pk/asn1/der/utctime/der_decode_utctime.c
index c377396c..294417a7 100644
--- a/src/ltc/pk/asn1/der/utctime/der_decode_utctime.c
+++ b/src/ltc/pk/asn1/der/utctime/der_decode_utctime.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -120,7 +114,3 @@ YYMMDDhhmmss-hh'mm'
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/utctime/der_encode_utctime.c b/src/ltc/pk/asn1/der/utctime/der_encode_utctime.c
index 258afcad..b1c6fbe6 100644
--- a/src/ltc/pk/asn1/der/utctime/der_encode_utctime.c
+++ b/src/ltc/pk/asn1/der/utctime/der_encode_utctime.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -75,7 +69,3 @@ int der_encode_utctime(const ltc_utctime *utctime,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/utctime/der_length_utctime.c b/src/ltc/pk/asn1/der/utctime/der_length_utctime.c
index c85a9357..b93c25f8 100644
--- a/src/ltc/pk/asn1/der/utctime/der_length_utctime.c
+++ b/src/ltc/pk/asn1/der/utctime/der_length_utctime.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -38,7 +32,3 @@ int der_length_utctime(const ltc_utctime *utctime, unsigned long *outlen)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/utf8/der_decode_utf8_string.c b/src/ltc/pk/asn1/der/utf8/der_decode_utf8_string.c
index d3ed82be..2e40645b 100644
--- a/src/ltc/pk/asn1/der/utf8/der_decode_utf8_string.c
+++ b/src/ltc/pk/asn1/der/utf8/der_decode_utf8_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -97,7 +91,3 @@ int der_decode_utf8_string(const unsigned char *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/utf8/der_encode_utf8_string.c b/src/ltc/pk/asn1/der/utf8/der_encode_utf8_string.c
index 5deb11ae..f2c07c2a 100644
--- a/src/ltc/pk/asn1/der/utf8/der_encode_utf8_string.c
+++ b/src/ltc/pk/asn1/der/utf8/der_encode_utf8_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -79,7 +73,3 @@ int der_encode_utf8_string(const wchar_t *in, unsigned long inlen,
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/der/utf8/der_length_utf8_string.c b/src/ltc/pk/asn1/der/utf8/der_length_utf8_string.c
index acece0cb..424002b2 100644
--- a/src/ltc/pk/asn1/der/utf8/der_length_utf8_string.c
+++ b/src/ltc/pk/asn1/der/utf8/der_length_utf8_string.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -85,7 +79,3 @@ int der_length_utf8_string(const wchar_t *in, unsigned long noctets, unsigned lo
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/oid/pk_get_oid.c b/src/ltc/pk/asn1/oid/pk_get_oid.c
index f27894fc..618cc801 100644
--- a/src/ltc/pk/asn1/oid/pk_get_oid.c
+++ b/src/ltc/pk/asn1/oid/pk_get_oid.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
#ifdef LTC_DER
@@ -41,7 +35,3 @@ int pk_get_oid(enum ltc_oid_id id, const char **st)
return CRYPT_INVALID_ARG;
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/oid/pk_oid_cmp.c b/src/ltc/pk/asn1/oid/pk_oid_cmp.c
index 5e3f1207..f842bc58 100644
--- a/src/ltc/pk/asn1/oid/pk_oid_cmp.c
+++ b/src/ltc/pk/asn1/oid/pk_oid_cmp.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
#ifdef LTC_DER
@@ -48,7 +42,3 @@ int pk_oid_cmp_with_asn1(const char *o1, const ltc_asn1_list *o2)
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/oid/pk_oid_str.c b/src/ltc/pk/asn1/oid/pk_oid_str.c
index b55c9c2e..aa889631 100644
--- a/src/ltc/pk/asn1/oid/pk_oid_str.c
+++ b/src/ltc/pk/asn1/oid/pk_oid_str.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
@@ -85,7 +79,3 @@ int pk_oid_num_to_str(const unsigned long *oid, unsigned long oidlen, char *OID,
*outlen = k; /* the length without terminating NUL byte */
return CRYPT_OK;
}
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/pkcs8/pkcs8_decode_flexi.c b/src/ltc/pk/asn1/pkcs8/pkcs8_decode_flexi.c
index eef2f410..e715f11a 100644
--- a/src/ltc/pk/asn1/pkcs8/pkcs8_decode_flexi.c
+++ b/src/ltc/pk/asn1/pkcs8/pkcs8_decode_flexi.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
#ifdef LTC_PKCS_8
@@ -101,7 +95,3 @@ LBL_DONE:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/x509/x509_decode_public_key_from_certificate.c b/src/ltc/pk/asn1/x509/x509_decode_public_key_from_certificate.c
index 0b43c4c2..0c3c4fab 100644
--- a/src/ltc/pk/asn1/x509/x509_decode_public_key_from_certificate.c
+++ b/src/ltc/pk/asn1/x509/x509_decode_public_key_from_certificate.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -112,7 +106,3 @@ LBL_OUT:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/x509/x509_decode_subject_public_key_info.c b/src/ltc/pk/asn1/x509/x509_decode_subject_public_key_info.c
index 2d851b56..a94362d7 100644
--- a/src/ltc/pk/asn1/x509/x509_decode_subject_public_key_info.c
+++ b/src/ltc/pk/asn1/x509/x509_decode_subject_public_key_info.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -123,7 +117,3 @@ LBL_ERR:
}
#endif
-
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
diff --git a/src/ltc/pk/asn1/x509/x509_encode_subject_public_key_info.c b/src/ltc/pk/asn1/x509/x509_encode_subject_public_key_info.c
index c9607b1c..fd0a5d06 100644
--- a/src/ltc/pk/asn1/x509/x509_encode_subject_public_key_info.c
+++ b/src/ltc/pk/asn1/x509/x509_encode_subject_public_key_info.c
@@ -1,11 +1,5 @@
-/* LibTomCrypt, modular cryptographic library -- Tom St Denis
- *
- * LibTomCrypt is a library that provides various cryptographic
- * algorithms in a highly modular and flexible manner.
- *
- * The library is free for all purposes without any express
- * guarantee it works.
- */
+/* LibTomCrypt, modular cryptographic library -- Tom St Denis */
+/* SPDX-License-Identifier: Unlicense */
#include "tomcrypt_private.h"
/**
@@ -70,7 +64,3 @@ int x509_encode_subject_public_key_info(unsigned char *out, unsigned long *outle
#endif
-/* ref: $Format:%D$ */
-/* git commit: $Format:%H$ */
-/* commit time: $Format:%ai$ */
-