openssl enc 的坑

openssl enc 的坑

最近对一些数据的tar包进行加密适
使用的openssl enc 命令加密
之前一直好好的加解密都没问题
但是最近 发现老是报错
error writing output file
119G的问题 经常到117G 118G就报错
重启也没有用
然后我把他压到117G以内
终于可以完整的加密了
测试解密
哦完蛋,又是这个错误
百度不到这个问题
谷歌只有这个结果



It's openssls incorrect handling of SIGPIPE. head and also dd will close the pipe when they have recieved their 5 MB. This produces an EPIPE error on the write() system call when the openssl process tries to write to the pipe:

   EPIPE    fd is connected to a pipe or socket whose reading end is closed. When this
            happens the writing process will also receive a SIGPIPE signal.

openssl then died due to a signal rather than exiting normally. You can check that in your example using:

$ openssl enc -aes-256-ctr -pass pass:password -nosalt < /dev/zero | head -c 5M >file
error writing output file
$ echo ${PIPESTATUS[@]}
1 0

The $PIPESTATUS array contains the exit values of the processes within the pipes. You see the openssl process exited with exit code 1.

不太接这个意思
大意是信号提前杀死了openssl
关闭了管道
但是还是没法解决我的问题啊
有同样这个问题的吗???

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值