BN_SWAP(3ossl)

πŸ’– BN_SWAP(3ossl) πŸ’–

okay so bestie, welcome to BN_swap β€” part of the OpenSSL fam, section 3, and honestly? she's short, she's sweet, she's giving "does exactly one thing and does it flawlessly." no notes. πŸ‘‘


✨ NAME ✨

BN_swap β€” exchange BIGNUMs πŸ”„

like. literally. swapping two big numbers. that's the whole plot. that's the entire storyline. slay.


🌸 SYNOPSIS 🌸

#include <openssl/bn.h>

void BN_swap(BIGNUM *a, BIGNUM *b);

there she is. two pointers, zero drama. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so BN_swap() exchanges the values of a and b. that's it. that's the function.

like if a was holding one big ol' number and b was holding a different big ol' number, after this call they've traded places and neither of them is okay about it but that's not our problem. πŸ™ˆ the values get swapped, periodt. no cap.


πŸŽ€ RETURN VALUES πŸŽ€

BN_swap() does not return a value. it's void, babe. it gives you nothing back β€” because the glow-up is the gift. ✨ nothing to check, nothing to compare, nothing to handle. it just does the thing and dips. 🫢


Copyright 2000-2018 The OpenSSL Project Authors. All Rights Reserved. πŸ’–

Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.

okay legal bestie moment: read the License fr fr, because using this file without complying is not the vibe. 😭

and that's the whole page, my love. this one came from OpenSSL 3.5.9, dated 2026-09-29, and the manual name is BN_SWAP(3ossl) in case you need to cite her. go swap some numbers, you absolute icon. πŸŒˆβ­πŸ’–

πŸ“¦ where this page comes from