pkcs_1_v1_5.jl cleanup + public interface cleanup #160
CI.yml
on: pull_request
Documentation
1m 5s
Matrix: test
Annotations
5 errors
Julia pre - ubuntu-latest - x64
Process completed with exit code 1.
|
Julia 1.10 - ubuntu-latest - x64
Process completed with exit code 1.
|
Julia 1.11 - ubuntu-latest - x64
Process completed with exit code 1.
|
Documentation
Process completed with exit code 1.
|
Documentation:
../../../.julia/packages/Documenter/QLA7E/src/utilities/utilities.jl#L44
failed to run `@example` block in src/examples.md:3-14
```@example
import Random
using ToyPublicKeys
Random.seed!(42)
private_key, public_key = ToyPublicKeys.generate_rsa_key_pair(ToyPublicKeys.pkcs1_v1_5, 2048)
msg = "Super secret message!"
println(msg)
encrypted = ToyPublicKeys.encrypt(ToyPublicKeys.pkcs1_v1_5, msg, public_key)
println(encrypted)
decrypted = ToyPublicKeys.decrypt(ToyPublicKeys.pkcs1_v1_5, encrypted, private_key)
println(decrypted)
```
exception =
MethodError: no method matching encrypt(::ToyPublicKeys.pkcs1_v1_5_t, ::String, ::RSAPublicKey)
The function `encrypt` exists, but no method is defined for this combination of argument types.
Closest candidates are:
encrypt(::ToyPublicKeys.pkcs1_v1_5_t, !Matched::Vector{UInt8}, ::RSAPublicKey)
@ ToyPublicKeys ~/work/ToyPublicKeys.jl/ToyPublicKeys.jl/src/rsa.jl:104
Stacktrace:
[1] top-level scope
@ examples.md:10
[2] eval
@ ./boot.jl:430 [inlined]
[3] #61
@ ~/.julia/packages/Documenter/QLA7E/src/expander_pipeline.jl:806 [inlined]
[4] cd(f::Documenter.var"#61#63"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[5] (::Documenter.var"#60#62"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/QLA7E/src/expander_pipeline.jl:805
[6] (::IOCapture.var"#5#9"{DataType, Documenter.var"#60#62"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:170
[7] with_logstate(f::IOCapture.var"#5#9"{DataType, Documenter.var"#60#62"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState)
@ Base.CoreLogging ./logging/logging.jl:522
[8] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger)
@ Base.CoreLogging ./logging/logging.jl:632
[9] capture(f::Documenter.var"#60#62"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any})
@ IOCapture ~/.julia/packages/IOCapture/Y5rEA/src/IOCapture.jl:167
[10] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
@ Documenter ~/.julia/packages/Documenter/QLA7E/src/expander_pipeline.jl:804
|