mirror of
https://github.com/gregtwallace/apc-p15-tool.git
synced 2025-07-05 15:56:32 +00:00
add rsa 1024 support (not recommended though)
This commit is contained in:
parent
b878deaf2d
commit
b633a357c7
4 changed files with 14 additions and 14 deletions
pkg/app
|
@ -8,8 +8,8 @@ import (
|
|||
)
|
||||
|
||||
// makeFileHeader generates the 228 byte header to prepend to the .p15
|
||||
// as required by APC UPS NMC. Only 2,048 bit RSA keys are supported
|
||||
// so the header will always be written with that key size assumption
|
||||
// as required by APC UPS NMC. Contrary to the apc_tools repo, it does
|
||||
// mot appear the header changes based on key size.
|
||||
func makeFileHeader(p15File []byte) ([]byte, error) {
|
||||
// original reference code from: https://github.com/bbczeuz/apc_tools
|
||||
// // add APC header
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue