RSA operation error: data too large for key size
I was running the encryption on M1 MacBook, where the notebook seems to be too big to encrypt, and running encryption script raised an error:
$ ./encrypt.sh slt-ce-0.ipynb
RSA operation error
4340598316:error:04FFF06E:rsa routines:CRYPTO_internal:data too large for key size:/AppleInternal/Library/BuildRoots/20d6c351-ee94-11ec-bcaf-7247572f23b4/Library/Caches/com.apple.xbs/Sources/libressl/libressl-2.8/crypto/rsa/rsa_pk1.c:151:
Checking the file sizes, slt2023_pub.key
has 1612 bytes, while slt-ce-0.ipynb
has 1457 bytes (commit hash 789817fe). According to this information:
"rsautl" will not encrypt any input data that is larger (longer) than the RSA key size. I removed some cells and reduced the file size of
slt-ce-0.ipynb
to 1071 bytes, then the encryption works.
Is it only the issue on my M1 MacBook, or do other people encounter the same issue?