package
0.0.0-20221112035751-3d067a8c9f04
Repository: https://github.com/crossedbot/common.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
DecryptPEMBlock returns the decrypted PEM block using the given passphrase.
DecryptPKCS8Key decrypts the given PKCS#8 formatted DER encoded ASN.1 structure, and returns it decrypted using the given passphrase.
DecryptPrivateKey returns the decrypted PEM block for the given PEM encoded private key and passphrase.
ExtendKey returns an extended key using the PBKDF2 function.
Fingerprint returns the SHA256 fingerprint for the given public key.
generateRandomBytes returns n number of random bytes.
generateRandomString returns a random string of n length.
KeyId returns a AuthKeyIdSize long ID for the given key.
NewNonce returns a new nonce for the given size.
# Constants
bytes (128 bits).
No description provided by the author
No description provided by the author
# Variables
Errors.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Supported KFDs and Encryption Schemes RFC8018 Appendix A, RFC8018 Appendix C.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ASN.1 Formats RFC8018 Appendix A, RFC8018 Appendix C.
# Structs
RFC5280 Section 4.1.1.2 AlgorithmIdentifer.
RFC5208 Section 6 EncryptedPrivateKeyInfo.
RFC8018 Appendix B.2 - B.2.2 DES-EDE3-CBC-Pad (Probably).
RFC8018 Appendix A.4 PBES2-KDFs.
RFC8018 Appendix A.4 PBES2-params.
RFC8018 Appendix A.2 PKBKDF2-params.
RFC8018 Appendix A.2 PBKDF2-PRFs.